Re: problem getting test results

Paulo R C Siqueira <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.