[ 
https://issues.apache.org/jira/browse/DERBY-3056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Myrna van Lunteren updated DERBY-3056:
--------------------------------------

    Attachment: DERBY-3056_20070906.diff

The behavior was probably introduced when I committed the change 557423 for 
DERBY-2518.
This patch is a possible solution to the issue; if we're using JSR169 the test 
is doing a simple select that does not cause the procedure to fire; I hesitate 
to check this in because I think this does not actually exercise generate a 
lock so it's not doing what the test is supposed to test. But at least the 
locktable call is exercised, so I thought there was some value to running the 
test.

The alternative is to not have this test run with JSR169/J2ME at all; that *is* 
what happened before the test was converted to Junit...

If I don't see an opinion for the alternative solution by this afternoon I'll 
check in the current patch... 


> testReleaseCompileLocks(org.apache.derbyTesting.functionTests.tests.lang.ReleaseCompileLocksTest)
>  failed: with exception java.sql.SQLException: The exception 
> 'java.lang.NoClassDefFoundError: java.sql.DriverManager' was thrown while 
> evaluating an expressi 
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3056
>                 URL: https://issues.apache.org/jira/browse/DERBY-3056
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>    Affects Versions: 10.4.0.0
>            Reporter: Kathey Marsden
>            Assignee: Myrna van Lunteren
>         Attachments: DERBY-3056_20070906.diff
>
>
> with weme 6.1 
> testReleaseCompileLocks(org.apache.derbyTesting.functionTests.tests.lang.ReleaseCompileLocksTest)
>  failed:
> java.sql.SQLException: The exception 'java.lang.NoClassDefFoundError: 
> java.sql.DriverManager' 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:88)
>       at org.apache.derby.impl.jdbc.Util.seeNextException(Util.java:224)
>       at 
> org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:398)
>       at 
> org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:346)
>       at 
> org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1572)
>       at 
> org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:81)
>       at 
> org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(EmbedResultSet.java:4323)
>       at 
> org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(EmbedResultSet.java:464)
>       at 
> org.apache.derby.impl.jdbc.EmbedResultSet.next(EmbedResultSet.java:368)
>       at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:771)
>       at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:717)
>       at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:675)
>       at 
> org.apache.derbyTesting.functionTests.tests.lang.ReleaseCompileLocksTest.testReleaseCompileLocks(ReleaseCompileLocksTest.java:106)
>       at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
>       at java.lang.reflect.Method.invoke(Method.java:253)
>       at junit.framework.TestCase.runTest(TestCase.java:154)
>       at junit.framework.TestCase.runBare(TestCase.java:127)
>       at 
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
>       at junit.framework.TestResult$1.protect(TestResult.java:106)
>       at junit.framework.TestResult.runProtected(TestResult.java:124)
>       at junit.framework.TestResult.run(TestResult.java:109)
>       at junit.framework.TestCase.run(TestCase.java:118)
>       at junit.framework.TestSuite.runTest(TestSuite.java:208)
>       at junit.framework.TestSuite.run(TestSuite.java:203)
>       at junit.framework.TestSuite.runTest(TestSuite.java:208)
>       at junit.framework.TestSuite.run(TestSuite.java:203)
>       at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
>       at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
>       at junit.framework.TestResult.runProtected(TestResult.java:124)
>       at junit.extensions.TestSetup.run(TestSetup.java:23)
>       at 
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>       at junit.framework.TestSuite.runTest(TestSuite.java:208)
>       at junit.framework.TestSuite.run(TestSuite.java:203)
>       at junit.framework.TestSuite.runTest(TestSuite.java:208)
>       at junit.framework.TestSuite.run(TestSuite.java:203)
>       at junit.framework.TestSuite.runTest(TestSuite.java:208)
>       at junit.framework.TestSuite.run(TestSuite.java:203)
>       at junit.framework.TestSuite.runTest(TestSuite.java:208)
>       at junit.framework.TestSuite.run(TestSuite.java:203)
>       at TimeRunner.main(TimeRunner.java:31)
> Caused by: java.sql.SQLException: Java exception: 'java.sql.DriverManager: 
> java.lang.NoClassDefFoundError'.
>       at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
>       at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
>       at org.apache.derby.impl.jdbc.Util.javaException(Util.java:245)
>       at 
> org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:403)
>       ... 38 more
> Caused by: java.lang.NoClassDefFoundError: java.sql.DriverManager
>       at 
> org.apache.derbyTesting.functionTests.util.StaticInitializers.DMLInStaticInitializer.doADMLStatement(DMLInStaticInitializer.java:54)
>       at 
> org.apache.derbyTesting.functionTests.util.StaticInitializers.DMLInStaticInitializer.<clinit>(DMLInStaticInitializer.java:42)
>       at java.lang.J9VMInternals.initializeImpl(Native Method)
>       at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
>       at 
> org.apache.derby.exe.ac44765b64x0114xd70dx30aax00003dcd3cb40.e2(Unknown 
> Source)
>       at 
> org.apache.derby.impl.services.reflect.DirectCall.invoke(ReflectGeneratedClass.java:143)
>       at 
> org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.doProjection(ProjectRestrictResultSet.java:488)
>       at 
> org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCore(ProjectRestrictResultSet.java:291)
>       at 
> org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(BasicNoPutResultSetImpl.java:468)
>       at 
> org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(EmbedResultSet.java:424)
>       ... 32 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to