Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 11456 invoked from network); 26 Jun 2008 10:17:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2008 10:17:08 -0000 Received: (qmail 58191 invoked by uid 500); 26 Jun 2008 10:17:00 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 58174 invoked by uid 500); 26 Jun 2008 10:16:59 -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 58163 invoked by uid 99); 26 Jun 2008 10:16:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 03:16:59 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of m1guel_angel_g0nzalez@yahoo.co.jp designates 124.83.170.154 as permitted sender) Received: from [124.83.170.154] (HELO web10509.mail.ogk.yahoo.co.jp) (124.83.170.154) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 26 Jun 2008 10:16:07 +0000 Received: (qmail 7592 invoked by uid 60001); 26 Jun 2008 10:15:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20050223; d=yahoo.co.jp; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=LfdsbJeW8pn9JuYPVjozSOHkkZiAFRAEB54hQkpT1xsRKRK1/BO3rR2A6yo8DpLk5aTi1G74NCA5dXjmvaxya8uDikYTJOvxtfZ5kjAYcvXK/mgP1WuO75Tj03W3B/C1 ; Message-ID: <20080626101555.7590.qmail@web10509.mail.ogk.yahoo.co.jp> Received: from [222.228.210.78] by web10509.mail.ogk.yahoo.co.jp via HTTP; Thu, 26 Jun 2008 19:15:55 JST Date: Thu, 26 Jun 2008 19:15:55 +0900 (JST) From: Uno Masaki Subject: Re: How to use HTTPConstants.REUSE_HTTP_CLIENT To: axis-user@ws.apache.org In-Reply-To: <7618720C-3B26-47D6-B14E-4788CDD2D341@ncl.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp X-Virus-Checked: Checked by ClamAV on apache.org Hi Michele, I added serviceClient.cleanupTransport() just after sendReceive() like this. OMElement resopnse = serviceClient.sendReceive(body); serviceClient.cleanupTransport(); // processing response OMException was thrown as below after my client received 2nd response. Exception in thread "main" org.apache.axiom.om.OMException: java.lang.RuntimeException: [was class java.io.IOException] Attempted read on closed stream. at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249) at org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:307) at org.apache.axiom.om.impl.traverse.OMChildElementIterator.next(OMChildElementIterator.java:104) ...... snipped Regards, Masaki --- Michele Mazzucco wrote: > OK, then try to call > serviceClient.cleanupTransport() when just after > sendReceive(). > > > Michele > > > On 26 Jun 2008, at 10:04, Uno Masaki wrote: > > > Hi Michele, > > Thank you for quick reply. > > > > My client received 2nd response. > > My application always stalls at 3rd request. > > > > > > I forgot to show my environment. > > - JDK 5u15 > > - Axis2 1.4 > > - ran from Eclipse 3.3.2 > > > > Regards, > > Masaki > > > > > > > > --- Michele Mazzucco > wrote: > > > >> Hi Masaki, > >> > >> what about the second response?, Did your client > >> received it? > >> I'm asking it because HttpClient 3 does not use > >> pipelining and so the > >> 3rd request will be sent only after receiving the > >> 2nd response. > >> > >> > >> Michele > >> > >> > >> On 26 Jun 2008, at 09:30, Uno Masaki wrote: > >> > >>> Hi axis users, > >>> > >>> > >>> I'm creating SOAP client using Axis2 1.4 kernel. > >>> > >>> I'd like to to re-use HttpClient instance by > >> setting > >>> HTTPContants.REUSE_HTTP_CLIENT of Options > instance > >> to > >>> true, like this. > >>> > >>> > >>> Options options = new Options(); > >>> > >> > optiosn.setProperty(HTTPContants.REUSE_HTTP_CLIENT, > >>> Boolean.TRUE); > >>> .... > >>> > >>> ServiceClient client = new ServiceClient(); > >>> client.setOptions(options); > >>> OMElement resopnse = client.sendReceive(...); > >>> > >>> > >>> I confirmed that only one HttpClient instance > was > >> created > >>> for request from same ServiceClient. > >>> However, my application freezed at third > >> sendReceive(), > >>> the third HTTP request was not sent. > >>> > >>> > >>> > >>> Does anyone know what's wrong with this? > >>> Please tell me right setting. > >>> > >>> > >>> Best Regards, > >>> Masaki Uno. > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >> > > > --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: > >> axis-user-unsubscribe@ws.apache.org > >>> For additional commands, e-mail: > >> axis-user-help@ws.apache.org > >>> > >> > >> > >> > > > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: > >> axis-user-unsubscribe@ws.apache.org > >> For additional commands, e-mail: > >> axis-user-help@ws.apache.org > >> > >> > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: > axis-user-help@ws.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: > axis-user-help@ws.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org