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
0 answers

Odata4j 0.7 Client Expected Status Missing NOT_FOUND

Does anyone know why the Odata4j 0.7.0 client have updated expected response status? For more details you can refer to the issue raised on following link; https://code.google.com/p/odata4j/issues/detail?id=264
SJunejo
  • 1,316
  • 4
  • 23
  • 39
1
vote
1 answer

Error: No Persistence provider for EntityManager

There are so many questions about this error message already on StackOverflow, but I can't find a solution... The error is: SEVERE: Mapped exception to response: 500 (Internal Server Error) javax.persistence.PersistenceException: No Persistence…
AllieCat
  • 3,890
  • 10
  • 31
  • 45
1
vote
1 answer

OData4j 0.7 Exception while retrieving workitems

I am trying to retrieve workitems from TFS Server using OData4j 0.7 in Java. Here is my code: public List getWorkItems(final String projectName) { final List tfsWorkItems = new ArrayList(); String…
1
vote
2 answers

Handling a large-ish binary file, streaming to storage

I am using Odata4j and my entity has one Data field which is a binary file. When viewing through a browser it shows as a Base64 string. How can I get this file onto my Android device? I have tried the following to get a byte[]... String stringData =…
musefan
  • 47,875
  • 21
  • 135
  • 185
1
vote
1 answer

ODataConsumer create method undefined - ADT - Build: v21.1.0-569685

I'm entering the world of android development, i haven't written java since uni (some time ago now). I have written and deployed a working WCF Data Service and am now attempting to consumer that service from my android app. i've been reading blogs…
T00ks
  • 165
  • 1
  • 9
1
vote
2 answers

Viewing Odata response in web browser

Hi All I have used Odata4j to create Odata Service and deployed in tomcat. When i use Sesame Data Browser i can see a Table (if i click on THREAD ) having header. My question what should be the url to see the same data in web-browser? I want to…
Arvind
  • 1,207
  • 6
  • 27
  • 55
1
vote
2 answers

Android maven build (eclipse) failes because of "unexpected top-level exception" (using odata4j dependency)

I have a problem building an android maven project (eclipse m2e, android for maven). The "install" goal resumes with: [INFO] UNEXPECTED TOP-LEVEL EXCEPTION: [INFO] java.lang.IllegalArgumentException: already added: Ljavax/persistence/Access; [INFO] …
Subby
  • 1,997
  • 4
  • 22
  • 38
1
vote
1 answer

OData4j and CXF with Spring

I am attempting to integrate odata4j into an existing CXF service application. The servlet already hosts an existing soap and rest service. My application server is tomcat. My web.xml: CXFServlet
LDAdams
  • 682
  • 4
  • 18
1
vote
2 answers

How to reduce the timeout of HTTP requests send by odata4j

I'm trying to use the odata4j library in a mobile Android app. Sometimes a HTTP request doesn't get a response because the device lost it's mobile connection just after sending the request. After a few attempts to reproduce it and timing it, I…
0
votes
2 answers

odata4j consumer function call

I am having a problem with calling a ext function in odata4j in android client consumer. E.g. the function "Movies" of Netflix public service. METADATA of function:
user1135839
  • 563
  • 2
  • 7
  • 14
0
votes
1 answer

How to process the 'filter' from QueryInfo in odata4j

My RESTful web service is passing my Producer some filter information in their request. For example their URL includes :- /ACCOUNT-LIST?$filter=Id eq '45012' How do I process this in odata4j? From the odata4j JavaDoc I can see that the filter is of…
Sarah Rushworth
  • 813
  • 3
  • 9
  • 16
0
votes
1 answer

406 Not acceptable while performing post on ODATA4j

Am a newbie in odata4j concepts. Using odata4j Library odata4j-0.5-nojpabundle.jar launched producer on tomcat using link http://code.google.com/p/odata4j/wiki/Tomcat. My producer is modified to give an large list of integers as an entity-set called…
kshama
  • 1,637
  • 4
  • 18
  • 21
0
votes
1 answer

How to implement paging and caching in OData Java?

I am writing an OData Producer in Java using odata4j. The Producer provides feeds of data from a legacy database. I'm trying to find out how I implement paging and caching in my OData Producer. I see lots of examples using .NET where you can set…
Sarah Rushworth
  • 813
  • 3
  • 9
  • 16
0
votes
1 answer

Service Driver paging using OData4j

Is it possible to use the service driven paging feature in WCF Data services when using OData4j as a client?Using service driver paging the number of results will be reduced on the server even if the client does not explcitly requested it. When the…
Tomas Walek
  • 2,516
  • 2
  • 23
  • 37
0
votes
2 answers

how to access a primitive return value as a result of making a function call in odata4j?

The function shown below is a stub of a Service operation implemented in WCF Data Services, it accepts a string parameter and returns a string as well, how do I call this operation and read the returned string value back?, thank…