[ 
https://issues.apache.org/jira/browse/OLINGO-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13950603#comment-13950603
 ] 

fabio martelli commented on OLINGO-226:
---------------------------------------

Hi, same test works fine with northwind. See below.

 public void testApp() {
        final EntityContainerFactory entityContainerFactory = 
EntityContainerFactory.getV3Instance(
                
"http://services.odata.org/v3/%28S%28g00nkir0ssikgdmz3maw5l1x%29%29/Northwind/Northwind.svc/";);

        NorthwindEntities service = 
entityContainerFactory.getEntityContainer(NorthwindEntities.class);
        Products products = service.getProducts();
        ProductCollection all = service.getProducts().getAll(); // maybe 
products.getAll() would be better

        assertNotNull(all);
        assertFalse(all.isEmpty());

        for (Product person : all) {
            assertNotNull(person);
        }
    }

Performed steps:
1. checkout from https://git-wip-us.apache.org/repos/asf/olingo-odata4
2. "mvn clean install" of olingo-odata4/ODataJClient
3. run test above.

Have you got more info to provide?

Best regards,
F.

> 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)

Reply via email to