Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-656

NPE in Leaf.getKey() [data field is null]

    XMLWordPrintable

    Details

      Description

      The following stack trace has been reported against 1.0.7. The problem is unlikely to be specific to that release version. Customer states that the commit during which the stack trace occurred was not large, but that "a lot of statements were removed and added" during the commit.

      Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NullPointerException
                  at com.bigdata.rdf.spo.SPORelation.insert(SPORelation.java:1979) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.store.AbstractTripleStore.addStatements(AbstractTripleStore.java:3481) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.rio.StatementBuffer.writeSPOs(StatementBuffer.java:1012) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.rio.StatementBuffer.addStatements(StatementBuffer.java:880) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.rio.StatementBuffer.incrementalWrite(StatementBuffer.java:719) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.rio.StatementBuffer.flush(StatementBuffer.java:387) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.sail.BigdataSail$BigdataSailConnection.flushStatementBuffers(BigdataSail.java:2913) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.sail.BigdataSail$BigdataSailConnection.commit2(BigdataSail.java:2743) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.sail.BigdataSailRepositoryConnection.commit2(BigdataSailRepositoryConnection.java:260) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.sail.BigdataSailRepositoryConnection.commit(BigdataSailRepositoryConnection.java:279) ~[bigdata-1.0.7.jar:na]
                  ... 23 common frames omitted
      Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException
                  at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) [na:1.6.0_29]
                  at java.util.concurrent.FutureTask.get(FutureTask.java:83) [na:1.6.0_29]
                  at com.bigdata.rdf.spo.SPORelation.insert(SPORelation.java:1960) ~[bigdata-1.0.7.jar:na]
                  ... 33 common frames omitted
      Caused by: java.lang.NullPointerException: null
                  at com.bigdata.btree.Leaf.getKeys(Leaf.java:181) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.btree.Leaf.lookup(Leaf.java:850) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.btree.Node.lookup(Node.java:941) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.btree.Node.lookup(Node.java:941) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.btree.Node.lookup(Node.java:941) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.btree.AbstractBTree.lookup(AbstractBTree.java:2278) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.btree.AbstractBTree.lookup(AbstractBTree.java:2206) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.spo.SPOIndexWriteProc.apply(SPOIndexWriteProc.java:230) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.btree.UnisolatedReadWriteIndex.submit(UnisolatedReadWriteIndex.java:823) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.spo.SPOIndexWriter.call(SPOIndexWriter.java:296) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.spo.SPOIndexWriter.call(SPOIndexWriter.java:68) ~[bigdata-1.0.7.jar:na]
                  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_29]
                  at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_29]
                  ... 3 common frames omitted
      

      In continued operations against the same Journal after rolling back the failed write, the following trace was also observed:

      java.lang.RuntimeException: Problem with entry at -6337490533219930: lastRootBlock=rootBlock{ rootBlock=0, challisField=77454, version=2, nextOffset=142713173319706, localTime=1335034609791 [Saturday, April 21, 2012 2:56:49 PM EDT], firstCommitTime=1334753558347 [Wednesday, April 18, 2012 8:52:38 AM EDT], lastCommitTime=1335034609788 [Saturday, April 21, 2012 2:56:49 PM EDT], commitCounter=77454, commitRecordAddr={off=NATIVE:-1475567,len=422}, commitRecordIndexAddr={off=NATIVE:-8217,len=220}, quorumToken=0, metaBitsAddr=56316919867, metaStartAddr=34168, storeType=RW, uuid=5d063d54-a4ab-4a5a-bf4e-aa631678cd57, offsetBits=42, checksum=-1050009439, createTime=1334753555217 [Wednesday, April 18, 2012 8:52:35 AM EDT], closeTime=0}
                  at com.bigdata.journal.AbstractJournal.commit(AbstractJournal.java:2287) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.store.LocalTripleStore.commit(LocalTripleStore.java:74) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.sail.BigdataSail$BigdataSailConnection.commit2(BigdataSail.java:2745) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.sail.BigdataSailRepositoryConnection.commit2(BigdataSailRepositoryConnection.java:260) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rdf.sail.BigdataSailRepositoryConnection.commit(BigdataSailRepositoryConnection.java:279) ~[bigdata-1.0.7.jar:na]
                     ????
      Caused by: java.lang.RuntimeException: Problem with entry at -6337490533219930
                  at com.bigdata.rwstore.RWStore.freeDeferrals(RWStore.java:3559) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rwstore.RWStore.checkDeferredFrees(RWStore.java:2384) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.journal.RWStrategy.checkDeferredFrees(RWStrategy.java:673) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.journal.AbstractJournal.commitNow(AbstractJournal.java:2423) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.journal.AbstractJournal.commit(AbstractJournal.java:2285) ~[bigdata-1.0.7.jar:na]
                  ... 20 common frames omitted
      Caused by: java.lang.IllegalArgumentException: IAE with address: -1475564, size: 1, context: -1
                  at com.bigdata.rwstore.FixedAllocator.free(FixedAllocator.java:674) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rwstore.RWStore.immediateFree(RWStore.java:1763) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rwstore.RWStore.immediateFree(RWStore.java:1734) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rwstore.RWStore.freeDeferrals(RWStore.java:3467) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rwstore.RWStore.freeDeferrals(RWStore.java:3545) ~[bigdata-1.0.7.jar:na]
                  ... 24 common frames omitted
      Caused by: java.lang.IllegalArgumentException: Freeing bit not set
                  at com.bigdata.rwstore.AllocBlock.freeBit(AllocBlock.java:147) ~[bigdata-1.0.7.jar:na]
                  at com.bigdata.rwstore.FixedAllocator.free(FixedAllocator.java:652) ~[bigdata-1.0.7.jar:na]
                  ... 28 common frames omitted
      

        Attachments

          Activity

            People

            Assignee:
            bryanthompson bryanthompson
            Reporter:
            bryanthompson bryanthompson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: