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(QueryEngineHTTP.java:281)
at 
com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execDescribe(QueryEngineHTTP.java:258)
at 
com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execDescribe(QueryEngineHTTP.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

Reply via email to