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 "Andrew McIntyre (JIRA)" <de...@db.apache.org> on 2006/02/23 05:32:13 UTC
[jira] Commented: (DERBY-1037) new test lang/ShutdownDatabase.java
fails with j2ME
[ http://issues.apache.org/jira/browse/DERBY-1037?page=comments#action_12367460 ]
Andrew McIntyre commented on DERBY-1037:
----------------------------------------
Same issue as DERBY-949 and DERBY-993? Linking to DERBY-949, for sure.
> 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
> Priority: Minor
>
> 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