Yes it is possible that Lang comes back as null from the language lookup resulting in a NPE
More recent versions of ARQ do the check slightly differently so there is no chance of a NPE occurring. Rob On 29/10/2013 11:34, "Martynas Jusevičius" <[email protected]> wrote: >Hey, > >one of Graphity users has configured it with Sesame SPARQL endpoint, >but he gets an NPE in ARQ code: > >11:15:54,198 DEBUG DataManager:98 - Remote service >http://localhost:8080/openrdf-workbench/repositories/odn/query Query: >DESCRIBE ?instance <http://192.168.122.30:8080/graphity-browser/> >WHERE > { { SELECT ?instance > WHERE > { ?instance <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ><http://rdfs.org/ns/void#Dataset> } > OFFSET 0 > LIMIT 20 > } > } > >11:15:54,252 DEBUG DataManager:140 - Remote query execution exception: {} >java.lang.NullPointerException >at >com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execModel(QueryEngineHT >TP.java:281) >at >com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execDescribe(QueryEngin >eHTTP.java:258) >at >com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execDescribe(QueryEngin >eHTTP.java:255) >at org.graphity.server.util.DataManager.loadModel(DataManager.java:134) >at org.graphity.server.util.DataManager.loadModel(DataManager.java:161) >at >org.graphity.server.model.SPARQLEndpointBase.loadModel(SPARQLEndpointBase. >java:324) > >The dependency is on ARQ 2.9.2, and I found the code in question: >http://grepcode.com/file/repo1.maven.org/maven2/org.apache.jena/jena-arq/2 >.9.2/com/hp/hpl/jena/sparql/engine/http/QueryEngineHTTP.java?av=f#281 > >What could go wrong there? Is it possible that the "lang" variable >somehow becomes null? > >Martynas >graphityhq.com
