jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paulo R C Siqueira <gangrel...@yahoo.com.br>
Subject Re: problem getting test results
Date Wed, 01 Mar 2006 17:13:40 GMT
Hi, 

This is the exception at the server side:

14:08:40,918 ERROR [AbstractWebTestCaller] Error getting test result. This could happen for
example if you're using a load-balancer. Please disable it before running Cactus tests.
14:08:40,919 ERROR [[ServletRedirectorSecure]] Servlet.service() for servlet ServletRedirectorSecure
threw exception
javax.servlet.ServletException: Error getting test result. This could happen for example if
you're using a load-balancer. Please disable it before running Cactus tests.
        at org.apache.cactus.internal.server.AbstractWebTestCaller.doGetResults(AbstractWebTestCaller.java:176)
        at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:98)
        at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)
        at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
        at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
        at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)
        at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
        at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
        at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)
        at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)

thanks :)

Kenney Westerhof <forge@neonics.com> escreveu: On Wed, 1 Mar 2006, Paulo R C Siqueira
wrote:


Do you have the log for the server side? The internal server error
there should give you more information about what went wrong on the server
(a NullPointerException usually gives a status 500...)

-- Kenney

> Hi Kazuhito,
>
> Thanks again for the answer! :)
>
> I tried to run the test with junit.textui.TestRunner. The result was exactly the same...
That exception was raised on the server side and an "Internal Server Error" on the client
side.
>
> This is the error on the client side:
>
> org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results at [http://127.0.0.1:8080/myapp/ServletRedirectorSecure]
>         at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:92)
>         at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:306)
>         at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
>         at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.java:159)
>         at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocolHandler.java:80)
>         at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpProtocolHandler.java:306)
>         at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler.java)
>         at org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144)
>         at org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
>         at org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
> org.apache.cactus.internal.client.ParsingException: Not a valid response [500 Internal
Server Error]
>         at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callGetResult(DefaultHttpClient.java:211)
>         at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:87)
>         at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:306)
>         at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
>         at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.java:159)
>         at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocolHandler.java:80)
>         at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpProtocolHandler.java:306)
>         at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler.java)
>         at org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144)
>         at org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
>         at org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
>
> My Environment:
>  Linux kernel 2.4.26
>  Sun jdk 1.5.0_05_b5
>  JBoss-4.0.3
>  Cactus-1.7.1
>
> Any more ideas? :S
>
> Thanks again!
>
>  You might try run test without NetBeans to know whether Cactus works
> with your target container (JBoss-4.0.3).
> I had tried following steps last weekend and it worked fine:
> (1) create cactified-war with a simple test
> (2) start JBoss
> (3) deploy the cactified-war file to JBoss manually
> (4) run test by using junit.textui.TestRunner:
>  java junit.textui.TestRunner
>
> My environment is as follows:
>  Linux kernel 2.6.8
>  Sun jdk 1.5.0_06
>  JBoss-4.0.3SP1
>  Cactus-1.7.1
>
> Once you found a working configuration, you can use that for other tests,
> and can narrow the problem you have encountered.
>
> Regards,
> ----
> Kazuhito SUGURI
>
>
>
> _________________________________
> Paulo "gangrel-br" R C Siqueira
> Sun Certified Programmer for the Java 2 Platform 1.4
> Mogi das Cruzes - SP - Brazil
> Contact: (11) 8149-5046
>
> ---------------------------------
>  Yahoo! Search
>  Dê uma espiadinha e saiba tudo sobre o Big Brother Brasil.

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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




_________________________________
Paulo "gangrel-br" R C Siqueira
Sun Certified Programmer for the Java 2 Platform 1.4
Mogi das Cruzes - SP - Brazil
Contact: (11) 8149-5046
		
---------------------------------
 Yahoo! Acesso Grátis 
Internet rápida e grátis. Instale o discador agora!
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message