Derby
  1. Derby
  2. DERBY-4721

NullPointerException on StressMultiTest in language layer

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 10.7.1.1
    • Fix Version/s: None
    • Component/s: Test
    • Labels:
      None
    • Bug behavior facts:
      Regression, Regression Test Failure

      Description

      Saw NPE for testStressMulti on trunk(10.7 revision 956758) on a windows machine with ibm15. May be related to commit made for DERBY-4279, since it seems to have caused some other NPEs in StressMultiTest in the Tinderbox too.

      The stack trace looks as follows
      1) testStressMulti(org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest)junit.framework.AssertionFailedError: Caused by:
      java.sql.SQLException: Java exception: ': java.lang.NullPointerException'.
      at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
      at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
      at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(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.execute(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedStatement.executeQuery(Unknown Source)
      at org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest$StressMultiRunnable.select(StressMultiTest.java:555)
      at org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest$StressMultiRunnable.run(StressMultiTest.java:429)
      at java.lang.Thread.run(Thread.java:811)
      Caused by: java.lang.NullPointerException
      at org.apache.derby.impl.sql.GenericActivationHolder.<init>(Unknown Source)
      at org.apache.derby.impl.sql.GenericPreparedStatement.getActivation(Unknown Source)
      ... 5 more

      at org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest.handleException(StressMultiTest.java:351)
      at org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest.access$200(StressMultiTest.java:70)
      at org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest$StressMultiRunnable.run(StressMultiTest.java:445)
      at java.lang.Thread.run(Thread.java:811)
      [ Show » ] Mamta A. Satoor added a comment - 22/Jun/10 07:24 PM Saw NPE for testStressMulti on trunk(10.7 revision 956758) on a windows machine with ibm15. The stack trace looks as follows 1) testStressMulti(org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest)junit.framework.AssertionFailedError: Caused by: java.sql.SQLException: Java exception: ': java.lang.NullPointerException'. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source) at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(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.execute(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeQuery(Unknown Source) at org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest$StressMultiRunnable.select(StressMultiTest.java:555) at org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest$StressMultiRunnable.run(StressMultiTest.java:429) at java.lang.Thread.run(Thread.java:811) Caused by: java.lang.NullPointerException at org.apache.derby.impl.sql.GenericActivationHolder.<init>(Unknown Source) at org.apache.derby.impl.sql.GenericPreparedStatement.getActivation(Unknown Source) ... 5 more at org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest.handleException(StressMultiTest.java:351) at org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest.access$200(StressMultiTest.java:70) at org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest$StressMultiRunnable.run(StressMultiTest.java:445) at java.lang.Thread.run(Thread.java:811)

      1. error-stacktrace.out
        2 kB
        Mamta A. Satoor
      2. derby.log
        2.14 MB
        Mamta A. Satoor

        Issue Links

          Activity

          Hide
          Knut Anders Hatlen added a comment -

          [bulk update] Close all resolved issues that haven't been updated for more than one year.

          Show
          Knut Anders Hatlen added a comment - [bulk update] Close all resolved issues that haven't been updated for more than one year.
          Hide
          Myrna van Lunteren added a comment -

          Since the fix for DERBY-4279 was backed out, I haven't seen this again, so I'm resolving this as 'could not reproduce'. If anyone has another suggestion on how to handle this issue, feel free to chance status.

          Show
          Myrna van Lunteren added a comment - Since the fix for DERBY-4279 was backed out, I haven't seen this again, so I'm resolving this as 'could not reproduce'. If anyone has another suggestion on how to handle this issue, feel free to chance status.
          Hide
          Kristian Waagan added a comment -

          Having seen this on OpenSolaris with a Sun JDK, it seems this bug isn't specific to neither IBM JDKs nor Windows (I'm changing the issue name/summary):

          Caused by: java.lang.NullPointerException
          at org.apache.derby.impl.sql.GenericActivationHolder.<init>(GenericActivationHolder.java:129)
          at org.apache.derby.impl.sql.GenericPreparedStatement.getActivation(GenericPreparedStatement.java:257)
          at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:609)
          ... 4 more

          I believe I ran this test with the original fix for DERBY-4279.

          Show
          Kristian Waagan added a comment - Having seen this on OpenSolaris with a Sun JDK, it seems this bug isn't specific to neither IBM JDKs nor Windows (I'm changing the issue name/summary): Caused by: java.lang.NullPointerException at org.apache.derby.impl.sql.GenericActivationHolder.<init>(GenericActivationHolder.java:129) at org.apache.derby.impl.sql.GenericPreparedStatement.getActivation(GenericPreparedStatement.java:257) at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:609) ... 4 more I believe I ran this test with the original fix for DERBY-4279 .

            People

            • Assignee:
              Unassigned
              Reporter:
              Mamta A. Satoor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development