Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 36052 invoked from network); 23 Feb 2006 04:41:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Feb 2006 04:41:00 -0000 Received: (qmail 8688 invoked by uid 500); 23 Feb 2006 04:40:44 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 8634 invoked by uid 500); 23 Feb 2006 04:40:44 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 8606 invoked by uid 99); 23 Feb 2006 04:40:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2006 20:40:44 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of m.v.lunteren@gmail.com designates 64.233.182.193 as permitted sender) Received: from [64.233.182.193] (HELO nproxy.gmail.com) (64.233.182.193) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2006 20:40:42 -0800 Received: by nproxy.gmail.com with SMTP id c29so1148786nfb for ; Wed, 22 Feb 2006 20:40:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=L2RrjR+kOv9YHfk6Y/u5hhBwo6LhtZIMFVBxaV/lCMO81N6zU4/yuj6GU0SsQwup9f3a+boEhVcQNzpoNo8qgwMbqdBQFQ1EU9v6RhdrrxhsR2gQifvJetnAqTeg0PKk/pjii9HZF7RSGx/Y7jGEASNas+EdbT2+RdVCB3jnjTQ= Received: by 10.49.8.13 with SMTP id l13mr1940147nfi; Wed, 22 Feb 2006 20:40:20 -0800 (PST) Received: by 10.48.48.15 with HTTP; Wed, 22 Feb 2006 20:40:20 -0800 (PST) Message-ID: Date: Wed, 22 Feb 2006 20:40:20 -0800 From: "Myrna van Lunteren" To: "Andrew McIntyre (JIRA)" Subject: Re: [jira] Commented: (DERBY-1037) new test lang/ShutdownDatabase.java fails with j2ME In-Reply-To: <1863345658.1140669127261.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8498_26732156.1140669620646" References: <750392823.1140668802026.JavaMail.jira@ajax.apache.org> <1863345658.1140669127261.JavaMail.jira@ajax.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_8498_26732156.1140669620646 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yes, linked, new test. Thx for the references. :-) Looking at closed.java it seems to me some of DERBY-949 has been done already? DERBY-993 I will make more generic to apply to all junit tests. I'm not sur= e whether or not there are differences. I will cross link these isues. Myrna On 2/22/06, Andrew McIntyre (JIRA) wrote: > > [ > http://issues.apache.org/jira/browse/DERBY-1037?page=3Dcomments#action_12= 367460] > > 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 method= s > 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.openCon= nectionToNewDatabase > (ShutdownDatabase.java:530) > > at > org.apache.derbyTesting.functionTests.tests.lang.ShutdownDatabase.testOnl= yTransactionWasCommited > (ShutdownDatabase.java:151) > > at > org.apache.derbyTesting.functionTests.tests.lang.ShutdownDatabase.testShu= tDownWithCommitedTransaction > (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 > > ------=_Part_8498_26732156.1140669620646 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Yes, linked, new test. Thx for the references. :-)
Looking at closed.java it seems to me some of DERBY-949 has been = done already?
DERBY-993 I will make more generic to apply to all junit tests. I'm no= t sure whether or not there are differences.
I will cross link these isues.
 
 
Myrna

 
On 2/22/06, = Andrew McIntyre (JIRA) <d= erby-dev@db.apache.org> wrote:
   [ = http://issues.apache.org/jira/browse/DERBY-1037?page=3Dcomments#action_1236= 7460 ]

Andrew McIntyre commented on DERBY-1037:
-----------------= -----------------------

Same issue as DERBY-949 and DERBY-993? Linki= ng to DERBY-949, for sure.

> new test lang/ShutdownDatabase.java = fails with j2ME
> ---------------------------------------------------
>
>= ;          Key: DERBY-103= 7
>          URL: <= a href=3D"http://issues.apache.org/jira/browse/DERBY-1037">http://issues.ap= ache.org/jira/browse/DERBY-1037
>      Project: Derby
> = ;        Type: Bug
>   C= omponents: Test
>     Versions: 10.2.0.0
>  Environment: J2ME / CDC / Founda= tion implementation with IBM wctme.
>     Reporter: Myrna van Lunteren
> =     Priority: Minor

>
> The new test lang/Sh= utdownDatabase.java fails with:
> java.lang.NoClassDefFoundError: jav= a.sql.Driver
> The test needs to be rewritten to take advantage of th= e TestUtil methods for getting a connection from a datasource or using a dr= iver, similar to=20 e.g. lang/closed.java.
> The stack trace is like so:
> java.lan= g.NoClassDefFoundError: java.sql.Driver
>    &nbs= p;  at java.lang.ClassLoader.defineClassImpl(Native Method)
>&nb= sp;      at java.lang.ClassLoader.defineClass (ClassLoader.java:212)
>       at java.= security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
>&= nbsp;      at java.net.URLClassLoader.findClassImp= l(URLClassLoader.java:1026)
>       at = java.net.URLClassLoader$4.run (URLClassLoader.java:557)
>       at ja= va.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)
>       a= t 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.j= ava:837)
>       at org.apache.derby.impl.tools.ij.= util.startJBMS(util.java:492)
>       a= t org.apache.derby.impl.tools.ij.util.startJBMS(util.java:573)
> = ;      at org.apache.derby.impl.tools.ij.util.star= tJBMS(util.java :554)
>       at org.apache.derbyTestin= g.functionTests.tests.lang.ShutdownDatabase.openConnectionToNewDatabase(Shu= tdownDatabase.java:530)
>       at org.= apache.derbyTesting.functionTests.tests.lang.ShutdownDatabase.testOnlyTrans= actionWasCommited (ShutdownDatabase.java:151)
>       at = org.apache.derbyTesting.functionTests.tests.lang.ShutdownDatabase.testShutD= ownWithCommitedTransaction(ShutdownDatabase.java:116)
>  &n= bsp;    at org.apache.derbyTesting.functionTests.tests.lang.= ShutdownDatabase.main (ShutdownDatabase.java:86)

--
This message is automatically gener= ated by JIRA.
-
If you think it was sent incorrectly contact one of t= he administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For mo= re information on JIRA, see:
  http://www.atlassian.com/software/jira


------=_Part_8498_26732156.1140669620646--