junit.framework.AssertionFailedError: isolation levels: 1 2: exception java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested

db-derby-dev | Myrna van Lunteren (JIRA) | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [jira] [Commented] (DERBY-6437) testLockingWithRollback failing on trunk with AssertionFailedError - isolation levels: 4 2

    db-derby-dev | 3 years ago | Myrna van Lunteren (JIRA)
    junit.framework.AssertionFailedError: isolation levels: 1 2: exception java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      isolation levels: 1 2: exception java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested

      at org.apache.derbyTesting.functionTests.tests.lang.ConstraintCharacteristicsTest.executeThreads()
    2. org.apache.derbyTesting
      ConstraintCharacteristicsTest.testLockingWithRollback
      1. org.apache.derbyTesting.functionTests.tests.lang.ConstraintCharacteristicsTest.executeThreads(ConstraintCharacteristicsTest.java:1344)
      2. org.apache.derbyTesting.functionTests.tests.lang.ConstraintCharacteristicsTest.testLockingWithRollback(ConstraintCharacteristicsTest.java:1291)
      2 frames
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      3 frames
    4. org.apache.derbyTesting
      BaseJDBCTestCase.runBare
      1. org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:118)
      2. org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:440)
      3. org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:457)
      3 frames
    5. JUnit
      TestSetup.run
      1. junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      2. junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      3. junit.extensions.TestSetup.run(TestSetup.java:25)
      4. junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      5. junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      6. junit.extensions.TestSetup.run(TestSetup.java:25)
      7. junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      8. junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      9. junit.extensions.TestSetup.run(TestSetup.java:25)
      9 frames
    6. org.apache.derbyTesting
      BaseTestSetup.run
      1. org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      1 frame
    7. JUnit
      TestSetup.run
      1. junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      2. junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      3. junit.extensions.TestSetup.run(TestSetup.java:25)
      3 frames