[ https://issues.apache.org/jira/browse/OLINGO-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13898862#comment-13898862 ]
Michael Bolz commented on OLINGO-152: ------------------------------------- Hi Dhaval, I see the problem in combination with your service. I will change the {{logRawContent()}} method so that the stream will be read till EOF is signaled (and not as current where it is assumed that the stream delivers only one chunk of data). Thanks for your help to test the client and the documentation. Kind regards, Michael > ODAta Client not working > ------------------------- > > Key: OLINGO-152 > URL: https://issues.apache.org/jira/browse/OLINGO-152 > Project: Olingo > Issue Type: Bug > Components: odata2-documentation > Reporter: dhaval gupta > Assignee: Michael Bolz > Attachments: CopyOfOlingoSampleApp.java > > > Hi, > 3-4 days back I found the attached programme of the standalone java client to > connect to the olingo restful service and retrieve data on olingo > documentation page. I implemented it but when I try to retrieve data I get > the below expception. > Exception in thread "main" > org.apache.olingo.odata2.api.ep.EntityProviderException: > com.ctc.wstx.exc.WstxEOFException: in xml declaration > at [row,col {unknown-source}]: [1,26] > at > org.apache.olingo.odata2.core.commons.XmlHelper.createStreamReader(XmlHelper.java:58) > at > org.apache.olingo.odata2.core.edm.provider.EdmxProvider.parse(EdmxProvider.java:50) > at com.test.OlingoSampleApp.readEdm(OlingoSampleApp.java:193) > at com.test.OlingoSampleApp.main(OlingoSampleApp.java:102) > Caused by: com.ctc.wstx.exc.WstxEOFException: in xml declaration > at [row,col {unknown-source}]: [1,26] > at > com.ctc.wstx.io.ReaderBootstrapper.loadMore(ReaderBootstrapper.java:273) > at > com.ctc.wstx.io.ReaderBootstrapper.nextChar(ReaderBootstrapper.java:385) > at > com.ctc.wstx.io.ReaderBootstrapper.checkKeyword(ReaderBootstrapper.java:330) > at > com.ctc.wstx.io.InputBootstrapper.readXmlEncoding(InputBootstrapper.java:352) > at > com.ctc.wstx.io.InputBootstrapper.readXmlDecl(InputBootstrapper.java:288) > at > com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:155) > at > com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:531) > at > com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:585) > at > com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:610) > at > com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:316) > at > org.apache.olingo.odata2.core.commons.XmlHelper.createStreamReader(XmlHelper.java:44) > ... 3 more -- This message was sent by Atlassian JIRA (v6.1.5#6160)