You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Myrna van Lunteren (JIRA)" <de...@db.apache.org> on 2006/03/15 01:49:42 UTC
[jira] Updated: (DERBY-1037) new test lang/ShutdownDatabase.java
fails with j2ME
[ http://issues.apache.org/jira/browse/DERBY-1037?page=all ]
Myrna van Lunteren updated DERBY-1037:
--------------------------------------
Attachment: DERBY_1037_2006_03_14.diff
DERBY_1037_2006_03_14_testutil.diff
M java\testing\org\apache\derbyTesting\functionTests\tests\lang\ShutdownDat
abase.java
M java\testing\org\apache\derbyTesting\functionTests\util\TestUtil.java
Note: this patch - DERBY-1037_2006_03_14* comes in 2 files, because my environment still had the tests fixed up for DERBY-949 modified also.
The patch for DERBY-949 needs to be committed first - this patch further adds to that one in adding code for making a networkserver connection in the TestUtil.getConnection.
I ran all affected tests:
lang/closed.java
lang/logStream.java
lang/TestDurabilityProperty.java
lang/ShutdownDatabase.java
store/backupRecovery1.java
store/OnlineBackupTest1.java
store/OnlineBackupTest3.java
and the storerecovery suite.
> new test lang/ShutdownDatabase.java fails with j2ME
> ---------------------------------------------------
>
> Key: DERBY-1037
> URL: http://issues.apache.org/jira/browse/DERBY-1037
> Project: Derby
> Type: Bug
> Components: Test
> Versions: 10.2.0.0
> Environment: J2ME / CDC / Foundation implementation with IBM wctme.
> Reporter: Myrna van Lunteren
> Assignee: Myrna van Lunteren
> Priority: Minor
> Attachments: DERBY_1037_2006_03_14.diff, DERBY_1037_2006_03_14_testutil.diff
>
> The new test lang/ShutdownDatabase.java fails with:
> java.lang.NoClassDefFoundError: java.sql.Driver
> The test needs to be rewritten to take advantage of the TestUtil methods for getting a connection from a datasource or using a driver, similar to e.g. lang/closed.java.
> The stack trace is like so:
> java.lang.NoClassDefFoundError: java.sql.Driver
> at java.lang.ClassLoader.defineClassImpl(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:212)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
> at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1026)
> at java.net.URLClassLoader$4.run(URLClassLoader.java:557)
> at java.security.AccessController.doPrivileged(AccessController.java:167)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:555)
> at com.ibm.oti.vm.URLSystemClassLoader.findClass(URLSystemClassLoader.java:32)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:602)
> at com.ibm.oti.vm.URLSystemClassLoader.loadClass(URLSystemClassLoader.java:65)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:561)
> at java.lang.Class.forNameImpl(Native Method)
> at java.lang.Class.forName(Class.java:116)
> at org.apache.derby.impl.tools.ij.util.loadDriver(util.java:837)
> at org.apache.derby.impl.tools.ij.util.startJBMS(util.java:492)
> at org.apache.derby.impl.tools.ij.util.startJBMS(util.java:573)
> at org.apache.derby.impl.tools.ij.util.startJBMS(util.java:554)
> at org.apache.derbyTesting.functionTests.tests.lang.ShutdownDatabase.openConnectionToNewDatabase(ShutdownDatabase.java:530)
> at org.apache.derbyTesting.functionTests.tests.lang.ShutdownDatabase.testOnlyTransactionWasCommited(ShutdownDatabase.java:151)
> at org.apache.derbyTesting.functionTests.tests.lang.ShutdownDatabase.testShutDownWithCommitedTransaction(ShutdownDatabase.java:116)
> at org.apache.derbyTesting.functionTests.tests.lang.ShutdownDatabase.main(ShutdownDatabase.java:86)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira