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 Deepa Remesh <dr...@gmail.com> on 2005/06/16 23:46:00 UTC

derbynet/DerbyNetAutoStart.java hangs

Hi,

In my test environment, the test derbynet/DerbyNetAutoStart.java hangs. I 
looked at the test logs and it looks like the test hangs in the function 
testExtantNetServer(). From what I understand, the test starts a network 
server in another jvm. The network server start is successful as I can see 
derbynet.log is getting appended with connections from the ClientThread 
("Connection number: " messages). But the test program is not able to 
connect to database1 and waits indefinitely. Should I set any properties 
before running this test? I would appreciate any pointers to solve this.

I found the following link on DerbyNetAutoStart hang but it did not resolve 
my problem: 
http://www.mail-archive.com/derby-dev@db.apache.org/msg04036.html. I cheked 
that db2jcc.jar and db2jcc_license_c.jar are in my classpath. And I also ran 
"java com.ibm.db2.jcc.DB2Driver" to verify that I can access the driver 
class from my test environment.

Here is the sysinfo output from my test environment:
------------------ Java Information ------------------
Java Version: 1.4.2_06
Java Vendor: Sun Microsystems Inc.
Java home: C:\j2sdk1.4.2_06\jre
Java classpath: 
C:\deepa\Derby\derby_src\trunk\jars\insane/derby.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbytools.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbynet.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyclient.jar;C:\deepa\Derby\derby_src\trunk\db2jcc_jars\lib\db2jcc.jar;C:\deepa\Derby\derby_src\trunk\db2jcc_jars\lib\db2jcc_license_c.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyTesting.jar;C:\deepa\Derby\derby_src\trunk\tools\java\jakarta-
oro-2.0.8.jar
;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_de_DE.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_es.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_fr.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_it.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_ja_JP.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_ko_KR.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_pt_BR.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_zh_CN.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_zh_TW.jar;
OS name: Windows XP
OS architecture: x86
OS version: 5.1
Java user name: deepa
Java user home: C:\Documents and Settings\Administrator
Java user dir: C:\deepa\Derby\derby_testing\temp
java.specification.name <http://java.specification.name>: Java Platform API 
Specification
java.specification.version: 1.4
--------- Derby Information --------
JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
[C:\deepa\Derby\derby_src\trunk\jars\insane\derby.jar]
10.2.0.0<http://10.2.0.0>alpha - (190660)
[C:\deepa\Derby\derby_src\trunk\jars\insane\derbytools.jar]
10.2.0.0<http://10.2.0.0>alpha - (190660)
[C:\deepa\Derby\derby_src\trunk\jars\insane\derbynet.jar]
10.2.0.0<http://10.2.0.0>alpha - (190660)
[C:\deepa\Derby\derby_src\trunk\jars\insane\derbyclient.jar]
10.2.0.0<http://10.2.0.0>alpha - (190660)
[C:\deepa\Derby\derby_src\trunk\db2jcc_jars\lib\db2jcc.jar] 2.4 - (17)
[C:\deepa\Derby\derby_src\trunk\db2jcc_jars\lib\db2jcc_license_c.jar] 2.4 - 
(17)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale : [English/United States [en_US]]
Found support for locale: [de_DE]
version: 10.2.0.0 <http://10.2.0.0> alpha - (190660)
Found support for locale: [es]
version: 10.2.0.0 <http://10.2.0.0> alpha - (190660)
Found support for locale: [fr]
version: 10.2.0.0 <http://10.2.0.0> alpha - (190660)
Found support for locale: [it]
version: 10.2.0.0 <http://10.2.0.0> alpha - (190660)
Found support for locale: [ja_JP]
version: 10.2.0.0 <http://10.2.0.0> alpha - (190660)
Found support for locale: [ko_KR]
version: 10.2.0.0 <http://10.2.0.0> alpha - (190660)
Found support for locale: [pt_BR]
version: 10.2.0.0 <http://10.2.0.0> alpha - (190660)
Found support for locale: [zh_CN]
version: 10.2.0.0 <http://10.2.0.0> alpha - (190660)
Found support for locale: [zh_TW]
version: 10.2.0.0 <http://10.2.0.0> alpha - (190660)
------------------------------------------------------

Thanks,
Deepa

Re: derbynet/DerbyNetAutoStart.java hangs

Posted by Kathey Marsden <km...@sbcglobal.net>.
Deepa Remesh wrote:

>
> In my test environment, the test derbynet/DerbyNetAutoStart.java hangs.


Hi Deepa,

I think that there is a problem with  this test that it waits forever
when anything goes wrong.

Tomohito hit this when he didn't have db2jcc_license.jar in his classpath.
Since this test only runs for network server,  I think it can also
happen if it is run as an individual test without specifying
-Dframework=DerbyNet  or -Dframework=DerbyNetClient.

Could you file a bug for the hang?  I think think the test should fail
and throw the error  it is encountering after some period of time,
rather than just retrying forever.  I think at least in both of these
cases, throwing the actual exception encountered would make the real
problem apparent.

Thanks

Kathey





Re: derbynet/DerbyNetAutoStart.java hangs

Posted by Deepa Remesh <dr...@gmail.com>.
Hi Tomohito and Kathey,

Thank you for your help.
After setting -Dframework=DerbyNet, the test passes in my environment.

Thanks,
Deepa

Re: derbynet/DerbyNetAutoStart.java hangs

Posted by TomohitoNakayama <to...@basil.ocn.ne.jp>.
Hello Deepa.

Missing "-Dframework=DerbyNetClient" seems to cause fail , if executed via 
RunTest .....

Can you send information about jvm option?
Example at my site:
===========================
c:\ProgramDev\derbyTest\20050617>java -Drunwithjdk14=true -DexcludeJCC=at-or-before:2.3 
 -Duser.language=en -Duser.country=US -Dframework=DerbyNetClient 
org.apache.derbyTesting.functionTests.harness.RunTest 
derbynet/DerbyNetAutoStart.java
*** Start: DerbyNetAutoStart jdk1.4.2_05 DerbyNetClient 2005-06-17 19:23:44 
***
Initialize for framework: DerbyNetClient
startServer = false. Bypass server startup
*** End:   DerbyNetAutoStart jdk1.4.2_05 DerbyNetClient 2005-06-17 19:24:37 
***
c:\ProgramDev\derbyTest\20050617>set CLASSPATH = OLD_CLASSPATH
===========================


Please see next to know  "-Dframework=DerbyNetClient" in testing.
http://svn.apache.org/repos/asf/incubator/derby/code/trunk/java/testing/README.htm


Best regards.

/*

         Tomohito Nakayama
         tomonaka@basil.ocn.ne.jp
         tomohito@rose.zero.ad.jp

         Naka
         http://www5.ocn.ne.jp/~tomohito/TopPage.html

*/
  ----- Original Message ----- 
  From: Deepa Remesh
  To: derby-dev@db.apache.org
  Sent: Friday, June 17, 2005 6:46 AM
  Subject: derbynet/DerbyNetAutoStart.java hangs


  Hi,

  In my test environment, the test derbynet/DerbyNetAutoStart.java hangs.  I 
looked at the test logs and it looks like the test hangs in the function 
testExtantNetServer(). From what I understand, the test starts a network 
server in another jvm.  The network server start is successful as I can see 
derbynet.log is getting appended with connections from the ClientThread 
("Connection number: " messages). But the test program is not able to 
connect to database1 and waits indefinitely. Should I set any properties 
before running this test? I would appreciate any pointers to solve this.

  I found the following link on DerbyNetAutoStart hang but it did not 
resolve my problem: 
http://www.mail-archive.com/derby-dev@db.apache.org/msg04036.html. I cheked 
that db2jcc.jar and db2jcc_license_c.jar are in my classpath. And I also ran 
"java com.ibm.db2.jcc.DB2Driver" to verify that I can access the driver 
class from my test environment.

  Here is the sysinfo output from my test environment:
  ------------------ Java Information ------------------
  Java Version:    1.4.2_06
  Java Vendor:     Sun Microsystems Inc.
  Java home:       C:\j2sdk1.4.2_06\jre
  Java classpath: 
C:\deepa\Derby\derby_src\trunk\jars\insane/derby.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbytools.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbynet.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyclient.jar;C:\deepa\Derby\derby_src\trunk\db2jcc_jars\lib\db2jcc.jar;C:\deepa\Derby\derby_src\trunk\db2jcc_jars\lib\db2jcc_license_c.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyTesting.jar;C:\deepa\Derby\derby_src\trunk\tools\java\jakarta- 
oro-2.0.8.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_de_DE.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_es.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_fr.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_it.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_ja_JP.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_ko_KR.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_pt_BR.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_zh_CN.jar;C:\deepa\Derby\derby_src\trunk\jars\insane/derbyLocale_zh_TW.jar;
  OS name:         Windows XP
  OS architecture: x86
  OS version:      5.1
  Java user name:  deepa
  Java user home:  C:\Documents and Settings\Administrator
  Java user dir:   C:\deepa\Derby\derby_testing\temp
  java.specification.name: Java Platform API Specification
  java.specification.version: 1.4
  --------- Derby Information --------
  JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
  [C:\deepa\Derby\derby_src\trunk\jars\insane\derby.jar] 10.2.0.0 alpha - 
(190660)
  [C:\deepa\Derby\derby_src\trunk\jars\insane\derbytools.jar] 10.2.0.0 
alpha - (190660)
  [C:\deepa\Derby\derby_src\trunk\jars\insane\derbynet.jar] 10.2.0.0 alpha - 
(190660)
  [C:\deepa\Derby\derby_src\trunk\jars\insane\derbyclient.jar] 10.2.0.0 
alpha - (190660)
  [C:\deepa\Derby\derby_src\trunk\db2jcc_jars\lib\db2jcc.jar] 2.4 - (17)
  [C:\deepa\Derby\derby_src\trunk\db2jcc_jars\lib\db2jcc_license_c.jar] 
2.4 - (17)
  ------------------------------------------------------
  ----------------- Locale Information -----------------
  Current Locale :  [English/United States [en_US]]
  Found support for locale: [de_DE]
       version: 10.2.0.0 alpha - (190660)
  Found support for locale: [es]
       version: 10.2.0.0 alpha - (190660)
  Found support for locale: [fr]
       version: 10.2.0.0 alpha - (190660)
  Found support for locale: [it]
       version: 10.2.0.0 alpha - (190660)
  Found support for locale: [ja_JP]
       version: 10.2.0.0 alpha - (190660)
  Found support for locale: [ko_KR]
       version: 10.2.0.0 alpha - (190660)
  Found support for locale: [pt_BR]
       version: 10.2.0.0 alpha - (190660)
  Found support for locale: [zh_CN]
       version: 10.2.0.0 alpha - (190660)
  Found support for locale: [zh_TW]
       version: 10.2.0.0 alpha - (190660)
  ------------------------------------------------------

  Thanks,
  Deepa



------------------------------------------------------------------------------


  No virus found in this incoming message.
  Checked by AVG Anti-Virus.
  Version: 7.0.323 / Virus Database: 267.7.7/20 - Release Date: 2005/06/16