Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED8DA819C for ; Sun, 14 Aug 2011 11:06:08 +0000 (UTC) Received: (qmail 96336 invoked by uid 500); 14 Aug 2011 11:06:05 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 95628 invoked by uid 500); 14 Aug 2011 11:05:59 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 95609 invoked by uid 99); 14 Aug 2011 11:05:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Aug 2011 11:05:50 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Aug 2011 11:05:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 49170BB103 for ; Sun, 14 Aug 2011 11:05:27 +0000 (UTC) Date: Sun, 14 Aug 2011 11:05:27 +0000 (UTC) From: "Hudson (JIRA)" To: java-dev@axis.apache.org Message-ID: <2108989224.36970.1313319927295.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1173723741.9653.1310561339946.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AXIS2-5093) Connection cannot be cleaned up after 404 response MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-5093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084818#comment-13084818 ] Hudson commented on AXIS2-5093: ------------------------------- Integrated in axis2-1.6 #68 (See [https://builds.apache.org/job/axis2-1.6/68/]) AXIS2-5093: Merged r1157501 to the 1.6 branch. veithen : Files : * /axis/axis2/java/core/branches/1_6/modules/parent/pom.xml * /axis/axis2/java/core/branches/1_6/modules/transport/http/test/org/apache * /axis/axis2/java/core/branches/1_6/modules/transport/http/pom.xml * /axis/axis2/java/core/branches/1_6/modules/transport/http/test/org/apache/axis2 * /axis/axis2/java/core/branches/1_6/modules/transport/http/test * /axis/axis2/java/core/branches/1_6/modules/transport/http/test-resources/org/apache/axis2/transport * /axis/axis2/java/core/branches/1_6/modules/transport/http/src/org/apache/axis2/transport/http/HTTPSender.java * /axis/axis2/java/core/branches/1_6 * /axis/axis2/java/core/branches/1_6/modules/transport/http/test-resources/org/apache * /axis/axis2/java/core/branches/1_6/modules/transport/http/test-resources/org/apache/axis2 * /axis/axis2/java/core/branches/1_6/modules/saaj/pom.xml * /axis/axis2/java/core/branches/1_6/modules/transport/http/test-resources/org/apache/axis2/transport/http * /axis/axis2/java/core/branches/1_6/modules/transport/http/test-resources/org * /axis/axis2/java/core/branches/1_6/modules/transport/http/test/org/apache/axis2/transport/http * /axis/axis2/java/core/branches/1_6/modules/transport/http/test/org/apache/axis2/transport/http/CommonsHTTPTransportSenderTest.java * /axis/axis2/java/core/branches/1_6/modules/transport/http/test/org * /axis/axis2/java/core/branches/1_6/modules/transport/http/test-resources/org/apache/axis2/transport/http/axis2.xml * /axis/axis2/java/core/branches/1_6/modules/transport/http/test-resources * /axis/axis2/java/core/branches/1_6/modules/transport/http/test/org/apache/axis2/transport > Connection cannot be cleaned up after 404 response > -------------------------------------------------- > > Key: AXIS2-5093 > URL: https://issues.apache.org/jira/browse/AXIS2-5093 > Project: Axis2 > Issue Type: Bug > Components: transports > Affects Versions: 1.5.4 > Environment: Axis 1.5.4, Tomcat 6.0 > Reporter: Claire Walsh > Assignee: Andreas Veithen > Fix For: 1.5.6, 1.6.1, 1.7.0 > > > I am using the WSDL2Java client stub classes to make a web service call via POST. When the server responds with certain error codes (401 and 404 are the two I have encountered) the connection is not cleaned up. So after 2 error responses are received, all future connection attempts will time out. This is the stack trace received on the 3rd call: > org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection > at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:497) > at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416) > at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153) > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) > at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:557) > at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199) > at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76) > at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400) > at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:438) > at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402) > at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) > at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) > at com.micropact.entellitrak.services.client.stub.ConfigurationWebServiceStub.getTrackingConfig(ConfigurationWebServiceStub.java:393) > at com.micropact.entellitrak.services.client.ConfigurationWebClient.importTrackingConfig(ConfigurationWebClient.java:114) > at com.micropact.entellitrak.cfg.service.ConfigurationUtilitiesService.updateConfigurationFromWeb(ConfigurationUtilitiesService.java:61) > at com.micropact.entellitrak.cfg.controller.action.ConfigurationUtilitiesAction.webUpdateConfiguration(ConfigurationUtilitiesAction.java:277) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274) > at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194) > at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419) > at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) > at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at com.micropact.entellitrak.web.filter.AuthenticationFilter.continueProcessing(AuthenticationFilter.java:248) > at com.micropact.entellitrak.web.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:131) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at com.micropact.entellitrak.web.filter.CacheFilter.doFilter(CacheFilter.java:108) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at com.micropact.entellitrak.web.filter.TrackingStateFilter.doFilter(TrackingStateFilter.java:88) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at com.micropact.entellitrak.web.filter.ConcurrentUserFilter.doFilter(ConcurrentUserFilter.java:111) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > at java.lang.Thread.run(Unknown Source) > To reproduce: On the client side, set an incorrect URL for your server address, and attempt to call the web service several times. The first few will correctly receive a 404 response, but subsequent calls will result in a timeout error. > Possible cause: In the handleResponse() method of org.apache.axis2.transport.http.HTTPSender, the HttpMethod is not saved in the MessageContext for 401 or 404 responses. So later calling service.cleanupTransport() has no effect. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org