Derby
  1. Derby
  2. DERBY-3087

NPE while running the SVT MailJdbc

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Duplicate
    • Affects Version/s: 10.3.2.1
    • Fix Version/s: None
    • Component/s: Store
    • Labels:
      None
    • Environment:
      Windows 2000 , with ibmjvm15

      Description

      Here is the error I got in the out put file

      : ERROR :Purging Thread : Error while deleting mails by expiry manager: Java exception: ': java.lang.NullPointerException'.
      : ERROR :Refresh Thread : Exception while deleting mail by Thread: Java exception: ': java.lang.NullPointerException'.
      : ERROR :Refresh Thread : Exception while rolling back: java.sql.SQLException: No current connection.
      : ERROR :Purging Thread : Exception while rolling back: java.sql.SQLException: No current connection.
      : ERROR :deleteMailByRefresh() failed Java exception: ': java.lang.NullPointerException'.
      : INFO :Refresh doWork() completed
      : ERROR :Purging Thread : No current connection.
      : ERROR :Backup Thread : Error while doing the backup system procedure: Invalid checksum on Page Page(1491,Container(0, 960)), expected=3,208,159,254, on-disk version=1,403,141,298, page dump follows: Hex dump:
      00000000: 0076 0000 0001 0000 0000 0003 5c3a 0000 .v..............
      00000010: 0000 0006 0000 0000 0000 0000 0000 0000 ................
      00000020: 0000 0000 0001 0000 0000 0000 0000 0000 ................
      00000030: 0000 0000 0000 0000 0000 0000 ffff ffff ................
      00000040: ffff ffff 0000 0000 0000 0000 0000 0000 ................

      After the error Connections are lost. Here is the stack trace from the derby.log

      Checkpoint Daemon caught standard exception

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

      ERROR XSDB3: Container information cannot change once written: was 0, now 80
      at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
      at org.apache.derby.impl.store.raw.data.AllocPage.WriteContainerInfo(Unknown Source)
      at org.apache.derby.impl.store.raw.data.FileContainer.writeHeader(Unknown Source)
      at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
      at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
      at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
      at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
      at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
      at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
      at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
      at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
      at org.apache.derby.impl.store.raw.RawStore.checkpoint(Unknown Source)
      at org.apache.derby.impl.store.raw.log.LogToFile.performWork(Unknown Source)
      at org.apache.derby.impl.services.daemon.BasicDaemon.serviceClient(Unknown Source)
      at org.apache.derby.impl.services.daemon.BasicDaemon.work(Unknown Source)
      at org.apache.derby.impl.services.daemon.BasicDaemon.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:797)

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

      Checkpoint Daemon caught standard exception

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

      ERROR XSDB3: Container information cannot change once written: was 0, now 80
      at java.lang.Throwable.<init>(Throwable.java:57)
      at java.lang.Throwable.<init>(Throwable.java:68)
      at org.apache.derby.iapi.error.StandardException.<init>(Unknown Source)
      at org.apache.derby.iapi.error.StandardException.<init>(Unknown Source)
      at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
      at org.apache.derby.impl.store.raw.data.AllocPage.WriteContainerInfo(Unknown Source)
      at org.apache.derby.impl.store.raw.data.FileContainer.writeHeader(Unknown Source)
      at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
      at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
      at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
      at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
      at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
      at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
      at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
      at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
      at org.apache.derby.impl.store.raw.RawStore.checkpoint(Unknown Source)
      at org.apache.derby.impl.store.raw.log.LogToFile.performWork(Unknown Source)
      at org.apache.derby.impl.services.daemon.BasicDaemon.serviceClient(Unknown Source)
      at org.apache.derby.impl.services.daemon.BasicDaemon.work(Unknown Source)
      at org.apache.derby.impl.services.daemon.BasicDaemon.run(Unknown Source)

      1. derby.log
        3.66 MB
        Manjula Kutty
      2. derby.log
        302 kB
        Manjula Kutty

        Issue Links

          Activity

          Hide
          Mike Matrigali added a comment -

          could you attach a complete copy of the derby.log? Also some more info about the environment might help - ie for instance how many processors and was db data, db log and db backup destination on separate or same disks. What kind of disks and was write sync enabled or not on those disks?

          Show
          Mike Matrigali added a comment - could you attach a complete copy of the derby.log? Also some more info about the environment might help - ie for instance how many processors and was db data, db log and db backup destination on separate or same disks. What kind of disks and was write sync enabled or not on those disks?
          Hide
          Manjula Kutty added a comment -

          Here is the machine information
          System: Microsoft Windows 2000
          5.00.2195
          Service Pack 4

          Computer:
          Intel(R)Xeo
          n(TM) CPU 2.80 GHz
          AT/AT COMPATIBLE
          4,062,676 KB RAM

          Also I'm attaching the entire derby.log.

          PS : I will be rebooting the same machine and will re-run the test. Will update this issue if I hit the error again

          Show
          Manjula Kutty added a comment - Here is the machine information System: Microsoft Windows 2000 5.00.2195 Service Pack 4 Computer: Intel(R)Xeo n(TM) CPU 2.80 GHz AT/AT COMPATIBLE 4,062,676 KB RAM Also I'm attaching the entire derby.log. PS : I will be rebooting the same machine and will re-run the test. Will update this issue if I hit the error again
          Hide
          Manjula Kutty added a comment -

          Backup is also in the same dir. I ran the tests under D:\mkutty\10.3\scenario and Backing it up at D:\mkutty\10.3\scenario\mailbackup.

          Show
          Manjula Kutty added a comment - Backup is also in the same dir. I ran the tests under D:\mkutty\10.3\scenario and Backing it up at D:\mkutty\10.3\scenario\mailbackup.
          Hide
          Manjula Kutty added a comment -

          I got the error with the G:drive also. But little bit different and looks like more useful stack trace. Here is the trace

          ERROR 40XL1: A lock could not be obtained within the time requested
          at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
          at org.apache.derby.impl.services.locks.ConcurrentLockSet.lockObject(Unknown Source)
          at org.apache.derby.impl.services.locks.ConcurrentLockSet.zeroDurationLockObject(Unknown Source)
          at org.apache.derby.impl.services.locks.AbstractPool.zeroDurationlockObject(Unknown Source)
          at org.apache.derby.impl.services.locks.ConcurrentPool.zeroDurationlockObject(Unknown Source)
          at org.apache.derby.impl.store.raw.xact.RowLocking2nohold.lockRecordForRead(Unknown Source)
          at org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source)
          at org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source)
          at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockRowOnPage(Unknown Source)
          at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3._lockScanRow(Unknown Source)
          at org.apache.derby.impl.store.access.btree.index.B2IRowLockingRR.lockScanRow(Unknown Source)
          at org.apache.derby.impl.store.access.btree.BTreeForwardScan.fetchRows(Unknown Source)
          at org.apache.derby.impl.store.access.btree.BTreeScan.fetchNextGroup(Unknown Source)
          at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.reloadArray(Unknown Source)
          at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.getNextRowCore(Unknown Source)
          at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCore(Unknown Source)
          at org.apache.derby.impl.sql.execute.ScalarAggregateResultSet.getRowFromResultSet(Unknown Source)
          at org.apache.derby.impl.sql.execute.ScalarAggregateResultSet.getNextRowCore(Unknown Source)
          at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCore(Unknown Source)
          at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.insertMail(DbTasks.java:477)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.insertMail(Refresh.java:98)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.doWork(Refresh.java:74)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.run(Refresh.java:50)
          New exception raised during cleanup null
          java.lang.ArrayIndexOutOfBoundsException
          at org.apache.derby.impl.store.raw.data.BasePage.getHeaderAtSlot(Unknown Source)
          at org.apache.derby.impl.store.raw.data.StoredPage.storeRecordForUpdate(Unknown Source)
          at org.apache.derby.impl.store.raw.data.StoredPage.storeRecord(Unknown Source)
          at org.apache.derby.impl.store.raw.data.UpdateOperation.undoMe(Unknown Source)
          at org.apache.derby.impl.store.raw.data.PhysicalUndoOperation.doMe(Unknown Source)
          at org.apache.derby.impl.store.raw.log.FileLogger.logAndUndo(Unknown Source)
          at org.apache.derby.impl.store.raw.xact.Xact.logAndUndo(Unknown Source)
          at org.apache.derby.impl.store.raw.log.FileLogger.undo(Unknown Source)
          at org.apache.derby.impl.store.raw.xact.Xact.abort(Unknown Source)
          at org.apache.derby.impl.store.access.RAMTransaction.abort(Unknown Source)
          at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.doRollback(Unknown Source)
          at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.internalRollback(Unknown Source)
          at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.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.ConnectionChild.handleException(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.insertMail(DbTasks.java:477)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.insertMail(Refresh.java:98)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.doWork(Refresh.java:74)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.run(Refresh.java:50)

          ------------ 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.ConnectionChild.handleException(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.insertMail(DbTasks.java:477)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.insertMail(Refresh.java:98)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.doWork(Refresh.java:74)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.run(Refresh.java:50)

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

          2007-09-28 10:49:58.259 GMT Thread[Refresh Thread,5,main] Less severe exception raised during cleanup (ignored) An attempt was made to close a transaction that was still active. The transaction has been aborted.
          ERROR 40XT4: An attempt was made to close a transaction that was still active. The transaction has been aborted.
          at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
          at org.apache.derby.impl.store.raw.xact.Xact.close(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.ConnectionChild.handleException(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.insertMail(DbTasks.java:477)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.insertMail(Refresh.java:98)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.doWork(Refresh.java:74)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.run(Refresh.java:50)
          Cleanup action completed

          Show
          Manjula Kutty added a comment - I got the error with the G:drive also. But little bit different and looks like more useful stack trace. Here is the trace ERROR 40XL1: A lock could not be obtained within the time requested at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.impl.services.locks.ConcurrentLockSet.lockObject(Unknown Source) at org.apache.derby.impl.services.locks.ConcurrentLockSet.zeroDurationLockObject(Unknown Source) at org.apache.derby.impl.services.locks.AbstractPool.zeroDurationlockObject(Unknown Source) at org.apache.derby.impl.services.locks.ConcurrentPool.zeroDurationlockObject(Unknown Source) at org.apache.derby.impl.store.raw.xact.RowLocking2nohold.lockRecordForRead(Unknown Source) at org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source) at org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source) at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockRowOnPage(Unknown Source) at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3._lockScanRow(Unknown Source) at org.apache.derby.impl.store.access.btree.index.B2IRowLockingRR.lockScanRow(Unknown Source) at org.apache.derby.impl.store.access.btree.BTreeForwardScan.fetchRows(Unknown Source) at org.apache.derby.impl.store.access.btree.BTreeScan.fetchNextGroup(Unknown Source) at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.reloadArray(Unknown Source) at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.getNextRowCore(Unknown Source) at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCore(Unknown Source) at org.apache.derby.impl.sql.execute.ScalarAggregateResultSet.getRowFromResultSet(Unknown Source) at org.apache.derby.impl.sql.execute.ScalarAggregateResultSet.getNextRowCore(Unknown Source) at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCore(Unknown Source) at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(Unknown Source) at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source) at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.insertMail(DbTasks.java:477) at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.insertMail(Refresh.java:98) at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.doWork(Refresh.java:74) at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.run(Refresh.java:50) New exception raised during cleanup null java.lang.ArrayIndexOutOfBoundsException at org.apache.derby.impl.store.raw.data.BasePage.getHeaderAtSlot(Unknown Source) at org.apache.derby.impl.store.raw.data.StoredPage.storeRecordForUpdate(Unknown Source) at org.apache.derby.impl.store.raw.data.StoredPage.storeRecord(Unknown Source) at org.apache.derby.impl.store.raw.data.UpdateOperation.undoMe(Unknown Source) at org.apache.derby.impl.store.raw.data.PhysicalUndoOperation.doMe(Unknown Source) at org.apache.derby.impl.store.raw.log.FileLogger.logAndUndo(Unknown Source) at org.apache.derby.impl.store.raw.xact.Xact.logAndUndo(Unknown Source) at org.apache.derby.impl.store.raw.log.FileLogger.undo(Unknown Source) at org.apache.derby.impl.store.raw.xact.Xact.abort(Unknown Source) at org.apache.derby.impl.store.access.RAMTransaction.abort(Unknown Source) at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.doRollback(Unknown Source) at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.internalRollback(Unknown Source) at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.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.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source) at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source) at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.insertMail(DbTasks.java:477) at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.insertMail(Refresh.java:98) at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.doWork(Refresh.java:74) at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.run(Refresh.java:50) ------------ 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.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source) at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source) at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.insertMail(DbTasks.java:477) at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.insertMail(Refresh.java:98) at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.doWork(Refresh.java:74) at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.run(Refresh.java:50) ------------ END SHUTDOWN ERROR STACK ------------- 2007-09-28 10:49:58.259 GMT Thread [Refresh Thread,5,main] Less severe exception raised during cleanup (ignored) An attempt was made to close a transaction that was still active. The transaction has been aborted. ERROR 40XT4: An attempt was made to close a transaction that was still active. The transaction has been aborted. at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.impl.store.raw.xact.Xact.close(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.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source) at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source) at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.insertMail(DbTasks.java:477) at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.insertMail(Refresh.java:98) at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.doWork(Refresh.java:74) at org.apache.derbyTesting.system.mailjdbc.tasks.Refresh.run(Refresh.java:50) Cleanup action completed
          Hide
          Manjula Kutty added a comment -

          Hit this issue again with the 10.3.2.1 release run. There is slight difference in the Error message:

          ERROR :Purging Thread : Error while deleting mails by expiry manager: Page Page(1793,Container(0, 960)) could not be read from disk.

          No NPE this time. And the derby.log is more or less same. Also I 'm attaching the full derby.log for reference.

          Here is the derby.log

          ERROR XSDB3: Container information cannot change once written: was 0, now 80
          at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
          at org.apache.derby.impl.store.raw.data.AllocPage.WriteContainerInfo(Unknown Source)
          at org.apache.derby.impl.store.raw.data.FileContainer.writeHeader(Unknown Source)
          at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
          at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
          at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.RawStore.backup(Unknown Source)
          at org.apache.derby.impl.store.raw.RawStore.backup(Unknown Source)
          at org.apache.derby.impl.store.raw.RawStore.backupAndEnableLogArchiveMode(Unknown Source)
          at org.apache.derby.impl.store.access.RAMAccessManager.backupAndEnableLogArchiveMode(Unknown Source)
          at org.apache.derby.impl.db.BasicDatabase.backupAndEnableLogArchiveMode(Unknown Source)
          at org.apache.derby.catalog.SystemProcedures.SYSCS_BACKUP_DATABASE_AND_ENABLE_LOG_ARCHIVE_MODE_NOWAIT(Unknown Source)
          at org.apache.derby.exe.ac71b840bfx0116xa1a5xb88bx0000001275781.g0(Unknown Source)
          at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:618)
          at org.apache.derby.impl.services.reflect.ReflectMethod.invoke(Unknown Source)
          at org.apache.derby.impl.sql.execute.CallStatementResultSet.open(Unknown Source)
          at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45)

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

          ERROR XSDG3: Meta-data for Container org.apache.derby.impl.store.raw.data.RAFContainer4@3f7a3f7a could not be accessed
          at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
          at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
          at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source)
          at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source)
          at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45)
          Caused by: java.io.IOException: The handle is invalid.
          at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
          ... 25 more
          ============= begin nested exception, level (1) ===========
          java.io.IOException: The handle is invalid.
          at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
          at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
          at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source)
          at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source)
          at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45)
          ============= end nested exception, level (1) ===========

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

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

          ERROR XSDG3: Meta-data for Container org.apache.derby.impl.store.raw.data.RAFContainer4@3f7a3f7a could not be accessed
          at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
          at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
          at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source)
          at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source)
          at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45)
          Caused by: java.io.IOException: The handle is invalid.
          at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
          ... 25 more
          ============= begin nested exception, level (1) ===========
          java.io.IOException: The handle is invalid.
          at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
          at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
          at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source)
          at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source)
          at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45)
          ============= end nested exception, level (1) ===========

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

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

          ERROR XSDG3: Meta-data for Container org.apache.derby.impl.store.raw.data.RAFContainer4@3f7a3f7a could not be accessed
          at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
          at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
          at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source)
          at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source)
          at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45)
          Caused by: java.io.IOException: The handle is invalid.
          at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
          ... 25 more
          ============= begin nested exception, level (1) ===========
          java.io.IOException: The handle is invalid.
          at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
          at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
          at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source)
          at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source)
          at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45)
          ============= end nested exception, level (1) ===========

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

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

          ERROR XSDG3: Meta-data for Container org.apache.derby.impl.store.raw.data.RAFContainer4@3f7a3f7a could not be accessed
          at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
          at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
          at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source)
          at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source)
          at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45)
          Caused by: java.io.IOException: The handle is invalid.
          at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
          ... 25 more
          ============= begin nested exception, level (1) ===========
          java.io.IOException: The handle is invalid.
          at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
          at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
          at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
          at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
          at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
          at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source)
          at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source)
          at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source)
          at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source)
          at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)
          at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68)
          at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45)
          ============= end nested exception, level (1) ===========

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

          2007-12-05 07:35:32.559 GMT:
          Shutting down instance c013800d-0116-a1a5-b88b-000000127578
          ----------------------------------------------------------------
          Cleanup action completed

          • Manjula.
          Show
          Manjula Kutty added a comment - Hit this issue again with the 10.3.2.1 release run. There is slight difference in the Error message: ERROR :Purging Thread : Error while deleting mails by expiry manager: Page Page(1793,Container(0, 960)) could not be read from disk. No NPE this time. And the derby.log is more or less same. Also I 'm attaching the full derby.log for reference. Here is the derby.log ERROR XSDB3: Container information cannot change once written: was 0, now 80 at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.impl.store.raw.data.AllocPage.WriteContainerInfo(Unknown Source) at org.apache.derby.impl.store.raw.data.FileContainer.writeHeader(Unknown Source) at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source) at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source) at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source) at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.RawStore.backup(Unknown Source) at org.apache.derby.impl.store.raw.RawStore.backup(Unknown Source) at org.apache.derby.impl.store.raw.RawStore.backupAndEnableLogArchiveMode(Unknown Source) at org.apache.derby.impl.store.access.RAMAccessManager.backupAndEnableLogArchiveMode(Unknown Source) at org.apache.derby.impl.db.BasicDatabase.backupAndEnableLogArchiveMode(Unknown Source) at org.apache.derby.catalog.SystemProcedures.SYSCS_BACKUP_DATABASE_AND_ENABLE_LOG_ARCHIVE_MODE_NOWAIT(Unknown Source) at org.apache.derby.exe.ac71b840bfx0116xa1a5xb88bx0000001275781.g0(Unknown Source) at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.apache.derby.impl.services.reflect.ReflectMethod.invoke(Unknown Source) at org.apache.derby.impl.sql.execute.CallStatementResultSet.open(Unknown Source) at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45) ------------ BEGIN SHUTDOWN ERROR STACK ------------- ERROR XSDG3: Meta-data for Container org.apache.derby.impl.store.raw.data.RAFContainer4@3f7a3f7a could not be accessed at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source) at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source) at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source) at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source) at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45) Caused by: java.io.IOException: The handle is invalid. at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source) ... 25 more ============= begin nested exception, level (1) =========== java.io.IOException: The handle is invalid. at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source) at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source) at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source) at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source) at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source) at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45) ============= end nested exception, level (1) =========== ------------ END SHUTDOWN ERROR STACK ------------- ------------ BEGIN SHUTDOWN ERROR STACK ------------- ERROR XSDG3: Meta-data for Container org.apache.derby.impl.store.raw.data.RAFContainer4@3f7a3f7a could not be accessed at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source) at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source) at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source) at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source) at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45) Caused by: java.io.IOException: The handle is invalid. at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source) ... 25 more ============= begin nested exception, level (1) =========== java.io.IOException: The handle is invalid. at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source) at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source) at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source) at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source) at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source) at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45) ============= end nested exception, level (1) =========== ------------ END SHUTDOWN ERROR STACK ------------- ------------ BEGIN SHUTDOWN ERROR STACK ------------- ERROR XSDG3: Meta-data for Container org.apache.derby.impl.store.raw.data.RAFContainer4@3f7a3f7a could not be accessed at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source) at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source) at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source) at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source) at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45) Caused by: java.io.IOException: The handle is invalid. at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source) ... 25 more ============= begin nested exception, level (1) =========== java.io.IOException: The handle is invalid. at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source) at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source) at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source) at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source) at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source) at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45) ============= end nested exception, level (1) =========== ------------ END SHUTDOWN ERROR STACK ------------- ------------ BEGIN SHUTDOWN ERROR STACK ------------- ERROR XSDG3: Meta-data for Container org.apache.derby.impl.store.raw.data.RAFContainer4@3f7a3f7a could not be accessed at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source) at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source) at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source) at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source) at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45) Caused by: java.io.IOException: The handle is invalid. at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source) ... 25 more ============= begin nested exception, level (1) =========== java.io.IOException: The handle is invalid. at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source) at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source) at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source) at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source) at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source) at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source) at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source) at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source) at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source) at org.apache.derby.impl.db.DatabaseContextImpl.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.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source) at org.apache.derbyTesting.system.mailjdbc.utils.DbTasks.Backup(DbTasks.java:644) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.DoBackup(Backup.java:83) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.doWork(Backup.java:68) at org.apache.derbyTesting.system.mailjdbc.tasks.Backup.run(Backup.java:45) ============= end nested exception, level (1) =========== ------------ END SHUTDOWN ERROR STACK ------------- 2007-12-05 07:35:32.559 GMT: Shutting down instance c013800d-0116-a1a5-b88b-000000127578 ---------------------------------------------------------------- Cleanup action completed Manjula.
          Hide
          Manjula Kutty added a comment -

          Attaching full derby.log

          Show
          Manjula Kutty added a comment - Attaching full derby.log
          Hide
          Daniel John Debrunner added a comment -

          From a quick look at the test there may be some multi-threading issues that are problems in the test and not problems in Derby.

          The test has some static fields without any synchronization, e.g.

          DBTasks.getConnection() has this code:

          public static Properties prop = new Properties();

          prop.setProperty("user", usr);
          prop.setProperty("password", passwd);
          Connection con = DriverManager.getConnection(System
          .getProperty("database"), prop);

          If multiple threads are trying to get a connection at the same time then they may end up with a different user name from the one expected.

          Show
          Daniel John Debrunner added a comment - From a quick look at the test there may be some multi-threading issues that are problems in the test and not problems in Derby. The test has some static fields without any synchronization, e.g. DBTasks.getConnection() has this code: public static Properties prop = new Properties(); prop.setProperty("user", usr); prop.setProperty("password", passwd); Connection con = DriverManager.getConnection(System .getProperty("database"), prop); If multiple threads are trying to get a connection at the same time then they may end up with a different user name from the one expected.
          Hide
          Manjula Kutty added a comment -

          I hit the same issue again with ibm16 and this time much early. Also happend to see the same trace intermittently in other tests like onlineBackupTest. so making the priority as critical

          Show
          Manjula Kutty added a comment - I hit the same issue again with ibm16 and this time much early. Also happend to see the same trace intermittently in other tests like onlineBackupTest. so making the priority as critical
          Hide
          Manjula Kutty added a comment -

          Hit the same problem after making changes to the test to fix the issues pointed by Dan.

          Show
          Manjula Kutty added a comment - Hit the same problem after making changes to the test to fix the issues pointed by Dan.
          Hide
          Dyre Tjeldvoll added a comment -

          Removing Fix-version for unassigned issues

          Show
          Dyre Tjeldvoll added a comment - Removing Fix-version for unassigned issues
          Hide
          Knut Anders Hatlen added a comment -

          This could be the same problem as the one that was fixed in DERBY-3347.

          Show
          Knut Anders Hatlen added a comment - This could be the same problem as the one that was fixed in DERBY-3347 .

            People

            • Assignee:
              Unassigned
              Reporter:
              Manjula Kutty
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development