Derby
  1. Derby
  2. DERBY-5894

NPE in OnlineBackupTest1 while backing up in stubFileToRemoveAfterCheckPoint

    Details

    • Urgency:
      Normal
    • Bug behavior facts:
      Regression Test Failure

      Description

      Saw this while running OnlineBackupTest1 trying to repro DERBY-973.

      ERROR 38000: The exception 'java.lang.NullPointerException' was thrown while evaluating an expression.
      at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:288)
      at org.apache.derby.iapi.error.StandardException.unexpectedUserException(StandardException.java:575)
      at org.apache.derby.impl.services.reflect.ReflectMethod.invoke(ReflectMethod.java:63)
      at org.apache.derby.impl.sql.execute.CallStatementResultSet.open(CallStatementResultSet.java:75)
      at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(GenericPreparedStatement.java:443)
      at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:324)
      at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1242)
      at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(EmbedPreparedStatement.java:1715)
      at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(EmbedCallableStatement.java:118)
      at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(EmbedPreparedStatement.java:1370)
      at org.apache.derbyTesting.functionTests.tests.store.OnlineBackup.performBackup(OnlineBackup.java:89)
      at org.apache.derbyTesting.functionTests.tests.store.OnlineBackup.run(OnlineBackup.java:60)
      at java.lang.Thread.run(Thread.java:637)
      Caused by: java.lang.NullPointerException
      at java.util.Hashtable.put(Hashtable.java:401)
      at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.stubFileToRemoveAfterCheckPoint(BaseDataFileFactory.java:1613)
      at org.apache.derby.impl.store.raw.data.RAFContainer.run(RAFContainer.java:1651)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.derby.impl.store.raw.data.RAFContainer.backupContainer(RAFContainer.java:983)
      at org.apache.derby.impl.store.raw.data.BaseContainerHandle.backupContainer(BaseContainerHandle.java:1031)
      at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.backupDataFiles(BaseDataFileFactory.java:2466)
      at org.apache.derby.impl.store.raw.RawStore.backup(RawStore.java:978)
      at org.apache.derby.impl.store.raw.RawStore.backup(RawStore.java:649)
      at org.apache.derby.impl.store.access.RAMAccessManager.backup(RAMAccessManager.java:964)
      at org.apache.derby.impl.db.BasicDatabase.backup(BasicDatabase.java:430)
      at org.apache.derby.catalog.SystemProcedures.SYSCS_BACKUP_DATABASE(SystemProcedures.java:961)
      at org.apache.derby.exe.acf33d40c7x0138x6d7cx6df3x0000720ad17b0.g0(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:592)
      at org.apache.derby.impl.services.reflect.ReflectMethod.invoke(ReflectMethod.java:46)
      ... 10 more

      1. d5894.zip
        626 kB
        Dag H. Wanvik
      2. d5894-1a-minimal-change.diff
        3 kB
        Knut Anders Hatlen
      3. d5894-1b-minimal-privileges.diff
        10 kB
        Knut Anders Hatlen

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Knut Anders Hatlen
            Reporter:
            Dag H. Wanvik
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development