jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinivas Inguva" <sing...@iona.com>
Subject RE: test case failing under jdk1.3.1_03
Date Fri, 26 Jul 2002 19:15:22 GMT
Hi Vincent,

Thanks for the update!  I'll definitely check out Cactus 1.4... 

=Srinivas

-----Original Message-----
From: Vincent Massol [mailto:vmassol@octo.com]
Sent: Friday, July 26, 2002 12:04 PM
To: 'Cactus Users List'
Cc: srinivas.inguva@iona.com
Subject: RE: test case failing under jdk1.3.1_03


Hi Srinivas,

This is now fixed in Cactus 1.4 ! I have made the switch to HttpClient
today :-)

Hope it helps,
-Vincent

> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@octo.com]
> Sent: 23 July 2002 11:38
> To: 'Cactus Users List'
> Subject: RE: test case failing under jdk1.3.1_03
> 
> 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:srinivas.inguva@iona.com]
> > Sent: 22 July 2002 23:17
> > To: cactus-user@jakarta.apache.org
> > 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:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message