We're updating the issue view to help you get more done. 

Exception from SPARQLResultsXMLParser drops the cause

Description

In SPARQLResultsXMLParser, the QueryResultParseException and IllegalArgumentException do not pass the cause exception to the new one, so information is lost. For example, if a string has an invalid URI, the exception will have no message. I'll attach a patch. The stacktrace below is with my fix. org.openrdf.query.resultio.QueryResultParseException: java.lang.IllegalArgumentException: Not a valid (absolute) URI: XMLSchema.STRING at org.openrdf.query.resultio.sparqlxml.SPARQLResultsXMLParser.parse(SPARQLResultsXMLParser.java:97) at com.franz.agraph.http.AGResponseHandler.handleResponse(AGResponseHandler.java:167) ... 12 more Caused by: java.lang.IllegalArgumentException: Not a valid (absolute) URI: XMLSchema.STRING at org.openrdf.model.impl.URIImpl.setURIString(URIImpl.java:68) ...

Environment

None

Status

Assignee

Peter Ansell

Reporter

Mike Hinchey

Labels

None

Fix versions

Affects versions

2.3.1
2.7.0-beta2

Priority

Minor