DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15287>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15287 <junit> hung if the object in the test case spawns a new thread [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | Summary|In junit task, the |<junit> hung if the object |<sysproperty> makes the test|in the test case spawns a |class hung |new thread ------- Additional Comments From [EMAIL PROTECTED] 2002-12-13 16:55 ------- When I initial an object which uses JDBC and spawns a new thread for event listening on another server, the <junit> hung. I am using Ant 1.5.1, and junit 3.8.1 on java 1.3. I had confirmed it may be an Ant issue by successfully tested the same code using junit from command line. snip: public void testZoneManagerCreate() { System.out.println("testZoneManagerCreate"); if (_testADB == null ) { try { _testADB = new ADatabase("org.gjt.mm.mysql.Driver", "jdbc:mysql://"+host+":3306/zmts02", "hzhu", "password", host); }catch (Exception ex) {} } // Add your test code below by replacing the default call to fail. //fail("The test case is empty."); } ====== The output snip: [junit] Implicitly adding /usr/local/jakarta-ant-1.5.1/lib/junit.jar:/usr/local/jakarta-ant-1.5.1/lib/ant.jar:/usr/local/jakarta-ant-1.5.1/lib/optional.jar to CLASSPATH [junit] Running com.zvolve.ztest.common.ZcoreTest [junit] Executing '/usr/local/j2sdk1_3_0/jre/bin/java' with arguments: [junit] '-DCHOST=zbeta.zlab.zvolve.net' [junit] '-DTHOME=/home/hzhu' [junit] '-classpath' [junit] '/usr/local/lib/javamail-1.2/mail.jar:/usr/local/lib/junit3.7/junit.jar:/usr/local/lib/jaf-1.0.1/activation.jar:/usr/local/lib/jdbc2_0-stdext/jdbc2_0-stdext.jar:/usr/local/lib/jakarta-servletapi-4/lib/servlet.jar:/usr/local/lib/mm.mysql-2.0.10/mm.mysql-2.0.10-bin.jar:/usr/local/lib/jaxp-1.1/jaxp.jar:/usr/local/lib/jaxp-1.1/crimson.jar:/usr/local/lib/xerces-1_4_3/xerces.jar:/home/hzhu/src/regression/lib/zcore.jar:/home/hzhu/src/regression/build/classes:/usr/local/jakarta-ant-1.5.1/lib/junit.jar:/usr/local/jakarta-ant-1.5.1/lib/ant.jar:/usr/local/jakarta-ant-1.5.1/lib/optional.jar' [junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner' [junit] 'com.zvolve.ztest.common.ZcoreTest' [junit] 'filtertrace=true' [junit] 'haltOnError=false' [junit] 'haltOnFailure=false' [junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter' [junit] 'showoutput=false' [junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter' [junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,/home/hzhu/src/regression/build/junit/TEST-com.zvolve.ztest.common.ZcoreTest.xml' [junit] 'propsfile=/home/hzhu/src/regression/junit706228581.properties' [junit] [junit] The ' characters around the executable and arguments are [junit] not part of the command. Execute:Java13CommandLauncher: Executing '/usr/local/j2sdk1_3_0/jre/bin/java' with arguments: '-DCHOST=zbeta.zlab.zvolve.net' '-DTHOME=/home/hzhu' '-classpath' '/usr/local/lib/javamail-1.2/mail.jar:/usr/local/lib/junit3.7/junit.jar:/usr/local/lib/jaf-1.0.1/activation.jar:/usr/local/lib/jdbc2_0-stdext/jdbc2_0-stdext.jar:/usr/local/lib/jakarta-servletapi-4/lib/servlet.jar:/usr/local/lib/mm.mysql-2.0.10/mm.mysql-2.0.10-bin.jar:/usr/local/lib/jaxp-1.1/jaxp.jar:/usr/local/lib/jaxp-1.1/crimson.jar:/usr/local/lib/xerces-1_4_3/xerces.jar:/home/hzhu/src/regression/lib/zcore.jar:/home/hzhu/src/regression/build/classes:/usr/local/jakarta-ant-1.5.1/lib/junit.jar:/usr/local/jakarta-ant-1.5.1/lib/ant.jar:/usr/local/jakarta-ant-1.5.1/lib/optional.jar' 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner' 'com.zvolve.ztest.common.ZcoreTest' 'filtertrace=true' 'haltOnError=false' 'haltOnFailure=false' 'formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter' 'showoutput=false' 'formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter' 'formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,/home/hzhu/src/regression/build/junit/TEST-com.zvolve.ztest.common.ZcoreTest.xml' 'propsfile=/home/hzhu/src/regression/junit706228581.properties' The ' characters around the executable and arguments are not part of the command. [junit] Exception in thread "main" [junit] TEST com.zvolve.ztest.common.ZcoreTest FAILED -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>