Hi,
it says: "Premature end of file".
Maybe, the result from your query is too big and/or the server times out.

You can try to run the same query without using Jena and just have the
response in a file for inspection.

Paolo

Gunaratna, Dalkandura Arachchige Kalpa Shashika Silva wrote:
> Hi,
>     I am querying Dbpedia for instances and properties using the sparql 
> endpoint http://dbpedia.org/sparql and I use Jena libraries in Java. Recently 
> I got the following error while querying and it does not happen for all 
> queries (all queries are the same format) but most of them. Following is the 
> error I get. Anyone knows what is the cause of this?
> 
> 
> 
>  WARN [main] (ALog.java:58) - XMLStreamException: ParseError at 
> [row,col]:[1,1]
> Message: Premature end of file.
> javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
> Message: Premature end of file.
>     at 
> com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:592)
>     at 
> com.hp.hpl.jena.sparql.resultset.XMLInputStAX$ResultSetStAX.skipTo(XMLInputStAX.java:305)
>     at 
> com.hp.hpl.jena.sparql.resultset.XMLInputStAX$ResultSetStAX.skipTo(XMLInputStAX.java:297)
>     at 
> com.hp.hpl.jena.sparql.resultset.XMLInputStAX$ResultSetStAX.init(XMLInputStAX.java:185)
>     at 
> com.hp.hpl.jena.sparql.resultset.XMLInputStAX$ResultSetStAX.<init>(XMLInputStAX.java:178)
>     at 
> com.hp.hpl.jena.sparql.resultset.XMLInputStAX.worker(XMLInputStAX.java:137)
>     at 
> com.hp.hpl.jena.sparql.resultset.XMLInputStAX.<init>(XMLInputStAX.java:100)
>     at com.hp.hpl.jena.sparql.resultset.XMLInput.make(XMLInput.java:64)
>     at com.hp.hpl.jena.sparql.resultset.XMLInput.fromXML(XMLInput.java:33)
>     at com.hp.hpl.jena.sparql.resultset.XMLInput.fromXML(XMLInput.java:28)
>     at 
> com.hp.hpl.jena.query.ResultSetFactory.fromXML(ResultSetFactory.java:225)
>     at 
> com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:132)
>     at 
> org.knoesis.searchenhancer.InformationProcessor.queryDBpedia_object(InformationProcessor.java:795)
>     at 
> org.knoesis.searchenhancer.InformationProcessor.isObjectsMatching(InformationProcessor.java:381)
>     at 
> org.knoesis.searchenhancer.InformationProcessor.processLargeScale(InformationProcessor.java:258)
>     at 
> org.knoesis.searchenhancer.InformationProcessor.main(InformationProcessor.java:61)
> com.hp.hpl.jena.sparql.resultset.ResultSetException: Not an ResultSet result
> 

Reply via email to