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:
    [junit] Running net.m2methods.accident.TestSimpleServlet
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.812 sec
    [junit] Testsuite: net.m2methods.accident.TestSimpleServlet
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.812 sec
    [junit]
    [junit] Testcase: testRegisterUser took 0.691 sec
    [junit]     Caused an ERROR
    [junit] InputStream does not contain a serialized object
    [junit] java.io.StreamCorruptedException: InputStream does not contain a
ser
ialized object
    [junit]     at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.
java:849)
    [junit]     at
java.io.ObjectInputStream.<init>(ObjectInputStream.java:168)
    [junit]     at
org.apache.commons.cactus.client.ServletHttpClient.doTest(Ser
vletHttpClient.java:123)
    [junit]     at
org.apache.commons.cactus.ServletTestCase.runGenericTest(Serv
letTestCase.java:158)
    [junit]     at
org.apache.commons.cactus.ServletTestCase.runTest(ServletTest
Case.java:128)
    [junit]     at
org.apache.commons.cactus.AbstractTestCase.runBare(AbstractTe
stCase.java:281)
    [junit]     at junit.framework.TestResult$1.protect(TestResult.java:106)
    [junit]     at
junit.framework.TestResult.runProtected(TestResult.java:124)
    [junit]     at junit.framework.TestResult.run(TestResult.java:109)
    [junit]     at junit.framework.TestCase.run(TestCase.java:131)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:173)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:168)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:231)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
main(JUnitTestRunner.java:409)
    [junit]

stop_tomcat_32:
     [java] Stop tomcat
[runservertests] Server stopped !

BUILD FAILED

Reply via email to