[Backlogmanager] [FIWARE-JIRA] (HELP-8760) [fiware-stackoverflow] Error with the response of Orion in Eclipse

Fernando Lopez (JIRA) jira-help-desk at jira.fiware.org
Thu May 25 10:09:00 CEST 2017


     [ https://jira.fiware.org/browse/HELP-8760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Lopez updated HELP-8760:
---------------------------------
    Status: In Progress  (was: Open)

> [fiware-stackoverflow] Error with the response of Orion in Eclipse
> ------------------------------------------------------------------
>
>                 Key: HELP-8760
>                 URL: https://jira.fiware.org/browse/HELP-8760
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Fermín Galán
>              Labels: fiware, fiware-orion, java
>
> Created question in FIWARE Q/A platform on 23-03-2015 at 23:03
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/29221901/error-with-the-response-of-orion-in-eclipse
> +Question:+
> Error with the response of Orion in Eclipse
> +Description:+
> I am developing under an example (ExampleClient.zip) I dowloand from  http://catalogue.fi-ware.eu/sites/default/files/storage/enablers/ExampleClient.zip
> But I have some problems with this error
> Exception in thread "main" org.apache.xmlbeans.XmlException: error: Unexpected end of file after null
> at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3511)
> at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1277)
> at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1264)
> at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
> at noNamespace.UpdateContextSubscriptionResponseDocument$Factory.parse(UpdateContextSubscriptionResponseDocument.java:71)
> at com.sap.research.fiware.ngsi10.test.server.exampleclient.ExampleClient.main(ExampleClient.java:92)
> Caused by: org.xml.sax.SAXParseException; systemId: file:; lineNumber: 1; columnNumber: 1; Unexpected end of file after null
>     at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
>     at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
>     at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3479)
>     ... 5 more
> this happend when I try to work with the Json Response of my Orion Context.
> String Addrres = "http://CENTOS-66.cloudapp.net:1026/version";
>     URL url = new URL(Addrres);
>     HttpURLConnection connection = (HttpURLConnection) url.openConnection();
> InputStream inputStream = connection.getInputStream();
> UpdateContextSubscriptionResponseDocument respDoc = UpdateContextSubscriptionResponseDocument.Factory.parse(inputStream);
> I print the response of my Orion and I realice there is a null and some /ln at the end of the json response that maybe produces this error and when I compare the characters of the response with connection.getContentLength() are not the same with the print of the response that i make, always 5 characters more.
> the XML response in this case is
> <orion>
> <version>0.19.0</version>
> <uptime>6 d, 23 h, 23 m, 42 s</uptime>
> <git_hash>1ad73b298cd261861203fbffb9c789f6ade2796d</git_hash>
> <compile_time>Wed Feb 11 13:00:19 CET 2015</compile_time>
> <compiled_by>fermin</compiled_by>
> <compiled_in>centollo</compiled_in>
> </orion>
> the error, It could be problem of the null of the response, or maybe i didn`t realice something.?



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy