You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Landslide <xi...@landslide.com> on 2008/02/16 03:26:51 UTC

Axis2 client hangs with multiple requests in one session

When I use Axis2 1.3 API for my SOAP client as  below:
Options options = new Options();
options.setManageSession(true);
client.setOptions(options);
I can only get back the cookie of “JSESSIONID” on my server side for all the
subsequent requests and I would lose the rest of all other cookies set by my
server side code.

When I use Axis2 1.3 API for my SOAP client as below:
Options options = new Options();
options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true);
client.setOptions(options);
I can get back all the cookies set by my server side code, including
“JSESSIONID”. However, the client side code would hang forever after looping
into the 3rd request.

What can I do in this case as I want to have all my cookies passed back from
the client side to the server side for multiple requests of the same HTTP
session?


-- 
View this message in context: http://www.nabble.com/Axis2-client-hangs-with-multiple-requests-in-one-session-tp15514156p15514156.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Axis2 client hangs with multiple requests in one session

Posted by Pär Malmqvist <pa...@hotmail.com>.
Thanks!
 
/Pär> Date: Sun, 17 Feb 2008 06:01:01 -0800> From: xiangminl@landslide.com> To: axis-user@ws.apache.org> Subject: RE: Axis2 client hangs with multiple requests in one session> > > Yes, doing the following after each AxisFault would help me prevent the Axis2> client to hang:> client.cleanupTransport();> and my server side still gets all the preset cookie values.> -- > View this message in context: http://www.nabble.com/Axis2-client-hangs-with-multiple-requests-in-one-session-tp15514156p15529268.html> Sent from the Axis - User mailing list archive at Nabble.com.> > > ---------------------------------------------------------------------> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org> For additional commands, e-mail: axis-user-help@ws.apache.org> 
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

RE: Axis2 client hangs with multiple requests in one session

Posted by Landslide <xi...@landslide.com>.
Yes, doing the following after each AxisFault would help me prevent the Axis2
client to hang:
       client.cleanupTransport();
and my server side still gets all the preset cookie values.
-- 
View this message in context: http://www.nabble.com/Axis2-client-hangs-with-multiple-requests-in-one-session-tp15514156p15529268.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Axis2 client hangs with multiple requests in one session

Posted by Pär Malmqvist <pa...@hotmail.com>.
Nice in some way to here that I am not the only one having problem with the Axis2 client hanging after the third request when AxisFaults are received...
 
I think this is a bug in the transport layer and I have solved it by working around.(My application should not get an AxisFault that often so I just reinitialize my client...)
So could you send a testcase for Paul, Michele and others to reproduce the stuff below?I think the case I reported earlier was not easy enough to reproduce.
 
/Pär
 
 
> Date: Sat, 16 Feb 2008 23:09:37 -0800> From: xiangminl@landslide.com> To: axis-user@ws.apache.org> Subject: Re: Axis2 client hangs with multiple requests in one session> > > 1) Yes, the Axis2 client would hang on the 3rd call if the first 2 requests> get an AxisFault when I use:> options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true);> options.setCallTransportCleanup(true);> > 2) The Axis2 client would hang on the 3rd call no matter what when I use:> options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true);> > 3) The Axis2 client does not work in the way I need when I use:> options.setManageSession(true);> > 4) The Axis2 client is expected to maintain the session correctly, or it is> a bug in the code.> > 5) Can you please provide some example code about how to customize my> HttpConnectionManager to help Axis2 client maintain all the info about the> session?> > Thanks!> -- > View this message in context: http://www.nabble.com/Axis2-client-hangs-with-multiple-requests-in-one-session-tp15514156p15527041.html> Sent from the Axis - User mailing list archive at Nabble.com.> > > ---------------------------------------------------------------------> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org> For additional commands, e-mail: axis-user-help@ws.apache.org> 
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Re: Axis2 client hangs with multiple requests in one session

Posted by Landslide <xi...@landslide.com>.
1) Yes, the Axis2 client would hang on the 3rd call if the first 2 requests
get an AxisFault when I use:
        options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true);
        options.setCallTransportCleanup(true);

2) The Axis2 client would hang on the 3rd call no matter what when I use:
        options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true);

3) The Axis2 client does not work in the way I need when I use:
        options.setManageSession(true);

4) The Axis2 client is expected to maintain the session correctly, or it is
a bug in the code.

5) Can you please provide some example code about how to customize my
HttpConnectionManager to help Axis2 client maintain all the info about the
session?

Thanks!
-- 
View this message in context: http://www.nabble.com/Axis2-client-hangs-with-multiple-requests-in-one-session-tp15514156p15527041.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 client hangs with multiple requests in one session

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Hello,

as I said in my previous email, my guess is that the problem lies at  
the transport level. In order to confirm (or deny) my assumption you can
1 - not reuse the same HttpClient between calls
2 - customize your HttpConnectionManager as I suggested you in my  
previous email.


Michele

On 16 Feb 2008, at 14:52, Pär Malmqvist wrote:

> Hi!
>
> I have noticed that the combination below sometimes hangs on the  
> third call if the server response always is an AxisFault.
> But I have not had time to track it down complete so it would be  
> interesting to here from you.
> What happens when you send a call three times in a row and the  
> response is always an AxisFault with an error message?
> I hope it is not that hard to find out what parameters to use in  
> your call to get an AxisFault from the server.
>
> Thanks!
>
> /Pär
>
>
>
>
>
> > Date: Sat, 16 Feb 2008 03:30:16 -0800
> > From: xiangminl@landslide.com
> > To: axis-user@ws.apache.org
> > Subject: Re: Axis2 client hangs with multiple requests in one  
> session
> >
> >
> > Thanks, Michele!
> >
> > The combination of these 2 lines works for multiple requests/ 
> responses:
> > options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true);
> > options.setCallTransportCleanup(true);
> >
> > This line only tracks the cookie "JSESSIONID" but nothing else:
> > options.setManageSession(true);
> > --
> > View this message in context: http://www.nabble.com/Axis2-client- 
> hangs-with-multiple-requests-in-one-session-tp15514156p15517229.html
> > Sent from the Axis - User mailing list archive at Nabble.com.
> >
> >
> >  
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
> Express yourself instantly with MSN Messenger! MSN Messenger


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Axis2 client hangs with multiple requests in one session

Posted by Pär Malmqvist <pa...@hotmail.com>.
Hi!
 
I have noticed that the combination below sometimes hangs on the third call if the server response always is an AxisFault.But I have not had time to track it down complete so it would be interesting to here from you.What happens when you send a call three times in a row and the response is always an AxisFault with an error message?
I hope it is not that hard to find out what parameters to use in your call to get an AxisFault from the server.
 
Thanks!
 
/Pär
 
 
 
> Date: Sat, 16 Feb 2008 03:30:16 -0800> From: xiangminl@landslide.com> To: axis-user@ws.apache.org> Subject: Re: Axis2 client hangs with multiple requests in one session> > > Thanks, Michele!> > The combination of these 2 lines works for multiple requests/responses:> options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true);> options.setCallTransportCleanup(true);> > This line only tracks the cookie "JSESSIONID" but nothing else:> options.setManageSession(true);> -- > View this message in context: http://www.nabble.com/Axis2-client-hangs-with-multiple-requests-in-one-session-tp15514156p15517229.html> Sent from the Axis - User mailing list archive at Nabble.com.> > > ---------------------------------------------------------------------> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org> For additional commands, e-mail: axis-user-help@ws.apache.org> 
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Re: Axis2 client hangs with multiple requests in one session

Posted by Landslide <xi...@landslide.com>.
Thanks, Michele!

The combination of these 2 lines works for multiple requests/responses:
        options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true);
        options.setCallTransportCleanup(true);

This line only tracks the cookie "JSESSIONID" but nothing else:
        options.setManageSession(true);
-- 
View this message in context: http://www.nabble.com/Axis2-client-hangs-with-multiple-requests-in-one-session-tp15514156p15517229.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 client hangs with multiple requests in one session

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Have you tried to call options.setCallTransportCleanup(true)?, my  
guess is that the problem lies at the transport level.
If still does not work try to create  a custom HttpConnectionManager  
for the client -- see AsyncTest2Test into the integration test module.


Michele

On 16 Feb 2008, at 02:26, Landslide wrote:

>
> When I use Axis2 1.3 API for my SOAP client as  below:
> Options options = new Options();
> options.setManageSession(true);
> client.setOptions(options);
> I can only get back the cookie of “JSESSIONID” on my server side  
> for all the
> subsequent requests and I would lose the rest of all other cookies  
> set by my
> server side code.
>
> When I use Axis2 1.3 API for my SOAP client as below:
> Options options = new Options();
> options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true);
> client.setOptions(options);
> I can get back all the cookies set by my server side code, including
> “JSESSIONID”. However, the client side code would hang forever  
> after looping
> into the 3rd request.
>
> What can I do in this case as I want to have all my cookies passed  
> back from
> the client side to the server side for multiple requests of the  
> same HTTP
> session?
>
>
> -- 
> View this message in context: http://www.nabble.com/Axis2-client- 
> hangs-with-multiple-requests-in-one-session-tp15514156p15514156.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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