Hi Michele, I made simple service and client to make my problem clearer. My client code is attached to this e-mail. The HelloWorldService is web service created using JAX-WS and is running on GlassFish.
As you see, I set endpoint, transportInProtocol and reuse_http_client to Options object. My problem was reproduced with this code using Axis2 1.3. The cleanupTransport causes OMException if response contains many OMElement. --- Michele Mazzucco <[EMAIL PROTECTED]> wrote: > Masaki, > > I ran out of options, I haven't used Axis2 1.4 yet. > Can you please > try with Axis2 1.3? > It might be helpful to post all the relevant client > code (i.e. which > options you set). > > Michele > > > On 26 Jun 2008, at 11:15, Uno Masaki wrote: > > > 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 <[EMAIL PROTECTED]> > 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 > <[EMAIL PROTECTED]> > >> 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: > >>>> [EMAIL PROTECTED] > >>>>> For additional commands, e-mail: > >>>> [EMAIL PROTECTED] > >>>>> > >>>> > >>>> > >>>> > >>> > >> > > > --------------------------------------------------------------------- > >>>> To unsubscribe, e-mail: > >>>> [EMAIL PROTECTED] > >>>> For additional commands, e-mail: > >>>> [EMAIL PROTECTED] > >>>> > >>>> > >>> > >>> > >>> > >> > > > --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: > >> [EMAIL PROTECTED] > >>> For additional commands, e-mail: > >> [EMAIL PROTECTED] > >>> > >> > >> > >> > > > --------------------------------------------------------------------- > === 以下のメッセージは省略されました ===
HelloWorldClient.java
Description: 1203514464-HelloWorldClient.java
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
