RoyZeng / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

odata4j NullPointerException and WCF Data Service #278

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I use getEntities for getting information from my WCF Data Service:
            ODataConsumer.Builder builder = ODataConsumers.newBuilder("http://myIP:1990/Service/DocService.svc");
            builder.setFormatType(FormatType.ATOM);
            builder.setClientBehaviors(new BasicAuthenticationBehavior("admin", "21232f297a57a5a743894a0e4a801fc3"));
            ODataConsumer consumer = builder.build();
            Enumerable<OEntity> qList = consumer.getEntities("gr_shop").execute();

And I see java.lang.NullPointerException. StackTrace:

->org.odata4j.consumer.ConsumerQueryEntitiesRequest.doRequest(ConsumerQueryEntit
iesRequest.java:64)
->org.odata4j.consumer.ConsumerQueryEntitiesRequest.getEntries(ConsumerQueryEnti
tiesRequest.java:50)
->org.odata4j.consumer.ConsumerQueryEntitiesRequest.execute(ConsumerQueryEntitie
sRequest.java:40)
....

What version of the product are you using? On what operating system?
Windows 8.1, odata4j 0.7 

I attached response xml-file, that service has given to me.

Original issue reported on code.google.com by barbany...@gmail.com on 27 Feb 2014 at 8:52

Attachments:

GoogleCodeExporter commented 9 years ago
Did you get this resolved, I am having the same problem.

Original comment by kevven...@gmail.com on 14 May 2014 at 6:18