Derby
  1. Derby
  2. DERBY-5389

SequenceGeneratorTest failures with weme 6.2 sane build ASSERT FAILED Identity being changed on a live cacheable

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.8.2.2, 10.9.1.0
    • Component/s: SQL
    • Labels:
      None
    • Environment:
      weme 6.2
      java.runtime.version=2.4
      java.fullversion=IBM J9 2.4 Windows XP x86-32 (JIT enabled, AOT enabled)
      J9VM - 20080919_023055_lHdFGQ
      JIT - r9.weme62_20080724_2131
      GC - 20080609_AA
    • Issue & fix info:
      Patch Available, Repro attached
    • Bug behavior facts:
      Regression Test Failure

      Description

      I noticed these failures on trunk 10.9.0.0 1160489 with weme 6.2 and a sane build. They may have been around for some time as the nightlies only do an insane run with weme 6.2 and developers don't run weme tests with sane build frequently.

      2) test_09_defaultRangeSize(org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest)java.sql.SQLException: The exception 'org.apache.de
      rby.shared.common.sanity.AssertFailure: ASSERT FAILED Identity being changed on a live cacheable. Old uuidString = ff45762e-0131-f3dc-5f35-ffff92a7798
      d' was thrown while evaluating an expression.
      at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
      at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:142)
      at org.apache.derby.impl.jdbc.Util.seeNextException(Util.java:278)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:407)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:348)
      at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2290)
      at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
      at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(EmbedResultSet.java:4409)
      at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(EmbedResultSet.java:472)
      at org.apache.derby.impl.jdbc.EmbedResultSet.next(EmbedResultSet.java:376)
      at org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.getScalarInteger(SequenceGeneratorTest.java:686)
      at org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.vetBumping(SequenceGeneratorTest.java:175)
      at org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.test_09_defaultRangeSize(SequenceGeneratorTest.java:608)
      at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:195)
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:113)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      Caused by: java.sql.SQLException: Java exception: 'ASSERT FAILED Identity being changed on a live cacheable. Old uuidString = ff45762e-0131-f3dc-5f35-
      ffff92a7798d: org.apache.derby.shared.common.sanity.AssertFailure'.
      at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
      at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:142)
      at org.apache.derby.impl.jdbc.Util.javaException(Util.java:299)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:412)
      ... 62 more
      Caused by: org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED Identity being changed on a live cacheable. Old uuidString = ff45762e-01
      31-f3dc-5f35-ffff92a7798d
      at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:162)
      at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:147)
      at org.apache.derby.impl.sql.catalog.SequenceUpdater.setIdentity(SequenceUpdater.java:255)
      at org.apache.derby.impl.services.cache.CachedItem.takeOnIdentity(CachedItem.java:222)
      at org.apache.derby.impl.services.cache.Clock.addEntry(Clock.java:800)
      at org.apache.derby.impl.services.cache.Clock.find(Clock.java:303)
      at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getCurrentValueAndAdvance(DataDictionaryImpl.java:10335)
      at org.apache.derby.impl.sql.execute.BaseActivation.getCurrentValueAndAdvance(BaseActivation.java:689)
      at org.apache.derby.exe.ac5135f637x0131xf3dcx5f35xffff92a7798d1.e0(Unknown Source)
      at org.apache.derby.impl.services.reflect.DirectCall.invoke(ReflectGeneratedClass.java:139)
      at org.apache.derby.impl.sql.execute.RowResultSet.getNextRowCore(RowResultSet.java:148)
      at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(BasicNoPutResultSetImpl.java:478)
      at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(EmbedResultSet.java:432)
      ... 56 more
      There was 1 failure:
      1) test_08_userWrittenAllocators(org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest)junit.framework.ComparisonFailure: Unexpected
      SQL state. expected:<X[0Y85]> but was:<X[J001]>
      at java.lang.Throwable.<init>(Throwable.java:67)
      at junit.framework.AssertionFailedError.<init>(AssertionFailedError.java:13)
      at junit.framework.ComparisonFailure.<init>(ComparisonFailure.java:22)
      at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:791)
      at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:826)
      at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:840)
      at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertStatementError(BaseJDBCTestCase.java:1143)
      at org.apache.derbyTesting.functionTests.tests.lang.GeneratedColumnsHelper.expectExecutionError(GeneratedColumnsHelper.java:220)
      at org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.test_08_userWrittenAllocators(SequenceGeneratorTest.java:574)
      at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:195)
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:113)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      Caused by: java.sql.SQLException: Java exception: 'ASSERT FAILED Identity being changed on a live cacheable. Old uuidString = ff45762e-0131-f3dc-5f35-
      ffff92a7798d: org.apache.derby.shared.common.sanity.AssertFailure'.
      at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
      at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:142)
      at org.apache.derby.impl.jdbc.Util.javaException(Util.java:299)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:412)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:407)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:348)
      at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2290)
      at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
      at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(EmbedResultSet.java:4409)
      at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(EmbedResultSet.java:472)
      at org.apache.derby.impl.jdbc.EmbedResultSet.next(EmbedResultSet.java:376)
      at org.apache.derbyTesting.junit.JDBC.assertDrainResults(JDBC.java:686)
      at org.apache.derbyTesting.junit.BaseJDBCTestCase.fetchAndDiscardAllResults(BaseJDBCTestCase.java:1279)
      at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertStatementError(BaseJDBCTestCase.java:1139)
      ... 54 more
      Caused by: org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED Identity being changed on a live cacheable. Old uuidString = ff45762e-01
      31-f3dc-5f35-ffff92a7798d
      at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:162)
      at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:147)
      at org.apache.derby.impl.sql.catalog.SequenceUpdater.setIdentity(SequenceUpdater.java:255)
      at org.apache.derby.impl.services.cache.CachedItem.takeOnIdentity(CachedItem.java:222)
      at org.apache.derby.impl.services.cache.Clock.addEntry(Clock.java:800)
      at org.apache.derby.impl.services.cache.Clock.find(Clock.java:303)
      at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getCurrentValueAndAdvance(DataDictionaryImpl.java:10335)
      at org.apache.derby.impl.sql.execute.BaseActivation.getCurrentValueAndAdvance(BaseActivation.java:689)
      at org.apache.derby.exe.ac942f362cx0131xf3dcx5f35xffff92a7798d1.e0(Unknown Source)
      at org.apache.derby.impl.services.reflect.DirectCall.invoke(ReflectGeneratedClass.java:139)
      at org.apache.derby.impl.sql.execute.RowResultSet.getNextRowCore(RowResultSet.java:148)
      at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(BasicNoPutResultSetImpl.java:478)
      at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(EmbedResultSet.java:432)
      ... 58 more

      1. derby-5389-01-aa-nullIdentity.diff
        0.7 kB
        Rick Hillegas
      2. DERBY_5389.java
        2 kB
        Rick Hillegas

        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
          Rick Hillegas added a comment -

          Ported 1172608 from trunk to 10.8 branch at subversion revision 1172620.

          Show
          Rick Hillegas added a comment - Ported 1172608 from trunk to 10.8 branch at subversion revision 1172620.
          Hide
          Rick Hillegas added a comment -

          Thanks for verifying the fix, Kathey. Committed at subversion revision 1172608.

          Show
          Rick Hillegas added a comment - Thanks for verifying the fix, Kathey. Committed at subversion revision 1172608.
          Hide
          Kathey Marsden added a comment -

          Hi Rick,

          The test passes with weme 6.2. Thank you for the fix !

          test_01_basic used 344 ms .
          test_02_boundary used 129938 ms .
          test_03_nonCycling used 15 ms .
          test_04_reboot used 703 ms .
          test_05_concurrency used 532 ms .
          test_06_bigStepSize used 0 ms .
          test_07_dropSequence used 250 ms .
          test_08_userWrittenAllocators used 140 ms .
          test_09_defaultRangeSize used 188 ms .
          test_10_5398 used 359 ms
          Time: 139.828

          OK (10 tests)

          Show
          Kathey Marsden added a comment - Hi Rick, The test passes with weme 6.2. Thank you for the fix ! test_01_basic used 344 ms . test_02_boundary used 129938 ms . test_03_nonCycling used 15 ms . test_04_reboot used 703 ms . test_05_concurrency used 532 ms . test_06_bigStepSize used 0 ms . test_07_dropSequence used 250 ms . test_08_userWrittenAllocators used 140 ms . test_09_defaultRangeSize used 188 ms . test_10_5398 used 359 ms Time: 139.828 OK (10 tests)
          Hide
          Rick Hillegas added a comment -

          Hi Kathey,

          I realize you may be busy with release testing, but if you have a moment, I would be interested in whether this patch improves the situation on weme 6.2. Thanks.

          Show
          Rick Hillegas added a comment - Hi Kathey, I realize you may be busy with release testing, but if you have a moment, I would be interested in whether this patch improves the situation on weme 6.2. Thanks.
          Hide
          Rick Hillegas added a comment -

          Tests passed cleanly for me.

          Show
          Rick Hillegas added a comment - Tests passed cleanly for me.
          Hide
          Rick Hillegas added a comment -

          Attaching derby-5389-01-aa-nullIdentity.diff. This adds some defensive logic to the identity setting method of SequenceUpdater. Without the defensive logic, a SequenceUpdater can be in an ambiguous state if there is an error instantiating a SequenceGenerator. I am running the full regression tests now.

          On an insane build and on Java 5 or higher, the ambiguous state appears to be harmless. The SequenceUpdater recovers from the ambiguity and correctly sets its state the next time that it actually becomes usable. However, if you are running on JDK 1.4 or CDC/FP 1.1, then Derby uses a different cache module (Clock instead of ConcurrentCache). The path through ConcurrentCache ends up cleaning the SequenceUpdater after the instantiation error, setting it to an unambiguously clean state.. The path through Clock does not clean the SequenceUpdater and this causes the Assertion to be raised the next time you try to set the identity of the ambiguous SequenceUpdater.

          The fix is to have the SequenceUpdater set its key to null if it can't instantiate a SequenceGenerator. This makes its internal state consistent and prevents us from raising the Assertion.

          With the fix, the repro runs cleanly on sane builds on JDK 1.4 and phoneME. In addition, the SequenceGenerator test runs cleanly for me on Java 6 and JDK 1.4. The test also gets further than it used to on phoneME. However, the test hangs at one point. So there might be another problem behind this one.

          Kathey, could you test-drive the patch on a sane build on weme 6.2?

          Touches the following file:

          M java/engine/org/apache/derby/impl/sql/catalog/SequenceUpdater.java

          Show
          Rick Hillegas added a comment - Attaching derby-5389-01-aa-nullIdentity.diff. This adds some defensive logic to the identity setting method of SequenceUpdater. Without the defensive logic, a SequenceUpdater can be in an ambiguous state if there is an error instantiating a SequenceGenerator. I am running the full regression tests now. On an insane build and on Java 5 or higher, the ambiguous state appears to be harmless. The SequenceUpdater recovers from the ambiguity and correctly sets its state the next time that it actually becomes usable. However, if you are running on JDK 1.4 or CDC/FP 1.1, then Derby uses a different cache module (Clock instead of ConcurrentCache). The path through ConcurrentCache ends up cleaning the SequenceUpdater after the instantiation error, setting it to an unambiguously clean state.. The path through Clock does not clean the SequenceUpdater and this causes the Assertion to be raised the next time you try to set the identity of the ambiguous SequenceUpdater. The fix is to have the SequenceUpdater set its key to null if it can't instantiate a SequenceGenerator. This makes its internal state consistent and prevents us from raising the Assertion. With the fix, the repro runs cleanly on sane builds on JDK 1.4 and phoneME. In addition, the SequenceGenerator test runs cleanly for me on Java 6 and JDK 1.4. The test also gets further than it used to on phoneME. However, the test hangs at one point. So there might be another problem behind this one. Kathey, could you test-drive the patch on a sane build on weme 6.2? Touches the following file: M java/engine/org/apache/derby/impl/sql/catalog/SequenceUpdater.java
          Hide
          Rick Hillegas added a comment - - edited

          Attaching DERBY_5389.java. This test reproduces the problem. The test gets an EmbeddedSimpleDataSource and runs some queries. You need to compile the test using JDK 1.4. The test runs correctly under Java 5 but shows the error if you run under JDK 1.4.

          Show
          Rick Hillegas added a comment - - edited Attaching DERBY_5389.java. This test reproduces the problem. The test gets an EmbeddedSimpleDataSource and runs some queries. You need to compile the test using JDK 1.4. The test runs correctly under Java 5 but shows the error if you run under JDK 1.4.
          Hide
          Rick Hillegas added a comment -

          I see a version of this problem on phoneME. I need to disable the security manager in order to get the test to run there. I do this by specifying -Djava.security.policy="<NONE>" on the command line. Running against sane jars I see the following:

          .Assertion failed at line 1396 in ../../src/share/javavm/runtime/jvm.c: count + 2 == CVMD_arrayGetLength(backtrace)
          JNI Frame java.lang.Class.getMethod0(Ljava/lang/String;[Ljava/lang/Class;I)Ljava/lang/reflect/Method;(Native Method)
          Java Frame java.lang.Class.getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;(Class.java:977)
          Java Frame org.apache.derby.shared.common.sanity.AssertFailure.supportsThreadDump()Z(AssertFailure.java:136)
          Java Frame org.apache.derby.shared.common.sanity.AssertFailure.dumpThreads()Ljava/lang/String;(AssertFailure.java:157)
          Java Frame org.apache.derby.shared.common.sanity.AssertFailure.<init>(Ljava/lang/String;Ljava/lang/Throwable;)V(AssertFailure.java:72)
          Java Frame org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(Ljava/lang/String;Ljava/lang/Throwable;)V(SanityManager.java:162)
          Java Frame org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(Ljava/lang/String;)V(SanityManager.java:147)
          Java Frame org.apache.derby.impl.sql.catalog.SequenceUpdater.setIdentity(Ljava/lang/Object;)Lorg/apache/derby/iapi/services/cache/Cacheable;(SequenceUpdater.java:255)
          Java Frame org.apache.derby.impl.services.cache.CachedItem.takeOnIdentity(Lorg/apache/derby/iapi/services/cache/CacheManager;Lorg/apache/derby/iapi/services/cache/CacheableFactory;Ljava/lang/Object;ZLjava/lang/Object;)Lorg/apache/derby/iapi/servi Java Frame org.apache.derby.impl.services.cache.Clock.addEntry(Lorg/apache/derby/impl/services/cache/CachedItem;Ljava/lang/Object;ZLjava/lang/Object;)Lorg/apache/derby/iapi/services/cache/Cacheable;(Clock.java:800)
          Java Frame org.apache.derby.impl.services.cache.Clock.find(Ljava/lang/Object;)Lorg/apache/derby/iapi/services/cache/Cacheable;(Clock.java:303)
          Java Frame org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getCurrentValueAndAdvance(ILjava/lang/String;Lorg/apache/derby/iapi/types/NumberDataValue;)V(DataDictionaryImpl.java:10335)
          Java Frame org.apache.derby.impl.sql.execute.BaseActivation.getCurrentValueAndAdvance(ILjava/lang/String;I)Lorg/apache/derby/iapi/types/NumberDataValue;(BaseActivation.java:689)
          Java Frame org.apache.derby.exe.ac953a00d1x0132x00faxf0d0xffff932390437.e0()Ljava/lang/Object;(Unknown Source)
          Java Frame org.apache.derby.impl.services.reflect.DirectCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;(ReflectGeneratedClass.java:139)
          Java Frame org.apache.derby.impl.sql.execute.RowResultSet.getNextRowCore()Lorg/apache/derby/iapi/sql/execute/ExecRow;(RowResultSet.java:148)
          Java Frame org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow()Lorg/apache/derby/iapi/sql/execute/ExecRow;(BasicNoPutResultSetImpl.java:478)
          Java Frame org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(IILjava/lang/String;)Z(EmbedResultSet.java:432)
          Java Frame org.apache.derby.impl.jdbc.EmbedResultSet.next()Z(EmbedResultSet.java:376)
          Java Frame org.apache.derbyTesting.junit.JDBC.assertDrainResults(Ljava/sql/ResultSet;I)I(JDBC.java:686)
          Java Frame org.apache.derbyTesting.junit.BaseJDBCTestCase.fetchAndDiscardAllResults(Ljava/sql/Statement;Z)V(BaseJDBCTestCase.java:1279)
          Java Frame org.apache.derbyTesting.junit.BaseJDBCTestCase.assertStatementError(Ljava/lang/String;Ljava/sql/PreparedStatement;)V(BaseJDBCTestCase.java:1139)
          Java Frame org.apache.derbyTesting.functionTests.tests.lang.GeneratedColumnsHelper.expectExecutionError(Ljava/sql/Connection;Ljava/lang/String;Ljava/lang/String;)V(GeneratedColumnsHelper.java:220)
          Java Frame org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.test_09_defaultRangeSize()V(SequenceGeneratorTest.java:638)
          Transition Frame org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.test_09_defaultRangeSize()V(Transition Method)
          Java Frame java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Method.java:321)
          Java Frame junit.framework.TestCase.runTest()V(TestCase.java:164)
          Java Frame junit.framework.TestCase.runBare()V(TestCase.java:130)
          Java Frame org.apache.derbyTesting.junit.BaseTestCase.runBare()V(BaseTestCase.java:112)
          Java Frame junit.framework.TestResult$1.protect()V(TestResult.java:106)
          Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124)
          Java Frame junit.framework.TestResult.run(Ljunit/framework/TestCase;)V(TestResult.java:109)
          Java Frame junit.framework.TestCase.run(Ljunit/framework/TestResult;)V(TestCase.java:120)
          Java Frame junit.framework.TestSuite.runTest(Ljunit/framework/Test;Ljunit/framework/TestResult;)V(TestSuite.java:230)
          Java Frame junit.framework.TestSuite.run(Ljunit/framework/TestResult;)V(TestSuite.java:225)
          Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24)
          Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21)
          Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124)
          Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25)
          Java Frame org.apache.derbyTesting.junit.BaseTestSetup.run(Ljunit/framework/TestResult;)V(BaseTestSetup.java:57)
          Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24)
          Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21)
          Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124)
          Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25)
          Java Frame org.apache.derbyTesting.junit.BaseTestSetup.run(Ljunit/framework/TestResult;)V(BaseTestSetup.java:57)
          Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24)
          Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21)
          Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124)
          Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25)
          Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24)
          Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21)
          Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124)
          Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25)
          Java Frame org.apache.derbyTesting.junit.BaseTestSetup.run(Ljunit/framework/TestResult;)V(BaseTestSetup.java:57)
          Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24)
          Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21)
          Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124)
          Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25)
          Java Frame org.apache.derbyTesting.junit.BaseTestSetup.run(Ljunit/framework/TestResult;)V(BaseTestSetup.java:57)
          Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24)
          Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21)
          Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124)
          Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25)
          Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24)
          Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21)
          Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124)
          Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25)
          Java Frame junit.textui.TestRunner.doRun(Ljunit/framework/Test;Z)Ljunit/framework/TestResult;(TestRunner.java:121)
          Java Frame junit.textui.TestRunner.start([Ljava/lang/String;)Ljunit/framework/TestResult;(TestRunner.java:185)
          Java Frame junit.textui.TestRunner.main([Ljava/lang/String;)V(TestRunner.java:143)
          Transition Frame junit.textui.TestRunner.main([Ljava/lang/String;)V(Transition Method)
          Java Frame java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Method.java:321)
          Java Frame sun.misc.CVM.runMain()V(CVM.java:514)
          Transition Frame sun.misc.CVM.runMain()V(Transition Method)
          Free List Frame (JNI Local Frame)
          Process #31164 received signal 11, suspending

          Show
          Rick Hillegas added a comment - I see a version of this problem on phoneME. I need to disable the security manager in order to get the test to run there. I do this by specifying -Djava.security.policy="<NONE>" on the command line. Running against sane jars I see the following: .Assertion failed at line 1396 in ../../src/share/javavm/runtime/jvm.c: count + 2 == CVMD_arrayGetLength(backtrace) JNI Frame java.lang.Class.getMethod0(Ljava/lang/String;[Ljava/lang/Class;I)Ljava/lang/reflect/Method;(Native Method) Java Frame java.lang.Class.getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;(Class.java:977) Java Frame org.apache.derby.shared.common.sanity.AssertFailure.supportsThreadDump()Z(AssertFailure.java:136) Java Frame org.apache.derby.shared.common.sanity.AssertFailure.dumpThreads()Ljava/lang/String;(AssertFailure.java:157) Java Frame org.apache.derby.shared.common.sanity.AssertFailure.<init>(Ljava/lang/String;Ljava/lang/Throwable;)V(AssertFailure.java:72) Java Frame org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(Ljava/lang/String;Ljava/lang/Throwable;)V(SanityManager.java:162) Java Frame org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(Ljava/lang/String;)V(SanityManager.java:147) Java Frame org.apache.derby.impl.sql.catalog.SequenceUpdater.setIdentity(Ljava/lang/Object;)Lorg/apache/derby/iapi/services/cache/Cacheable;(SequenceUpdater.java:255) Java Frame org.apache.derby.impl.services.cache.CachedItem.takeOnIdentity(Lorg/apache/derby/iapi/services/cache/CacheManager;Lorg/apache/derby/iapi/services/cache/CacheableFactory;Ljava/lang/Object;ZLjava/lang/Object;)Lorg/apache/derby/iapi/servi Java Frame org.apache.derby.impl.services.cache.Clock.addEntry(Lorg/apache/derby/impl/services/cache/CachedItem;Ljava/lang/Object;ZLjava/lang/Object;)Lorg/apache/derby/iapi/services/cache/Cacheable;(Clock.java:800) Java Frame org.apache.derby.impl.services.cache.Clock.find(Ljava/lang/Object;)Lorg/apache/derby/iapi/services/cache/Cacheable;(Clock.java:303) Java Frame org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getCurrentValueAndAdvance(ILjava/lang/String;Lorg/apache/derby/iapi/types/NumberDataValue;)V(DataDictionaryImpl.java:10335) Java Frame org.apache.derby.impl.sql.execute.BaseActivation.getCurrentValueAndAdvance(ILjava/lang/String;I)Lorg/apache/derby/iapi/types/NumberDataValue;(BaseActivation.java:689) Java Frame org.apache.derby.exe.ac953a00d1x0132x00faxf0d0xffff932390437.e0()Ljava/lang/Object;(Unknown Source) Java Frame org.apache.derby.impl.services.reflect.DirectCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;(ReflectGeneratedClass.java:139) Java Frame org.apache.derby.impl.sql.execute.RowResultSet.getNextRowCore()Lorg/apache/derby/iapi/sql/execute/ExecRow;(RowResultSet.java:148) Java Frame org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow()Lorg/apache/derby/iapi/sql/execute/ExecRow;(BasicNoPutResultSetImpl.java:478) Java Frame org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(IILjava/lang/String;)Z(EmbedResultSet.java:432) Java Frame org.apache.derby.impl.jdbc.EmbedResultSet.next()Z(EmbedResultSet.java:376) Java Frame org.apache.derbyTesting.junit.JDBC.assertDrainResults(Ljava/sql/ResultSet;I)I(JDBC.java:686) Java Frame org.apache.derbyTesting.junit.BaseJDBCTestCase.fetchAndDiscardAllResults(Ljava/sql/Statement;Z)V(BaseJDBCTestCase.java:1279) Java Frame org.apache.derbyTesting.junit.BaseJDBCTestCase.assertStatementError(Ljava/lang/String;Ljava/sql/PreparedStatement;)V(BaseJDBCTestCase.java:1139) Java Frame org.apache.derbyTesting.functionTests.tests.lang.GeneratedColumnsHelper.expectExecutionError(Ljava/sql/Connection;Ljava/lang/String;Ljava/lang/String;)V(GeneratedColumnsHelper.java:220) Java Frame org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.test_09_defaultRangeSize()V(SequenceGeneratorTest.java:638) Transition Frame org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.test_09_defaultRangeSize()V(Transition Method) Java Frame java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Method.java:321) Java Frame junit.framework.TestCase.runTest()V(TestCase.java:164) Java Frame junit.framework.TestCase.runBare()V(TestCase.java:130) Java Frame org.apache.derbyTesting.junit.BaseTestCase.runBare()V(BaseTestCase.java:112) Java Frame junit.framework.TestResult$1.protect()V(TestResult.java:106) Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124) Java Frame junit.framework.TestResult.run(Ljunit/framework/TestCase;)V(TestResult.java:109) Java Frame junit.framework.TestCase.run(Ljunit/framework/TestResult;)V(TestCase.java:120) Java Frame junit.framework.TestSuite.runTest(Ljunit/framework/Test;Ljunit/framework/TestResult;)V(TestSuite.java:230) Java Frame junit.framework.TestSuite.run(Ljunit/framework/TestResult;)V(TestSuite.java:225) Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24) Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21) Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124) Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25) Java Frame org.apache.derbyTesting.junit.BaseTestSetup.run(Ljunit/framework/TestResult;)V(BaseTestSetup.java:57) Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24) Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21) Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124) Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25) Java Frame org.apache.derbyTesting.junit.BaseTestSetup.run(Ljunit/framework/TestResult;)V(BaseTestSetup.java:57) Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24) Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21) Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124) Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25) Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24) Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21) Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124) Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25) Java Frame org.apache.derbyTesting.junit.BaseTestSetup.run(Ljunit/framework/TestResult;)V(BaseTestSetup.java:57) Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24) Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21) Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124) Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25) Java Frame org.apache.derbyTesting.junit.BaseTestSetup.run(Ljunit/framework/TestResult;)V(BaseTestSetup.java:57) Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24) Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21) Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124) Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25) Java Frame junit.extensions.TestDecorator.basicRun(Ljunit/framework/TestResult;)V(TestDecorator.java:24) Java Frame junit.extensions.TestSetup$1.protect()V(TestSetup.java:21) Java Frame junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V(TestResult.java:124) Java Frame junit.extensions.TestSetup.run(Ljunit/framework/TestResult;)V(TestSetup.java:25) Java Frame junit.textui.TestRunner.doRun(Ljunit/framework/Test;Z)Ljunit/framework/TestResult;(TestRunner.java:121) Java Frame junit.textui.TestRunner.start([Ljava/lang/String;)Ljunit/framework/TestResult;(TestRunner.java:185) Java Frame junit.textui.TestRunner.main([Ljava/lang/String;)V(TestRunner.java:143) Transition Frame junit.textui.TestRunner.main([Ljava/lang/String;)V(Transition Method) Java Frame java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Method.java:321) Java Frame sun.misc.CVM.runMain()V(CVM.java:514) Transition Frame sun.misc.CVM.runMain()V(Transition Method) Free List Frame (JNI Local Frame) Process #31164 received signal 11, suspending

            People

            • Assignee:
              Unassigned
              Reporter:
              Kathey Marsden
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development