Amit Jahagirdar created OLINGO-226:
--------------------------------------
Summary: service.getProducts.getAll() not working for MyProject.
Key: OLINGO-226
URL: https://issues.apache.org/jira/browse/OLINGO-226
Project: Olingo
Issue Type: Question
Components: odata4-client
Reporter: Amit Jahagirdar
Priority: Critical
Hi,
I am using OdataJClient 0.10.0 plugin,OdataJClinet-engine,OdataJClient-proxy
10.0 from the incubator code for Odata V3.
By making chnages to the pom.xml to point to my service url I am able to
generate classes for my EDM.
Then I wrote a sampleClient with following code and the code fails on the
getAll() method.The EDMEntity set is similar to the default Northwind service
provided by Odata,
===========================================================
//XXX = my Ip address
EntityContainerFactory entityContainerFactory =
EntityContainerFactory.getV3Instance("XXXX/Northwind/1/Sample-NorthwindSourceModel/");
NorthwindEntities service =
entityContainerFactory.getEntityContainer(NorthwindEntities.class);
com.mycompany.odata.sample.northwind.Products products =
service.getProducts();
ProductsCollection all = service.getProducts().getAll();
===========================================================Caused by:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code
60)): expected a valid value (number, String, array, object, 'true', 'false' or
'null')
at [Source: org.apache.http.conn.EofSensorInputStream@1f315415; line: 1,
column: 2]
at
com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1524)
**********************************************************************************************
It would be great if someone could help me on resolving this issue.
Thanks
--
This message was sent by Atlassian JIRA
(v6.2#6252)