This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Problem in POST request using HTTPClient Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Problem in POST request using HTTPClient" Watch "Problem in POST request using HTTPClient" New topic
Author

Problem in POST request using HTTPClient

Shubham Guptas
Greenhorn

Joined: May 02, 2010
Posts: 9
I wrote load test application for java web application running on tomcat server.

I am using HTTPClient for sending XML request. The code I am using is as follows:



The above code is thread body and I am running 200 threads. but for some requests I am getting following exception



Any help would be appreciated. Thanks
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

From the trace I observe that, sometimes your application gets connection timed out.


S.D. MADHAN
Not many get the right opportunity !
Shubham Guptas
Greenhorn

Joined: May 02, 2010
Posts: 9
Madhan Sundararajan Devaki wrote:From the trace I observe that, sometimes your application gets connection timed out.


so silly of me....Thanks....I increased connection time out and it worked....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in POST request using HTTPClient
 
Similar Threads
Running application on web start
I/0 exception in WebSphere 7.0
Deprecated function authscheme(). Need Help to resolve this issue
totally stumped by synchronization.afterCommit error
[Apache Httpclient] Connection refused