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/02/23 05:26:42 UTC

[jira] Created: (DERBY-1037) new test lang/ShutdownDatabase.java fails with j2ME

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


[jira] Commented: (DERBY-1037) new test lang/ShutdownDatabase.java fails with j2ME

Posted by "Andrew McIntyre (JIRA)" <de...@db.apache.org>.
    [ 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


[jira] Commented: (DERBY-1037) new test lang/ShutdownDatabase.java fails with j2ME

Posted by "Myrna van Lunteren (JIRA)" <de...@db.apache.org>.
    [ http://issues.apache.org/jira/browse/DERBY-1037?page=comments#action_12370443 ] 

Myrna van Lunteren commented on DERBY-1037:
-------------------------------------------

I ran all affected tests & storerecovery suite with both jdk142 and wctme5.7_foundation

> 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


[jira] Updated: (DERBY-1037) new test lang/ShutdownDatabase.java fails with j2ME

Posted by "Myrna van Lunteren (JIRA)" <de...@db.apache.org>.
     [ 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


[jira] Assigned: (DERBY-1037) new test lang/ShutdownDatabase.java fails with j2ME

Posted by "Myrna van Lunteren (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-1037?page=all ]

Myrna van Lunteren reassigned DERBY-1037:
-----------------------------------------

    Assign To: Myrna van Lunteren

> 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

>
> 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


[jira] Resolved: (DERBY-1037) new test lang/ShutdownDatabase.java fails with j2ME

Posted by "Andrew McIntyre (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-1037?page=all ]
     
Andrew McIntyre resolved DERBY-1037:
------------------------------------

    Fix Version: 10.2.0.0
     Resolution: Fixed

Committed revision 386218.

> 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
>      Fix For: 10.2.0.0
>  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


[jira] Updated: (DERBY-1037) new test lang/ShutdownDatabase.java fails with j2ME

Posted by "Andrew McIntyre (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-1037?page=all ]

Andrew McIntyre updated DERBY-1037:
-----------------------------------

    Other Info:   (was: [Patch available])

> 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
>      Fix For: 10.2.0.0
>  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


[jira] Closed: (DERBY-1037) new test lang/ShutdownDatabase.java fails with j2ME

Posted by "Myrna van Lunteren (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-1037?page=all ]
     
Myrna van Lunteren closed DERBY-1037:
-------------------------------------


> 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
>      Fix For: 10.2.0.0
>  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


[jira] Updated: (DERBY-1037) new test lang/ShutdownDatabase.java fails with j2ME

Posted by "Myrna van Lunteren (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-1037?page=all ]

Myrna van Lunteren updated DERBY-1037:
--------------------------------------

    Other Info: [Patch available]

> 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