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 E391D61C1 for ; Mon, 13 Jun 2011 16:41:36 +0000 (UTC) Received: (qmail 42979 invoked by uid 500); 13 Jun 2011 16:41:36 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 42842 invoked by uid 500); 13 Jun 2011 16:41:35 -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 42834 invoked by uid 99); 13 Jun 2011 16:41:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 16:41:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sagara.gunathunga@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 16:41:29 +0000 Received: by qwj8 with SMTP id 8so2951108qwj.32 for ; Mon, 13 Jun 2011 09:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=8FTGYHyiop9ZudSybR1EhEs5Ct6GvGg8qdqOJdDk43E=; b=pAYs1Fo+0xIu6FpotH/UZZsAS8K+k9YpehhVQaeag6CDi668kxXC7Gb3dAFMxn0eK6 5NxENhpUsWEjs90AmE7l+cwDirNfu3iU8I2CRyX5OEpnc4z2abEUedGmY1hZWsNB3YEo E1ydlcDioCeVEu97/JhLSckeviBxjAZ7E+3UE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=wzehNkVDBzhFDc+YHGCwKgrLlTBkv+0E8RsY0EtxFYfpQ/Y0wan/wdDf9hEJyQzRPd goa6VaUuhKQs0TAXIpwITBRT7B5ttq3f+UUFN/iev09PFRwesC20J+fTT3BV4+/Mh58J cJpDX+8SIFKC6b8yQuZX8JDxvkqP6ZwmNCaH0= Received: by 10.229.1.106 with SMTP id 42mr3992890qce.184.1307983268103; Mon, 13 Jun 2011 09:41:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.140.193 with HTTP; Mon, 13 Jun 2011 09:40:48 -0700 (PDT) In-Reply-To: References: From: Sagara Gunathunga Date: Mon, 13 Jun 2011 22:10:48 +0530 Message-ID: Subject: Re: Unable to sendViaPost to url To: java-dev@axis.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org My understanding about the error trace is you haven't set sufficient time out for clients (consumers) try to set enough value as follows. options.setTimeOutInMilliSeconds(soTimeout); Also Amila has mentioned some HTTP performance hints here [1] you could try for that too. [1] - http://amilachinthaka.blogspot.com/2009/05/improving-axis2-client-htt= p-transport.html Thanks ! On Sat, Jun 11, 2011 at 1:11 AM, Yunxi Zhang wrote= : > To Whom It May Concern, > I'm using axis2 to create two web service points to let them transmit soa= p > messages to each other. There are only four soap messages transmitting > between two points shown as follows > Message 1: Web Service 1-------------> Web Service 2 > Message 2: Web Service 2------------->Web Service 1 > Message 3: Web Service 1------------->Web Service 2 > Message 4: Web Service 2------------->Web Service 1 (finish here) > I have used the function "sendRobust" to send all the message. > The problem is that the first three messages can be transmitted very > quickly, but the 4th message can't be sent out with the errors shown belo= w: > [INFO] Unable to sendViaPost to > url[http://localhost:8080/axis2/services/PortalA_RequestingForSharedResou= rces] > java.net.SocketTimeoutException: Read timed out > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(SocketInputStream.java:129) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at java.io.BufferedInputStream.read(BufferedInputStream.java:237) > at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:7= 8) > at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) > at > org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java= :1116) > at > org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConn= ectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413) > at > org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBas= e.java:1973) > at > org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.= java:1735) > at > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:= 1098) > at > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMet= hodDirector.java:398) > at > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethod= Director.java:171) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:39= 7) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:34= 6) > at > org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abstract= HTTPSender.java:557) > at > org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:19= 9) > at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76) > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWi= thCommons(CommonsHTTPTransportSender.java:400) > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Commons= HTTPTransportSender.java:225) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:438) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOpera= tion.java:402) > at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAx= isOperation.java:229) > at org.apache.axis2.client.OperationClient.execute(OperationClient.java:1= 65) > at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:47= 0) > at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:45= 1) > at > portalB.ReceivingRequestForSharedResources.decisionMaking(ReceivingReques= tForSharedResources.java:173) > at > portalB.ReceivingRequestForSharedResources.receivingSOAPMessage(Receiving= RequestForSharedResources.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver.invokeBusinessLogi= c(RawXMLINOnlyMessageReceiver.java:90) > at > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessag= eReceiver.java:114) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173) > at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest= (HTTPTransportUtils.java:173) > at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:14= 4) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat= ionFilterChain.java:306) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte= rChain.java:210) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve= .java:240) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve= .java:161) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:= 164) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:= 100) > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:5= 50) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j= ava:118) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:38= 0) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243= ) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(H= ttp11Protocol.java:188) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(H= ttp11Protocol.java:166) > at > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.ja= va:288) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor= .java:886) > at java.util.concurrent.ThreadPoolExecut > However, if I use the soapmonitor to create a monitor point for the messa= ge > 4 between two web services, the 4th message can be sent out successfully.= I > have no idea why this problem can occur. Could you help me find out the > problem? > Best regards, > Yunxi > --=20 Sagara Gunathunga Blog =A0 =A0 =A0- http://ssagara.blogspot.com Web =A0 =A0 =A0- http://people.apache.org/~sagara/ LinkedIn - http://www.linkedin.com/in/ssagara --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org