File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes getting conection refused connect while using ssl over apache http client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "getting conection refused connect while using ssl over apache http client" Watch "getting conection refused connect while using ssl over apache http client" New topic
Author

getting conection refused connect while using ssl over apache http client

pradeep tiwari
Greenhorn

Joined: May 23, 2012
Posts: 4
hi ,i m in big trouble m getting connection refused connect while using ssl over apache http client .
after every 4-5 successfull request ,i m getting socket exception when i change my default ip then it runs properly for 2-3 hours without any socket exception
so as a result i have to change my default ip after every 3 hours which is very improper task . m not able to find out that whether the issue is at server side or my client side
because after changing my ip its starts behaving immediately normal ,and m releasing the connection also properly

below is the code

thanks for your interest in this post -_-

pradeep tiwari
Greenhorn

Joined: May 23, 2012
Posts: 4
any update please
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

When you get a connection refused, you may want to telnet to the ip/port and see whether it is open. If it is not then its surely not a client problem.
It might be a problem of conflicting IPs in your network.


apigee, a better way to API!
pradeep tiwari
Greenhorn

Joined: May 23, 2012
Posts: 4
hi Nitesh very very big thanks for your reply

i am getting lots of connection timeout also

out of 3 lakhs request/day i am getting 50000-60000 connection timeout and around 40000 connection refused
the networking guys are blaming to application that application has issues ,as a developer every resource is properly opened and closed but still cant understand where is the issue
immediately after switching to different ISP i used to get no connection timeout and connection refused

is this is problem is related to server backlog queue?
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

Its difficult to tell what the issue is without knowing the environment of the server.
Connection refused error is thrown when the port is not open
Connection timeout error typically is thrown when the server is not able to respond to the client on time (one of the reasons is the request queue backlog as you mentioned)
pradeep tiwari
Greenhorn

Joined: May 23, 2012
Posts: 4
thanks for your immediate response nitesh
below is the environment info
os- windows server -2003
java-version - 1.6
web server -resin 4
ssl over Apache httpclient 3.0

Emmett Smith
Greenhorn

Joined: Aug 07, 2012
Posts: 5
It sounds like your port is closing.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting conection refused connect while using ssl over apache http client