Hi Rick, Thanks for taking the time to respond to my email. I am including partial output from the debug run of the single test and this is what the output looked like towards the end. Thanks.
DEBUG: Preparing statement: select currentvalue from sys.syssequences seq, sys.sysschemas s where s.schemaname = ? and seq.sequencename = ? and s.schemaid = seq.schemaid .DEBUG: execute java command: DEBUG: command[0]C:\Program Files (x86)\IBM\Java60\jre\bin\java DEBUG: command[1]-classpath DEBUG: command[2]c:/p4clients/svnmain/client6/trunk/classes;c:/p4clients/svnmain/client6/trunk/tools/java/junit.jar;c:/p4clients/svnmain/client6/trunk/tools/java/jakarta-oro-2.0.8.jar DEBUG: command[3]-Dderby.tests.defaultDatabaseName=DB_5494 DEBUG: command[4]junit.textui.TestRunner DEBUG: command[5]-m DEBUG: command[6]org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.preCrashActions F Time: 84.719 There was 1 failure: 1) test_13_5494(org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest)junit.framework.AssertionFailedError: expectedExitValue:0 does not match exitValue:1 expected output strings: [0]OK (1 test) actual output:<STDOUT><END STDOUT> <STDERR>Class not found "org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.preCrashActions" <END STDERR> expected:<0> but was:<1> at org.apache.derbyTesting.junit.BaseTestCase.assertExecJavaCmdAsExpected(BaseTestCase.java:513) at org.apache.derbyTesting.junit.BaseTestCase.assertLaunchedJUnitTestMethod(BaseTestCase.java:915) at org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.test_13_5494(SequenceGeneratorTest.java:695) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:113) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) FAILURES!!! Tests run: 11, Failures: 1, Errors: 0 On Thu, Apr 19, 2012 at 10:45 AM, Rick Hillegas <rick.hille...@oracle.com> wrote: > Hi Mamta, > > I have never seen this error. Unless you have fiddled with the test > framework itself, I think it is unlikely that your changes caused this > problem. It looks like the classpath is messed up in the spawned test > process. Can you try running the test standalone with tracing turned on, > like this: > > java -Xmx512m -Dderby.tests.debug=true junit.textui.TestRunner > org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest > > You will see some chatty output. Probably the failed test case will appear > at the end of that output. You should see the arguments used to spawn the > failed process. This is what they look like in my environment. I'm guessing > that there will be some clues in what is printed out for command[2]: > > .DEBUG: execute java command: > DEBUG: > command[0]/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java > DEBUG: command[1]-classpath > DEBUG: > command[2]:/Users/rh161140/derby/mainline/trunk/tools/java/geronimo-spec-servlet-2.4-rc4.jar:/Users/rh161140/derby/mainline/trunk/tools/java/jakarta-oro-2.0.8.jar:/Users/rh161140/derby/mainline/trunk/tools/java/javacc.jar:/Users/rh161140/derby/mainline/trunk/tools/java/junit.jar:/Users/rh161140/derby/mainline/trunk/tools/java/xml-apis.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derby.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derby.war:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_cs.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_de_DE.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_es.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_fr.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_hu.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_it.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_ja_JP.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_ko_KR.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_pl.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_pt_BR.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_ru.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_zh_CN.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyLocale_zh_TW.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyTesting.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyclient.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbynet.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyrun.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbytools.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/lists:/Users/rh161140/sw/xalan/xalan-j_2_7_0/serializer.jar:/Users/rh161140/sw/xalan/xalan-j_2_7_0/xalan.jar:/Users/rh161140/sw/xalan/xalan-j_2_7_0/xercesImpl.jar:/Users/rh161140/sw/xalan/xalan-j_2_7_0/xml-apis.jar:/Users/rh161140/sw/xalan/xalan-j_2_7_0/xsltc.jar:/Users/rh161140/sw/db2jcc/lib/db2jcc.jar:/Users/rh161140/sw/db2jcc/lib/db2jcc_license_c.jar:/Users/rh161140/sw/mysql/connectorj/mysql-connector-java-5.0.7/mysql-connector-java-5.0.7-bin.jar > DEBUG: command[3]-Dderby.tests.defaultDatabaseName=DB_5494 > DEBUG: command[4]junit.textui.TestRunner > DEBUG: command[5]-m > DEBUG: > command[6]org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.preCrashActions > > Thanks, > -Rick > > > On 4/18/12 5:31 PM, Mamta Satoor wrote: >> >> Hi, >> >> I ran junit suite on my Windows7 laptop with ibm 1.6 on trunk with >> couple changes and I have been seeing following failure. I haven't >> debugged it yet to see if it's related to changes I have made but >> thought would check on the list to see if anyone else has seen the >> following failure. Thanks. >> >> 1) >> test_13_5494(org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest)junit.framework.AssertionFailedError: >> expectedExitValue:0 does not match exitValue:1 >> expected output strings: >> [0]OK (1 test) >> actual output:<STDOUT><END STDOUT> >> <STDERR>Class not found >> >> "org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.preCrashActions" >> <END STDERR> >> expected:<0> but was:<1> >> at >> org.apache.derbyTesting.junit.BaseTestCase.assertExecJavaCmdAsExpected(BaseTestCase.java:513) >> at >> org.apache.derbyTesting.junit.BaseTestCase.assertLaunchedJUnitTestMethod(BaseTestCase.java:915) >> at >> org.apache.derbyTesting.functionTests.tests.lang.SequenceGeneratorTest.test_13_5494(SequenceGeneratorTest.java:695) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) >> at >> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:113) >> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) >> at junit.extensions.TestSetup$1.protect(TestSetup.java:19) >> at junit.extensions.TestSetup.run(TestSetup.java:23) >> at >> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) >> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) >> at junit.extensions.TestSetup$1.protect(TestSetup.java:19) >> at junit.extensions.TestSetup.run(TestSetup.java:23) >> at >> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) >> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) >> at junit.extensions.TestSetup$1.protect(TestSetup.java:19) >> at junit.extensions.TestSetup.run(TestSetup.java:23) >> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) >> at junit.extensions.TestSetup$1.protect(TestSetup.java:19) >> at junit.extensions.TestSetup.run(TestSetup.java:23) >> at >> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) >> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) >> at junit.extensions.TestSetup$1.protect(TestSetup.java:19) >> at junit.extensions.TestSetup.run(TestSetup.java:23) >> at >> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) >> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) >> at junit.extensions.TestSetup$1.protect(TestSetup.java:19) >> at junit.extensions.TestSetup.run(TestSetup.java:23) >> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) >> at junit.extensions.TestSetup$1.protect(TestSetup.java:19) >> at junit.extensions.TestSetup.run(TestSetup.java:23) >> > >