Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 46558 invoked from network); 5 Dec 2006 11:41:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2006 11:41:58 -0000 Received: (qmail 15826 invoked by uid 500); 5 Dec 2006 11:41:59 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 15229 invoked by uid 500); 5 Dec 2006 11:41:57 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 15218 invoked by uid 99); 5 Dec 2006 11:41:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2006 03:41:57 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jprogramista@gmail.com designates 64.233.184.234 as permitted sender) Received: from [64.233.184.234] (HELO wr-out-0506.google.com) (64.233.184.234) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2006 03:41:46 -0800 Received: by wr-out-0506.google.com with SMTP id i3so1317764wra for ; Tue, 05 Dec 2006 03:41:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=AOJ/hWuJatYwX7OZFXqGZlQlM0AL9e701K3f5N8+i60SRZjJku9DU4GULRpRLmGgxKtcNsmfFKePu8qcf3SgkHe4nwSQzV5zgAvGSDpJGd6wo0s+3X8y+VMs9EEcMoQNG+ATzMuAI/txX5GMxSxmzE5+AkfZb+/yTUDFdTQHwFA= Received: by 10.78.166.7 with SMTP id o7mr8789612hue.1165318884659; Tue, 05 Dec 2006 03:41:24 -0800 (PST) Received: by 10.78.148.13 with HTTP; Tue, 5 Dec 2006 03:41:24 -0800 (PST) Message-ID: Date: Tue, 5 Dec 2006 12:41:24 +0100 From: "Java Programmer" To: axis-user@ws.apache.org Subject: Connection timed out in little slow webservice MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hello, My problem concerns some timeouts which are made by long time running process inside soap method. Fault looks like: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.net.ConnectException: Connection timed out: connect faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:516) ... java.net.ConnectException: Connection timed out: connect at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) ... My webservice is doing some indexing job with Lucene search engine, I implemented method addDocument(some args here), and send via Internet SOAP requests. Everything looks great for time when Lucene needs some more time to merge index, at that time it takes some more time about (5-10sec), and I get this exception. I don't understand why AXIS client can't connect, I thought that AXIS webservice would take a request I wait until Lucene job is done (it have to wait anyway because all document additions are synchronized). So why this timeout happens, why can't wait for job done? I try also to longer a bit timeout with http://ws.apache.org/axis/java/apiDocs/org/apache/axis/client/Call.html#setTimeout(java.lang.Integer) but it seems to not work in my client, anybody knows why - maybe is other way to do this? Best regards, Adrian --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org