db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1338) Client tests DerbyNetNewServer and NSinSameVM fail with NoClassDefFoundError: DRDAProtocolExceptionInfo when run from classes dir
Date Mon, 22 May 2006 13:20:32 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1338?page=comments#action_12412773 ] 

Dag H. Wanvik commented on DERBY-1338:
--------------------------------------

Dag.Wanvik@Sun.COM (Dag H. Wanvik) writes:

> Hi,
>
> I looked at this again: This is my understanding so far.

Ooops. The analysis in my previous post was for the test
DerbyNetNewServer.java, which has a similar symptom in my
environment. For NSinSameVM.java, I found that the connection is
actually *not* closed prior to shutdown:

 :
 // Leave the connection open before shutdown to make 
 // sure the thread closes down. 
 // connection.close();
 :
 serverControl.shutdown();

By uncommenting the close, the test passed. I am not sure what the
meaning of the above comment is.

Anyway, it would seem my explanation in my previous post is not the
whole story here. One hypothesis might be that the error occurs at
shutdown when the connection is not closed, but then, I don't
understand why it works if run from jars. Can anyone shed some light
on this?

Dag

> Client tests DerbyNetNewServer and NSinSameVM fail with NoClassDefFoundError: DRDAProtocolExceptionInfo
when run from classes dir
> ---------------------------------------------------------------------------------------------------------------------------------
>
>          Key: DERBY-1338
>          URL: http://issues.apache.org/jira/browse/DERBY-1338
>      Project: Derby
>         Type: Bug

>  Environment: Sun JDK 1.4.2, Sun JDK 1.5
>     Reporter: Dag H. Wanvik
>     Priority: Minor

>
> When run from Sun JDK 1.4.2 and Sun JDK 1.5, these two tests fail when run from the
> classes directory. They work, though, when run from jars.
> Running NSinSameVM in my sandbox:
> bash-3.00$ java   -Dframework=DerbyNetClient org.apache.derbyTesting.functionTests.harness.RunTest
derbynet/NSinSameJVM.java
> *** Start: NSinSameJVM jdk1.4.2_05 DerbyNetClient 2006-05-22 14:49:05 ***
> Initialize for framework: DerbyNetClient
> startServer = false. Bypass server startup
> 6 add
> > java.lang.NoClassDefFoundError: org/apache/derby/impl/drda/DRDAProtocolExceptionInfo
> Test Failed.
> *** End:   NSinSameJVM jdk1.4.2_05 DerbyNetClient 2006-05-22 14:49:27 ***
> I get similar behavior for DerbyNetNewServer.  I ran this on a Solaris 10/i86x box. Davis
has seen it too, see 
> initial discusson on this thread: http://www.nabble.com/forum/ViewPost.jtp?post=4477600&framed=y

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


Mime
View raw message