jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunnar Ole Skogen <Gunnar.Sko...@ergo.no>
Subject SocketException with security for the web app when run under Ant with forked test
Date Tue, 10 Sep 2002 08:32:11 GMT
Hi,
Weblogic 6.1
Ant 1.5beta3
Cactus 1.4

I wrote unittests in cactus to test that security worked on the the web
application I was testing : The security is the same for the web application
tested and the web application constituting the server-side cactus.
When I run the unittest from Together all works well, response code "401" is
returned.
When running the test from ant ( with a fork) we get a SocketException :
  <testcase name="testAuthencication1" time="0.071">
    <error message="Socket closed"
type="java.net.SocketException"><![CDATA[java.net.SocketException: Socket
closed
	at java.net.SocketInputStream.socketRead(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:86)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:223)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:280)
	at java.io.FilterInputStream.read(FilterInputStream.java:114)
	at java.io.PushbackInputStream.read(PushbackInputStream.java:164)
	at sun.net.www.MeteredStream.read(MeteredStream.java:68)
	at java.io.FilterInputStream.read(FilterInputStream.java:93)
	at
org.apache.cactus.client.AutoReadHttpURLConnection.copy(AutoReadHttpURLConne
ction.java;org/apache/cactus/util/log/LogAspect.java(1k):217)
	at
org.apache.cactus.client.AutoReadHttpURLConnection.getBufferedInputStream(Au
toReadHttpURLConnection.java;org/apache/cactus/util/log/LogAspect.java(1k):1
84)
	at
org.apache.cactus.client.AutoReadHttpURLConnection.getInputStream(AutoReadHt
tpURLConnection.java;org/apache/cactus/util/log/LogAspect.java(1k):141)
	at
org.apache.cactus.client.AbstractHttpClient.callRunTest(AbstractHttpClient.j
ava;org/apache/cactus/util/log/LogAspect.java(1k):195)
	at
org.apache.cactus.client.AbstractHttpClient.dispatch1_doTest(AbstractHttpCli
ent.java;org/apache/cactus/util/log/LogAspect.java(1k):120)
	at
org.apache.cactus.client.AbstractHttpClient.around1_doTest(AbstractHttpClien
t.java;org/apache/cactus/util/log/LogAspect.java(1k):1221)
	at
org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java;o
rg/apache/cactus/util/log/LogAspect.java(1k):115)
	at
org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:457)
	at
org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133)
	at
org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:400)
]]></error>
  </testcase>

-- Other test with a valid user work under Ant.

An  other security test, an internal test for whether a certain user has
access to a certain document (our own code), throws an exception that is
handled by setting the response code to "401" , gives the same
SocketException under Ant.








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