Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-27

NullPointerException at com.hp.hpl.jena.sdb.compiler.SDB_QC.exec (PATCH)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Done
    • None
    • Jena 2.11.0
    • SDB
    • None
    • java version "1.6.0_22"
      Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
      Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

    Description

      Unable to execute SPARQL queries with SDB. OpSQL's bridge is null in at least some cases. Patch works, but seems odd as the code seems to indicate that a op3 (3rd pass?) shouldn't need a bridge any more?

      java.lang.NullPointerException
      at com.hp.hpl.jena.sdb.compiler.SDB_QC.exec(SDB_QC.java:65)
      at com.hp.hpl.jena.sdb.compiler.OpSQL.exec(OpSQL.java:53)
      at com.hp.hpl.jena.sdb.engine.QueryEngineSDB.eval(QueryEngineSDB.java:117)
      at
      com.hp.hpl.jena.sparql.engine.QueryEngineBase.evaluate(QueryEngineBase.java:138)
      at
      com.hp.hpl.jena.sparql.engine.QueryEngineBase.createPlan(QueryEngineBase.java:109)
      at
      com.hp.hpl.jena.sparql.engine.QueryEngineBase.getPlan(QueryEngineBase.java:97)
      at
      com.hp.hpl.jena.sdb.engine.QueryEngineSDB$QueryEngineFactorySDB.create(QueryEngineSDB.java:142)
      at
      com.hp.hpl.jena.sparql.engine.QueryExecutionBase.getPlan(QueryExecutionBase.java:266)
      at
      com.hp.hpl.jena.sparql.engine.QueryExecutionBase.startQueryIterator(QueryExecutionBase.java:243)
      at
      com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execResultSet(QueryExecutionBase.java:248)
      at
      com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execSelect(QueryExecutionBase.java:94)
      at com.oreilly.rdf.tenuki.SDBBugTest.testForSDBBug(SDBBugTest.java:47)

      Test Case:
      https://github.com/norcalrdf/Tenuki/blob/0.4-bugfixes/src/test/java/com/oreilly/rdf/tenuki/SDBBugTest.java

      Patch:
      https://gist.github.com/675719

      Attachments

        Activity

          People

            andy Andy Seaborne
            gavin.carothers Gavin Carothers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: