Hi Srinivas, This is known limitation of the current version of Cactus. It is because we are using the JDK HttpURLConnection which behaves differently in different JDKs. We are planning to fully move to Commons HttpClient which will solve this issue (see the todo page on the Cactus mailing list, there is an item on this subject).
If you wish to submit a patch ... ;-) Thanks -Vincent > -----Original Message----- > From: Inguva, Srinivas [mailto:[EMAIL PROTECTED]] > Sent: 22 July 2002 23:17 > To: [EMAIL PROTECTED] > Subject: test case failing under jdk1.3.1_03 > > Hi, > > I have a servlet test case (using cactus1.3) which tests for an error > condition that results in an HTTP 504 response code. Under previous jdk > versions I've had no problems, but now I'm seeing this exception: > > Server returned HTTP response code: 504 for URL: > http://localhost:9100/test/ServletRedirector?Cactus_TestMethod=testSimpl eT > imeout&Cactus_URL_ <snip> > java.io.IOException: Server returned HTTP response code: 504 for URL: > http://localhost:9100/test/ServletRedirector?Cactus_TestMethod=testSimp > <snip> > at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown > Source) > at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown > Source) > at java.net.URLConnection.getHeaderFieldInt(Unknown Source) > at java.net.URLConnection.getContentLength(Unknown Source) > at > org.apache.cactus.client.HttpClientHelper.dispatch22_connect(HttpClientH el > per.java;org/apache/cactus/util/log/LogAspect.java(1k):176) > at > org.apache.cactus.client.HttpClientHelper.around22_connect(HttpClientHel pe > r.java;org/apache/cactus/util/log/LogAspect.java(1k):1204) > at > org.apache.cactus.client.HttpClientHelper.connect(HttpClientHelper.java; or > g/apache/cactus/util/log/LogAspect.java(1k):125) > at > org.apache.cactus.client.AbstractHttpClient.callRunTest(AbstractHttpClie nt > .java;org/apache/cactus/util/log/LogAspect.java(1k):188) > at > org.apache.cactus.client.AbstractHttpClient.dispatch1_doTest(AbstractHtt pC > lient.java;org/apache/cactus/util/log/LogAspect.java(1k):120) > at > org.apache.cactus.client.AbstractHttpClient.around1_doTest(AbstractHttpC li > ent.java;org/apache/cactus/util/log/LogAspect.java(1k):1204) > at > org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.ja va > ;org/apache/cactus/util/log/LogAspect.java(1k):115) > at > org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java: 45 > 7) > at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133) > at > org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:400) > > It seems to be related to changes in the JDK HttpURLConnection code... Any > ideas or workarounds? > > Thanks, > Srinivas -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
