[
https://issues.apache.org/jira/browse/OLINGO-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13957775#comment-13957775
]
Amit Jahagirdar commented on OLINGO-226:
----------------------------------------
Hi,
I did checkout the code from the specified location and did mvn clean install
on olingo-odata/OdataJClient.
The build was successfull on command prompt.
Now the issue I am facing is while I import this project as maven project in
eclipse it gives compilation errors for
import com.fasterxml.aalto.stax.InputFactoryImpl;
import com.fasterxml.aalto.stax.OutputFactoryImpl;
import com.fasterxml.jackson.dataformat.xml.JacksonXmlModule;
import com.fasterxml.jackson.dataformat.xml.XmlFactory;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
My aim is to debug the getAll() method for Northwind EDM, and then check why
its failing on my custom EDM.
Could you suggest some steps so that this can be done.
Also how to ensure that the server is running OdataV3 ?
Thanks
Amit
> 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
> Assignee: fabio martelli
> 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)