Has any one seen the stack trace below before? At random points in my test 
suite exceptions like below are thrown. 
As the test method that throws the exception changes from test run to test 
run I don't think its the test code.

I'm guessing its a communication level problem with cactus trying to read 
something that tomcat has not sent.

As an aside if log4j.properties is not set up correctly the stack trace 
causes the ant task to hang and not report the error.

java.lang.ArrayIndexOutOfBoundsException
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.net.SocketInputStream.read(SocketInputStream.java:182)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at java.io.PushbackInputStream.read(PushbackInputStream.java:120)
at 
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:109)
at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:135)
at 
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1065)
at 
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:2132)
at 
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1934)
at 
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2573)
at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1047)
at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:638)
at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:526)
at 
org.apache.cactus.client.connector.http.HttpClientConnectionHelper.dispatch50_connect(HttpClientConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj[1k]:177)
at 
org.apache.cactus.client.connector.http.HttpClientConnectionHelper.around50_connect(HttpClientConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1240)
at 
org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect(HttpClientConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj[1k]:114)
at 
org.apache.cactus.client.connector.http.DefaultHttpClient.callGetResult(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:246)
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(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1240)
at 
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:115)
at 
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:334)
at 
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:282)
at 
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:258)
at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:289)
at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:251) 

Thanks for you time,

        Michael Sutherland
Programmer

DL +44 (0)207 454 5033
W  www.prnewswire.com
---------------------------------------

"We tell your story to the world." 

NEWS TARGETING * REGULATORY & GLOBAL NEWS DISTRIBUTION * MULTIMEDIA * NEWS 
MONITORING

Any views or opinions are solely those of the author and do not 
necessarily represent those of PR Newswire Europe. The e-mail contents are 
intended only for addressee and may contain confidential and/or privileged 
material. If you are not the intended recipient, please do not read, copy, 
use or disclose this communication

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to