Questions tagged [odata4j]

odata4j is a new open-source toolkit for building first-class OData producers and first-class OData consumers in Java.

109 questions
1
vote
2 answers

Auto-wiring with spring in an init-param class of a servlet

I am having some difficulty auto-wiring beans into a class which is loaded as an init-param in a servlet for OData4j. I have tried many solutions including load-time-weaving but cannot seem to get it to work correctly because as I understand it,…
BVSmallman
  • 601
  • 3
  • 9
1
vote
0 answers

Access HttpServletRequest in OData4j service provider

I realise that this is pretty much a duplicate of How to access HttpServletRequest in Odata service provider, but since it didn't get any anwser I'll try my chances. The concensus for this problem seems to be "use @Context HttpServletRequest req to…
Mathieu
  • 1,638
  • 2
  • 27
  • 50
1
vote
1 answer

How to access HttpServletRequest in Odata service provider

I am using Odata4j for exposing my services and i need to access HttpServletRequest object from my service provider. Is there is a way yo do this. I tried using @Context annotation to inject the object but it is giving null
srikanth
  • 53
  • 7
1
vote
1 answer

OData post using odata4j missing "category" element

I'm attempting to make an Odata post using odata4j. After dumping the posted xml data, I copied it into a php script using curl just to test. I found out that the xml post is missing the "category" element which is required for a post. I can't…
SBerg413
  • 14,515
  • 6
  • 62
  • 88
1
vote
0 answers

OdataV3 implementation in Java

I have implemented OdataV4 service using apache olingo. I am looking for a library that supports OdataV3 implementation. Clearly, apache olingo doesnt provide libraby for V3 yet. Also tried Odata4J but looks they have declared support for OdataV3…
Anup Jain
  • 23
  • 3
1
vote
1 answer

Problem attempting to make a post to an odata server using odata4j in android/java

I'm attempting to use the odata4j lib to make an OData post to a client's server. I'm doing this by creating a custom CursorWrapper to get the type of each column. It seems that no matter what I do, I'm getting a '406 Not Acceptable' error. The…
SBerg413
  • 14,515
  • 6
  • 62
  • 88
1
vote
3 answers

OData4J and AppEngine

Does anyone have a very simple example of using OData4J and GAE? In the OData4J site there is a stub project for use in GAE...but doesn't really show how to expose entities out of the datastore as odata entities. I may be missing something with…
1
vote
3 answers

C# OData4 Apply OData query without controller returning Queryable

I currently have an C# WebAPI that uses a version of OData that we wrote. We want to start using Microsoft's OData4 which can do more then our custom implementation. Creating a controller that extends the ODataController I can create a controller…
James Madison
  • 337
  • 1
  • 4
  • 17
1
vote
1 answer

Error when retrieving OData data when using OData4J

I am trying to use OData4J to retrieve a list of Users from the StackOverflow OData service (onto an Android 2.1 device), but it isn't working. public static Enumerable getUserInfo() { ODataConsumer c =…
Techboy
  • 4,286
  • 5
  • 36
  • 45
1
vote
0 answers

How to start odata4j and olingo odatav2 on android

I'm trying to work with odatav2 on ANDROID. I compile my android application with gradle: compile files('src/lib/odata4j-0.7.0-clientbundle.jar') But at runtime I got: java.lang.TypeNotPresentException: Type javax.xml.stream.XMLInputFactory not…
tbw
  • 71
  • 7
1
vote
1 answer

How do I filter entities by date range in odata4j?

The odata4j AppEngineConsumerExample demonstrates how to filter entities on string and numeric values with code similar to the following: reportEntity("\nNon-discontinued product with reorderLevel > 25 (two filter predicates): " , …
Andy Dyer
  • 506
  • 6
  • 20
1
vote
0 answers

CSRF token validation failed in Odata4j

I'm trying to post the entry to Odata service Url which is created in SAP ABAP backend. When i'm trying to send the data from java code to SAP ABAP system via Odata service, I'm getting CSRF Token validation error. Below is the code snippet for…
1
vote
0 answers

Odata4j Android - Illegal datetime format

I am encountering the exception stated below in my android code where I am trying to parse an ODATA service using odata4j JAR library. java.lang.IllegalArgumentException: Illegal datetime format 2015-05-07T00%3A00%3A00 I am getting the error at…
Dhaval
  • 1,597
  • 11
  • 15
1
vote
0 answers

Issue with JBOSS CDI for Odata4J

I am trying to deploy OData4j in wildfly server . At the startup of the application I am getting the following error, Caused by: org.jboss.weld.exceptions.UnproxyableResolutionException: WELD-001437: Normal scoped bean class…
1
vote
1 answer

How to handle the "Unknow ODataVersion 3.0" exception when I use odata4j?

I am studying the odata protocal, and find the odata4j, but when I follow the Consumers Example, an exception occurred, "java.lang.IllegalArgumentException: Unknown ODataVersion 3.0". I debug it and found the odata4j is not supported odata version…
jason
  • 364
  • 1
  • 3
  • 10