jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject RE: SocketException in test method
Date Fri, 26 Apr 2002 20:42:19 GMT
Hi Vijay,

I guess it can happen if the server closes the socket before the Cactus
client side has finished reading the data on the socket.

-Vincent

> -----Original Message-----
> From: vijay korimilli [mailto:v_korimilli@yahoo.com]
> Sent: 26 April 2002 13:58
> To: cactus-user@jakarta.apache.org
> Subject: SocketException in test method
> 
> Hi,
> 
> I am using cactus1.3 and tomcat 4.0. When i try to
> test my servlet, i am getting the following exception.
> 
>     [junit] Testcase: testInitApp took 9.684 sec
>     [junit]     Caused an ERROR
>     [junit] Socket closed
>     [junit] java.net.SocketException: Socket closed
>     [junit]     at
> java.net.SocketInputStream.socketRead(Native Method)
>     [junit]     at
> java.net.SocketInputStream.read(SocketInputStream.java:86)
>     [junit]     at
> java.io.BufferedInputStream.read1(BufferedInputStream.java:223)
>     [junit]     at
> java.io.BufferedInputStream.read(BufferedInputStream.java:280)
>     [junit]     at
> java.io.FilterInputStream.read(FilterInputStream.java:114)
>     [junit]     at
> java.io.PushbackInputStream.read(PushbackInputStream.java:164)
>     [junit]     at
> java.io.FilterInputStream.read(FilterInputStream.java:93)
>     [junit]     at
>
org.apache.cactus.client.AutoReadHttpURLConnection.copy(AutoReadHttpURLC
on
> ne
> ction.java;org/apache/cactus/util/log/LogAspect.java(1k):217)
>     [junit]     at
>
org.apache.cactus.client.AutoReadHttpURLConnection.getBufferedInputStrea
m(
> Au
>
toReadHttpURLConnection.java;org/apache/cactus/util/log/LogAspect.java(1
k)
> :184)
>     [junit]     at
>
org.apache.cactus.client.AutoReadHttpURLConnection.getInputStream(AutoRe
ad
> Ht
>
tpURLConnection.java;org/apache/cactus/util/log/LogAspect.java(1k):141)
>     [junit]     at
>
org.apache.cactus.client.AbstractHttpClient.callRunTest(AbstractHttpClie
nt
> .j
> ava;org/apache/cactus/util/log/LogAspect.java(1k):195)
>     [junit]     at
>
org.apache.cactus.client.AbstractHttpClient.dispatch1_doTest(AbstractHtt
pC
> li
> ent.java;org/apache/cactus/util/log/LogAspect.java(1k):120)
>     [junit]     at
>
org.apache.cactus.client.AbstractHttpClient.around1_doTest(AbstractHttpC
li
> en
> t.java;org/apache/cactus/util/log/LogAspect.java(1k):1221)
>     [junit]     at
>
org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.ja
va
> ;o
> rg/apache/cactus/util/log/LogAspect.java(1k):115)
>     [junit]     at
>
org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:
45
> 7)
> 
>     [junit]     at
> org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133)
>     [junit]     at
> org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:400)
>     [junit]
>     [junit] Testcase: testInitApp
> 
> 
> In which situations can this exception come up.
> 
> Thanks,
> Vijay.
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>



--
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