odata4j is a new open-source toolkit for building first-class OData producers and first-class OData consumers in Java.
Questions tagged [odata4j]
109 questions
13
votes
2 answers
Looking for a good tutorial how to develop odata service in Java (with restlet, jersey, or odata4j)
I am looking for a tutorial that shows step by step how to develop an odata service using Java.

Skarab
- 6,981
- 13
- 48
- 86
10
votes
3 answers
No routing convention was found to select an action for the OData path with template '~/entityset'
I have two Odata action methods defined. The one with parameter gets invoked while the other without parameter doesnt get invoked and throws error No routing convention was found to select an action for the OData path with template…

user3751248
- 303
- 4
- 8
- 18
6
votes
1 answer
java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 9090): connect failed: ECONNREFUSED (Connection refused)
I am working with an App in Android. It uses a local host server in my PC to get some data. But I am getting warning in LotCat like this after running.
02-07 15:51:48.965: W/System.err(10339): com.sun.jersey.api.client.ClientHandlerException:…

user3060070
- 61
- 1
- 1
- 4
5
votes
2 answers
Which framework should I use to run OData APIs on Android?
I am creating a program for Android mobiles which will query, retrieve and then process OData from an OData provider via a webservice.
Please can you tell me which toolkit is best for this? I have seen these:
odata4j
restlet
Thanks.

Techboy
- 4,286
- 5
- 36
- 45
5
votes
2 answers
Odata with Olingo or Odata4j
I'm in over my head.
At the broadest level, I'm trying to expose an Odata interface to an existing pool of data exposed by a service written using Mule. When my Mule service is invoked, if I detect that the URL is Odata format, I want to delegate…

TomD
- 108
- 1
- 6
4
votes
1 answer
How do I request JSON data from a OData service operation using OData4J?
I am trying to query a WCF OData service from Java using the odata4j library. If I query a entity using ATOM format, everything is OK. If I switch to JSON, Java throws following exception:
java.lang.RuntimeException: java.lang.RuntimeException:…

Tomas Walek
- 2,516
- 2
- 23
- 37
4
votes
0 answers
Producing and Consuming OData XML in Java
I am trying to build a producer and a consumer for generating OData based on a GraphML file.
Just using odata4j's example producer and consumer from XML, I receive the following error when trying to consumer their example file built by using their…

nynoles
- 61
- 1
4
votes
0 answers
Odata4J and Spring Autowiring
I am not able to auto-wire JpaTransactionManager transactionManagerOdata into the Odata ExampleProducerFactory servlet.
TransactionManagerOdata is configured OK and it can be auto-wire in any other Spring class.
In my case transactionManagerOdata…

ivi
- 316
- 4
- 6
4
votes
1 answer
JQGrid with WCF Data Services (OData); loadBeforeSend not called on Edit mode; Cannot do setRequestHeader
I am having a bit of a problem with this fantastic jqgrid plugin and my attempt to use it with WCF Data Services (not really, but the very similar odata4j services).
By the way, if anyone is thinking about using jqgrid with odata services, please…

nenea
- 127
- 8
3
votes
2 answers
to implement OData services, which is better Apache Olingo or OData4j?
I have to publish my entities(Database tables) via OData service protocol using Java.
I thoroughly checked the options on OData implementation and found two major libraries as Apache Olingo and OData4J.
I could't decide which one is best suitable? I…

Trim Bandaru
- 83
- 2
- 8
3
votes
2 answers
Getting 404 Not Found in $batch of Odata
I am new to Odata.I have send multiple Post Request to Same Url.Then Getting exeption
"**http://localhost:25907/odata/$batch**"
Not Found Please any one help me how to handle this.
Thanks in advance.

Charnjeet Singh
- 3,056
- 6
- 35
- 65
3
votes
1 answer
I'm using OData4j for Android,I can't get the entities
This is my code:
package com.example.toggleDemo;
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import org.odata4j.consumer.ODataConsumer;
import org.odata4j.core.OEntity;
import…

bnPYSse
- 397
- 4
- 12
3
votes
0 answers
Odata4j Not Found Exception
I have created an OData producer with Tomcat by following this tutorial.
However, when I go to the specified url at the tomcat server, I get the following error:
My pom.xml is:

AllieCat
- 3,890
- 10
- 31
- 45
2
votes
2 answers
How do you post to a Web API 2 OData Controller
I created a Web API 2 project and configured an OData4 controller following the steps here: Web API 2 Odata 4 Tutorial
However whenever I try and do a simple POST(with a JSON body to create an entity) using Postman I get the following error back:…

Sudeep Unnikrishnan
- 441
- 1
- 8
- 19
2
votes
0 answers
How to make OData pick RestEasy as provider?
We have a RestEasy-based JAX-RS application serving URLs to clients that now has a requirement to call another API that uses OData4j. When I tried to use ODataConsumer in this application to consume the response from the other API, I get…

Paddy
- 3,472
- 5
- 29
- 48