You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "dhaval gupta (JIRA)" <ji...@apache.org> on 2014/02/08 11:20:19 UTC

[jira] [Updated] (OLINGO-152) ODAta Client not working

     [ https://issues.apache.org/jira/browse/OLINGO-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dhaval gupta updated OLINGO-152:
--------------------------------

    Description: 
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

> ODAta Client  not working
> -------------------------
>
>                 Key: OLINGO-152
>                 URL: https://issues.apache.org/jira/browse/OLINGO-152
>             Project: Olingo
>          Issue Type: Bug
>            Reporter: dhaval gupta
>
> 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)