Hi Vincent, When I am trying to run the sample StrutsTestCase with Cactus1.4.1 I am getting this exception.Can u tell me what may be the problem,
Here is my stack trace 1) testSuccessfulLogin(org.apache.cactus.sample.TestCactusLoginAction) org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results. This is probably due to an error that happened on the server side when trying to execute the tests. Here is what was returned by the server : [ <html lang="en"> <head> <title>Login</title> <base href="http://localhost/strutstest/login.jsp"> </head> <body bgcolor="white"> <form name="loginForm" method="POST" action="/strutstest;jsessionid=243585906523 2CACA43C4629763DB1CD"> <table border="0" width="100%"> <tr> <th align="right"> Username </th> <td align="left"> <input type="text" name="username" maxlength="16" size="16" value=""> </td> </tr> <tr> <th align="right"> Password </th> <td align="left"> <input type="password" name="password" maxlength="16" size="16" value=""> </td> </tr> <tr> <td align="right"> <input type="submit" name="submit" value="Submit"> </td> <td align="left"> <input type="reset" name="reset" value="Reset"> </td> </tr> </table> </form> <script language="JavaScript" type="text/javascript"> <!-- document.forms["loginForm"].elements["username"].focus() // --> </script> </body> </html> ] at org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest(Abstract HttpClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):120) at org.apache.cactus.client.AbstractHttpClient.around2_doTest(AbstractHt tpClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):1218) at org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient .java;org/apache/cactus/util/log/LogAspect.aj(1k):104) at org.apache.cactus.AbstractWebTestCase.runGenericTest(AbstractWebTestC ase.java:260) at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133) at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:195) at org.apache.cactus.sample.TestCactusLoginAction.main(TestCactusLoginAc tion.java:61) org.apache.cactus.client.ParsingException: Not a valid response at org.apache.cactus.client.WebTestResultParser.readRootElement(WebTestR esultParser.java;org/apache/cactus/util/log/LogAspect.aj(1k):140) at org.apache.cactus.client.WebTestResultParser.dispatch29_parse(WebTest ResultParser.java;org/apache/cactus/util/log/LogAspect.aj(1k):101) at org.apache.cactus.client.WebTestResultParser.around29_parse(WebTestRe sultParser.java;org/apache/cactus/util/log/LogAspect.aj(1k):1218) at org.apache.cactus.client.WebTestResultParser.parse(WebTestResultParse r.java;org/apache/cactus/util/log/LogAspect.aj(1k):96) at org.apache.cactus.client.AbstractHttpClient.callGetResult(AbstractHtt pClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):230) at org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest(Abstract HttpClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):114) at org.apache.cactus.client.AbstractHttpClient.around2_doTest(AbstractHt tpClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):1218) at org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient .java;org/apache/cactus/util/log/LogAspect.aj(1k):104) at org.apache.cactus.AbstractWebTestCase.runGenericTest(AbstractWebTestC ase.java:260) at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133) at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:195) at org.apache.cactus.sample.TestCactusLoginAction.main(TestCactusLoginAc tion.java:61) FAILURES!!! Tests run: 2, Failures: 0, Errors: 1 The funniest part is when I ma running the client 2nd time with the server still running I am not getting the problem. Awaiting an early reply Asit
**************************Disclaimer************************************************** Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ****************************************************************************************
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
