Hi,

I am writing a web application using httpClient to connect to an existing
web application.  On the main menu, if I click a button, it is going to
create a httpClient (and save the httpClient into session), then invoke
process1 then process2, and pop up a new window to display the results.
Both process1 and process2 use the httpClient to do a Get or Post method.
(If I click some other button, which will do process1 and process3 through
httpClient without any problem.....)

Then, on the new window, there is a button that will trigger the same thing
- by clicking it, it will invoke process1 and process2.  Both process1 and
process2 are using the same client as before because the client comes from
the session.  

However, the process1 first get a recoverable exception:
org.apache.commons.httpclient.HttpRecoverableException:
java.net.SocketException: Socket closed 

then the httpclient retries, and got another recoverable exception:
org.apache.commons.httpclient.HttpRecoverableException: Error in parsing the
status  line from the response: unable to find line starting with "HTTP" 

I don't understand why I have a problem using httpClient in one situation
while no problem in another.  Seems that anything starts from the main menu
will be fine.  Isn't that wierd?

Please help ...

Thanks

Reply via email to