jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Olav Kj|de <j.o.kj...@basalmed.uio.no>
Subject java.net.SocketException: Software caused connection abort: recv failed
Date Mon, 08 Mar 2004 11:17:24 GMT
Hi!
I have made a simple JspTestCase (to test a tag) that doesn't work for some 
reason.
Would be great if anyone could help..
I get a SocketException.
I'm using JDeveloper with OC4J server.


The test:

   public void testGetAnimal() throws Exception {
     pageContext.setAttribute("animalId", "4");
     GetAnimalTag atag = new GetAnimalTag();
     initTag(atag, null, "animalId" , "animal" );
     startTag(atag);
     Object animal = pageContext.getAttribute("animal");
     assertNotNull(animal);
   }

   protected void startTag(BaseTag tag) {
     try {
       tag.doStartTag();
     }
     catch (JspException e) {
       e.printStackTrace();
     }
   }



This is what I get:

Results:
testGetAnimal(no.uio.nesys.web.taglib.get.unittests.GetAnimalTagTester): 
java.net.SocketException: Software caused connection abort: recv failed


Log:
.
.
.
DEBUG [TestRunner-Thread] (HttpConnection.java:931) - enter 
HttpConnection.write(byte[])
DEBUG [TestRunner-Thread] (HttpConnection.java:953) - enter 
HttpConnection.write(byte[], int, int)
DEBUG [TestRunner-Thread] (HttpConnection.java:777) - enter 
HttpConnection.flushRequestOutputStream()
DEBUG [TestRunner-Thread] (HttpConnection.java:777) - enter 
HttpConnection.flushRequestOutputStream()
DEBUG [TestRunner-Thread] (HttpMethodBase.java:1930) - enter 
HttpMethodBase.readResponse(HttpState, HttpConnection)
DEBUG [TestRunner-Thread] (HttpMethodBase.java:2165) - enter 
HttpMethodBase.readStatusLine(HttpState, HttpConnection)
DEBUG [TestRunner-Thread] (HttpConnection.java:1066) - enter 
HttpConnection.readLine()
DEBUG [TestRunner-Thread] (HttpParser.java:134) - enter HttpParser.readLine()
DEBUG [TestRunner-Thread] (HttpParser.java:105) - enter 
HttpParser.readRawLine()
DEBUG [TestRunner-Thread] (HttpMethodBase.java:2637) - Closing the connection.
DEBUG [TestRunner-Thread] (HttpConnection.java:1099) - enter 
HttpConnection.close()
DEBUG [TestRunner-Thread] (HttpConnection.java:1138) - enter 
HttpConnection.closeSockedAndStreams()
  INFO [TestRunner-Thread] (HttpMethodBase.java:2640) - Recoverable 
exception caught when processing request

WARN [TestRunner-Thread] (HttpMethodBase.java:2652) - Recoverable exception 
caught but MethodRetryHandler.retryMethod() returned false, rethrowing 
exception
DEBUG [TestRunner-Thread] (HttpConnection.java:1123) - enter 
HttpConnection.releaseConnection()
DEBUG [TestRunner-Thread] (ServletTestCase.java:269) - Exception in test
org.apache.commons.httpclient.HttpRecoverableException: 
java.net.SocketException: Software caused connection abort: recv failed
	at 
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1952)
	at 
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2631)
	at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1085)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:674)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:558)
	at 
org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect_aroundBody0(HttpClientConnectionHelper.java:177)
	at 
org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect_aroundBody1$advice(HttpClientConnectionHelper.java:222)
	at 
org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect(HttpClientConnectionHelper.java)
	at 
org.apache.cactus.client.connector.http.DefaultHttpClient.callRunTest(DefaultHttpClient.java:201)
	at 
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:119)
	at 
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:222)
	at 
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
	at 
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebClientTestCaseDelegate.java:333)
	at 
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(WebClientTestCaseDelegate.java:281)
	at 
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClientTestCaseDelegate.java:257)
	at org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:300)
	at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at junit.swingui.TestRunner$16.run(TestRunner.java:623)


Please help.
Thanks,
Jan Ok




Mime
View raw message