This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Problem in POST request using HTTPClient
 
Similar Threads
totally stumped by synchronization.afterCommit error
Deprecated function authscheme(). Need Help to resolve this issue
Running application on web start
[Apache Httpclient] Connection refused
I/0 exception in WebSphere 7.0