db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From siddharth srivastava <akssps...@gmail.com>
Subject [FYI] Recovered from START-SPAWNED while running all tests(suites.All)
Date Fri, 18 Feb 2011 19:53:59 GMT
Hi

Today I faced a weird problem. While running *java -XX:MaxPermSize=512m
junit.textui.TestRunner org.apache.derbyTesting.functionTests.suites.All*

I encountered this error:

testServerStartup START-SPAWNED:sysinfo ERROR OUTPUT:
> java.lang.NoClassDefFoundError:
> F:\eclipsework\trunk\jars\sane\derbytools/jar;F:
>
> \eclipsework\trunk\jars\sane\derbyTesting/jar;F:\eclipsework\trunk\jars\sane\der
>
> byrun/jar;F:\eclipsework\trunk\jars\sane\derbynet/jar;F:\eclipsework\trunk\jars\
>
> sane\derbyclient/jar;F:\eclipsework\testCases;F:\eclipsework\trunk\tools\java\ju
> nit/jar
> Caused by: java.lang.ClassNotFoundException:
> F:\eclipsework\trunk\jars\sane\derb
>
> ytools.jar;F:\eclipsework\trunk\jars\sane\derbyTesting.jar;F:\eclipsework\trunk\
>
> jars\sane\derbyrun.jar;F:\eclipsework\trunk\jars\sane\derbynet.jar;F:\eclipsewor
>
> k\trunk\jars\sane\derbyclient.jar;F:\eclipsework\testCases;F:\eclipsework\trunk\
> tools\java\junit.jar
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
> Could not find the main class:
> F:\eclipsework\trunk\jars\sane\derbytools.jar;F:\
>
> eclipsework\trunk\jars\sane\derbyTesting.jar;F:\eclipsework\trunk\jars\sane\derb
>
> yrun.jar;F:\eclipsework\trunk\jars\sane\derbynet.jar;F:\eclipsework\trunk\jars\s
>
> ane\derbyclient.jar;F:\eclipsework\testCases;F:\eclipsework\trunk\tools\java\jun
> it.jar.  Program will exit.
> Exception in thread "main" END-SPAWNED  :sysinfo ERROR OUTPUT:
> used 754 ms F.


The stacktrace (error-staccktrace.out) for SecureServerTest came out as
follows:


> [Error/failure logged at Fri Feb 18 22:35:01 IST 2011]
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
>     at junit.framework.Assert.fail(Assert.java:47)
>     at junit.framework.Assert.failNotEquals(Assert.java:280)
>     at junit.framework.Assert.assertEquals(Assert.java:64)
>     at junit.framework.Assert.assertEquals(Assert.java:198)
>     at junit.framework.Assert.assertEquals(Assert.java:204)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runServerCommand(SecureServerTest.java:501)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runsysinfo(SecureServerTest.java:415)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.testServerStartup(SecureServerTest.java:356)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at junit.framework.TestCase.runTest(TestCase.java:164)
>     at junit.framework.TestCase.runBare(TestCase.java:130)
>     at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112)
>     at junit.framework.TestResult$1.protect(TestResult.java:106)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.framework.TestResult.run(TestResult.java:109)
>     at junit.framework.TestCase.run(TestCase.java:120)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.textui.TestRunner.doRun(TestRunner.java:121)
>     at junit.textui.TestRunner.start(TestRunner.java:185)
>     at junit.textui.TestRunner.main(TestRunner.java:143)
>
> [Error/failure logged at Fri Feb 18 22:35:04 IST 2011]
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
>     at junit.framework.Assert.fail(Assert.java:47)
>     at junit.framework.Assert.failNotEquals(Assert.java:280)
>     at junit.framework.Assert.assertEquals(Assert.java:64)
>     at junit.framework.Assert.assertEquals(Assert.java:198)
>     at junit.framework.Assert.assertEquals(Assert.java:204)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runServerCommand(SecureServerTest.java:501)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runsysinfo(SecureServerTest.java:415)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.testServerStartup(SecureServerTest.java:356)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at junit.framework.TestCase.runTest(TestCase.java:164)
>     at junit.framework.TestCase.runBare(TestCase.java:130)
>     at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112)
>     at junit.framework.TestResult$1.protect(TestResult.java:106)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.framework.TestResult.run(TestResult.java:109)
>     at junit.framework.TestCase.run(TestCase.java:120)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.textui.TestRunner.doRun(TestRunner.java:121)
>     at junit.textui.TestRunner.start(TestRunner.java:185)
>     at junit.textui.TestRunner.main(TestRunner.java:143)
>
> [Error/failure logged at Fri Feb 18 22:35:06 IST 2011]
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
>     at junit.framework.Assert.fail(Assert.java:47)
>     at junit.framework.Assert.failNotEquals(Assert.java:280)
>     at junit.framework.Assert.assertEquals(Assert.java:64)
>     at junit.framework.Assert.assertEquals(Assert.java:198)
>     at junit.framework.Assert.assertEquals(Assert.java:204)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runServerCommand(SecureServerTest.java:501)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runsysinfo(SecureServerTest.java:415)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.testServerStartup(SecureServerTest.java:356)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at junit.framework.TestCase.runTest(TestCase.java:164)
>     at junit.framework.TestCase.runBare(TestCase.java:130)
>     at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112)
>     at junit.framework.TestResult$1.protect(TestResult.java:106)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.framework.TestResult.run(TestResult.java:109)
>     at junit.framework.TestCase.run(TestCase.java:120)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.textui.TestRunner.doRun(TestRunner.java:121)
>     at junit.textui.TestRunner.start(TestRunner.java:185)
>     at junit.textui.TestRunner.main(TestRunner.java:143)
>
> [Error/failure logged at Fri Feb 18 22:35:15 IST 2011]
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
>     at junit.framework.Assert.fail(Assert.java:47)
>     at junit.framework.Assert.failNotEquals(Assert.java:280)
>     at junit.framework.Assert.assertEquals(Assert.java:64)
>     at junit.framework.Assert.assertEquals(Assert.java:198)
>     at junit.framework.Assert.assertEquals(Assert.java:204)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runServerCommand(SecureServerTest.java:501)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runsysinfo(SecureServerTest.java:415)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.testServerStartup(SecureServerTest.java:356)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at junit.framework.TestCase.runTest(TestCase.java:164)
>     at junit.framework.TestCase.runBare(TestCase.java:130)
>     at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112)
>     at junit.framework.TestResult$1.protect(TestResult.java:106)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.framework.TestResult.run(TestResult.java:109)
>     at junit.framework.TestCase.run(TestCase.java:120)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.textui.TestRunner.doRun(TestRunner.java:121)
>     at junit.textui.TestRunner.start(TestRunner.java:185)
>     at junit.textui.TestRunner.main(TestRunner.java:143)
>
> [Error/failure logged at Fri Feb 18 22:35:19 IST 2011]
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
>     at junit.framework.Assert.fail(Assert.java:47)
>     at junit.framework.Assert.failNotEquals(Assert.java:280)
>     at junit.framework.Assert.assertEquals(Assert.java:64)
>     at junit.framework.Assert.assertEquals(Assert.java:198)
>     at junit.framework.Assert.assertEquals(Assert.java:204)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runServerCommand(SecureServerTest.java:501)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runsysinfo(SecureServerTest.java:415)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.testServerStartup(SecureServerTest.java:356)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at junit.framework.TestCase.runTest(TestCase.java:164)
>     at junit.framework.TestCase.runBare(TestCase.java:130)
>     at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112)
>     at junit.framework.TestResult$1.protect(TestResult.java:106)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.framework.TestResult.run(TestResult.java:109)
>     at junit.framework.TestCase.run(TestCase.java:120)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.textui.TestRunner.doRun(TestRunner.java:121)
>     at junit.textui.TestRunner.start(TestRunner.java:185)
>     at junit.textui.TestRunner.main(TestRunner.java:143)
>
> [Error/failure logged at Fri Feb 18 22:35:21 IST 2011]
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
>     at junit.framework.Assert.fail(Assert.java:47)
>     at junit.framework.Assert.failNotEquals(Assert.java:280)
>     at junit.framework.Assert.assertEquals(Assert.java:64)
>     at junit.framework.Assert.assertEquals(Assert.java:198)
>     at junit.framework.Assert.assertEquals(Assert.java:204)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runServerCommand(SecureServerTest.java:501)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runsysinfo(SecureServerTest.java:415)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.testServerStartup(SecureServerTest.java:356)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at junit.framework.TestCase.runTest(TestCase.java:164)
>     at junit.framework.TestCase.runBare(TestCase.java:130)
>     at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112)
>     at junit.framework.TestResult$1.protect(TestResult.java:106)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.framework.TestResult.run(TestResult.java:109)
>     at junit.framework.TestCase.run(TestCase.java:120)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.textui.TestRunner.doRun(TestRunner.java:121)
>     at junit.textui.TestRunner.start(TestRunner.java:185)
>     at junit.textui.TestRunner.main(TestRunner.java:143)
>
> [Error/failure logged at Fri Feb 18 22:35:24 IST 2011]
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
>     at junit.framework.Assert.fail(Assert.java:47)
>     at junit.framework.Assert.failNotEquals(Assert.java:280)
>     at junit.framework.Assert.assertEquals(Assert.java:64)
>     at junit.framework.Assert.assertEquals(Assert.java:198)
>     at junit.framework.Assert.assertEquals(Assert.java:204)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runServerCommand(SecureServerTest.java:501)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.runsysinfo(SecureServerTest.java:415)
>     at
> org.apache.derbyTesting.functionTests.tests.derbynet.SecureServerTest.testServerStartup(SecureServerTest.java:356)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at junit.framework.TestCase.runTest(TestCase.java:164)
>     at junit.framework.TestCase.runBare(TestCase.java:130)
>     at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112)
>     at junit.framework.TestResult$1.protect(TestResult.java:106)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.framework.TestResult.run(TestResult.java:109)
>     at junit.framework.TestCase.run(TestCase.java:120)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.extensions.TestSetup.run(TestSetup.java:25)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     at junit.textui.TestRunner.doRun(TestRunner.java:121)
>     at junit.textui.TestRunner.start(TestRunner.java:185)
>     at junit.textui.TestRunner.main(TestRunner.java:143)
>


After trying out so many things(and learning new things too :-) from Kathey
on Tiago over IRC ), the problem came out that there was a "space" in
between the two entries of classpath, namely
..\sane\derby.jar; ..\sane\derbytools.jar which made it to treat: derby.jar
as the classpath and the rest of the classpath as class.

I would like to make a note here, that ant clobber, ant buildsource, ant all
and ant buildjars worked as intended despite the space being there.

Thanks

-- 
Regards
Siddharth Srivastava

Mime
View raw message