Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6556

StackOverflowError at Cleanup action

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 10.8.1.2
    • Fix Version/s: None
    • Component/s: Store
    • Labels:
      None
    • Environment:
      Apache Derby: 10.8.1.2 (1095077), RT info | os.arch=x86 | | os.name=Windows 2003 | | os.version=5.2 | | java.version=1.6.0_17 | | -Xmx512m
    • Bug behavior facts:
      Crash

      Description

      Database cannot be used anymore. Following stacktrace appear in the derby.log

      Wed Apr 23 08:09:39 CEST 2014 Thread[DRDAConnThread_6,5,derby.daemons] (XID = 9981486), (SESSIONID = 7), (DATABASE = 1), (DRDAID = ??????.-521290258635547491

      {5745}), Cleanup action starting
      Wed Apr 23 08:09:39 CEST 2014 Thread[DRDAConnThread_6,5,derby.daemons] (XID = 9981486), (SESSIONID = 7), (DATABASE = 1), (DRDAID = ??????.-521290258635547491{5745}

      ), Failed Statement is: null with 4 parameters begin parameter #1: 154643 :end parameter begin parameter #2: xxx.xxxxxxx.xx.xx :end parameter begin parameter #3: 108 :end parameter begin parameter #4: 1 :end parameter
      java.lang.StackOverflowError
      at java.io.File.exists(Unknown Source)
      at org.apache.derby.impl.store.raw.data.StreamFileContainer.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.derby.impl.store.raw.data.StreamFileContainer.privExists(Unknown Source)
      at org.apache.derby.impl.store.raw.data.StreamFileContainer.open(Unknown Source)
      at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openStreamContainer(Unknown Source)
      at org.apache.derby.impl.store.raw.xact.Xact.openStreamContainer(Unknown Source)
      at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.dropStreamContainer(Unknown Source)
      at org.apache.derby.impl.store.raw.xact.Xact.dropStreamContainer(Unknown Source)
      at org.apache.derby.impl.store.raw.data.DropOnCommit.update(Unknown Source)
      at java.util.Observable.notifyObservers(Unknown Source)
      at org.apache.derby.iapi.store.raw.xact.RawTransaction.notifyObservers(Unknown Source)
      at org.apache.derby.impl.store.raw.data.DropOnCommit.update(Unknown Source)
      at java.util.Observable.notifyObservers(Unknown Source)
      [...]
      => DropOnCommit occurs 339 times
      [...]
      at org.apache.derby.iapi.store.raw.xact.RawTransaction.notifyObservers(Unknown Source)
      at org.apache.derby.impl.store.raw.data.DropOnCommit.update(Unknown Source)

      ------------ BEGIN SHUTDOWN ERROR STACK -------------

      ERROR XSTB0: An exception was thrown during transaction abort.
      at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
      at org.apache.derby.impl.store.raw.xact.Xact.preComplete(Unknown Source)
      at org.apache.derby.impl.store.raw.xact.Xact.abort(Unknown Source)
      at org.apache.derby.impl.store.raw.xact.XactContext.cleanupOnError(Unknown Source)
      at org.apache.derby.iapi.services.context.ContextManager.cleanupOnError(Unknown Source)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.cleanupOnError(Unknown Source)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedConnection.commit(Unknown Source)
      at org.apache.derby.impl.drda.Database.commit(Unknown Source)
      at org.apache.derby.impl.drda.DRDAConnThread.processCommands(Unknown Source)
      at org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source)

      ------------ END SHUTDOWN ERROR STACK -------------

      Cleanup action completed
      Wed Apr 23 08:47:57 CEST 2014 Thread[DRDAConnThread_5,5,derby.daemons] (DATABASE = 1), (DRDAID =

      {6054}

      ), Java exception: ': java.lang.NullPointerException'.
      Wed Apr 23 09:34:45 CEST 2014 Thread[DRDAConnThread_6,5,derby.daemons] (XID = 10249422), (SESSIONID = 9), (DATABASE = 1), (DRDAID =

      {6340}

      ), Cleanup action starting
      java.lang.NullPointerException
      at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown Source)
      at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown Source)
      at org.apache.derby.impl.store.raw.xact.Xact.openContainer(Unknown Source)
      at org.apache.derby.impl.store.access.heap.HeapConglomerateFactory.readConglomerate(Unknown Source)
      at org.apache.derby.impl.store.access.RAMAccessManager.conglomCacheFind(Unknown Source)
      at org.apache.derby.impl.store.access.RAMTransaction.findExistingConglomerate(Unknown Source)
      at org.apache.derby.impl.store.access.RAMTransaction.openConglomerate(Unknown Source)
      at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDescriptorViaIndexMinion(Unknown Source)
      at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDescriptorViaIndex(Unknown Source)
      at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.locateSchemaRow(Unknown Source)
      at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getSchemaDescriptor(Unknown Source)
      at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.initDefaultSchemaDescriptor(Unknown Source)
      at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.initialize(Unknown Source)
      at org.apache.derby.impl.db.BasicDatabase.setupConnection(Unknown Source)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.startTransaction(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedConnection.checkUserIsNotARole(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedConnection.checkUserCredentials(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
      at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
      at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
      at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
      at org.apache.derby.impl.drda.Database.makeConnection(Unknown Source)
      at org.apache.derby.impl.drda.DRDAConnThread.getConnFromDatabaseName(Unknown Source)
      at org.apache.derby.impl.drda.DRDAConnThread.verifyUserIdPassword(Unknown Source)
      at org.apache.derby.impl.drda.DRDAConnThread.parseSECCHK(Unknown Source)
      at org.apache.derby.impl.drda.DRDAConnThread.parseDRDAConnection(Unknown Source)
      at org.apache.derby.impl.drda.DRDAConnThread.processCommands(Unknown Source)
      at org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source)
      Cleanup action completed

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                antimaterie Andreas Resch
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: