Hello,
I've just started trying to install cactus and I'm having trouble getting
it to work with the sample test. I am currently using tomcat 3.2, JUnit 3.7
and cactus 1.1. I know it recognizes the property file and also begins the
test but on the very first test it crashes with the error InputStream does
not contain a serialized object. If you could offer any information on this
error and what may be causing it, I would greatly appreciate it. I have
also included the stack trace just in case it can provide more information
on the given problem.
Thank you very much.
Nathan Sarr
tests:
Running net.m2methods.accident.TestSimpleServlet
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.812 sec
Testsuite: net.m2methods.accident.TestSimpleServlet
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.812 sec
Testcase: testRegisterUser took 0.691 sec Caused an ERROR
InputStream does not contain a serialized object
java.io.StreamCorruptedException: InputStream does not contain a
serialized object
at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:849)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:168)
at
org.apache.commons.cactus.client.ServletHttpClient.doTest(ServletHttpClient.
java:123)
at
org.apache.commons.cactus.ServletTestCase.runGenericTest(ServletTestCase.jav
a:158)
at
org.apache.commons.cactus.ServletTestCase.runTest(ServletTestCase.java:128)
at
org.apache.commons.cactus.AbstractTestCase.runBare(AbstractTestCase.java:281
)
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:131)
at junit.framework.TestSuite.runTest(TestSuite.java:173)
at junit.framework.TestSuite.run(TestSuite.java:168)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run
JUnitTestRunner.java:231)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:409)
stop_tomcat_32:
[java] Stop tomcat
[runservertests] Server stopped !
BUILD FAILED