jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject RE: Disabling Log Messages
Date Sat, 28 Sep 2002 18:24:07 GMT
Asit,

I have never used StrutsTestCase but several others on this list have...

>From the stack trace it seems the test runs successfully but somehow it
fails when Cactus calls the server side to get the test result.

I think we need more information to help you: the full Cactus logs (both
client and server) would be great to start with.

-Vincent

> -----Original Message-----
> From: Asit Kumar Padhi [mailto:asitkumar.padhi@wipro.com]
> Sent: 28 September 2002 08:59
> To: Cactus Users List
> Subject: RE: Disabling Log Messages
> 
> 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
> 
> 
> 



--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message