jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Gastin" <ch...@gastin.com>
Subject JSPTestCase Fails - Eclipse Plugin
Date Wed, 01 Oct 2003 05:33:43 GMT
I am using the eclipse plugin (20030907) It is running great for
ServletTestCase, but when I extend JspTestCase I am having problems. I am
getting the following error

org.apache.cactus.util.ChainedRuntimeException: Failed to get the test
results at [http://localhost:8080/test/JspRedirector]
 at
org.apache.cactus.client.connector.http.DefaultHttpClient.dispatch49_doTest(
DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:131)
 at
org.apache.cactus.client.connector.http.DefaultHttpClient.around49_doTest(De
faultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1222)
 at
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttp
Client.java;org/apache/cactus/util/log/LogAspect.aj[1k]:115)
 at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebCl
ientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:333)
 at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(W
ebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:28
1)
 at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClien
tTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:257)
 at
org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:287)
 at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:250)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:118)
 at junit.framework.TestSuite.runTest(TestSuite.java:208)
 at junit.framework.TestSuite.run(TestSuite.java:203)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:392)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
java:276)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
.java:167)

org.apache.cactus.client.ParsingException: Not a valid response [500
Internal Server Error]
 at
org.apache.cactus.client.connector.http.DefaultHttpClient.callGetResult(Defa
ultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:251)
 at
org.apache.cactus.client.connector.http.DefaultHttpClient.dispatch49_doTest(
DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:126)
 at
org.apache.cactus.client.connector.http.DefaultHttpClient.around49_doTest(De
faultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1222)
 at
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttp
Client.java;org/apache/cactus/util/log/LogAspect.aj[1k]:115)
 at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebCl
ientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:333)
 at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(W
ebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:28
1)
 at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClien
tTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:257)
 at
org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:287)
 at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:250)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:118)
 at junit.framework.TestSuite.runTest(TestSuite.java:208)
 at junit.framework.TestSuite.run(TestSuite.java:203)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:392)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
java:276)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
.java:167)


In callGetResult() method the resultConnection.getResponseCode() is
returning a -1.

if (resultConnection.getResponseCode() != 200){
    throw new ParsingException("Not a valid response ["+
resultConnection.getResponseCode() + " "+
resultConnection.getResponseMessage() + "]");
}

This is why we are getting this message:
org.apache.cactus.client.ParsingException: Not a valid response [500
Internal Server Error]

I am assuming that the resultConnection.responseCode is not getting set, but
would cause this.

Suggestions would be greatly appreciated.

Chris Gastin


Mime
View raw message