File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes nested exception is org.springframework.web.client.ResourceAccessException: I/O error 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 » Frameworks » Spring
Bookmark "nested exception is org.springframework.web.client.ResourceAccessException: I/O error" Watch "nested exception is org.springframework.web.client.ResourceAccessException: I/O error" New topic
Author

nested exception is org.springframework.web.client.ResourceAccessException: I/O error

rama kammari
Greenhorn

Joined: Jun 14, 2012
Posts: 9




I want to access webservice by calling an URL (webservice URL) through my company proxy,
I am getting this error in my server, and on my browser : I/O error: Connection refused
i wrote this code in my RestfulClient class




Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1646
    
    7

This is not really a question about Spring or RestTemplate but about Apache Commons HTTP Client. I would use the HttpComponentsClientHttpRequestFactory instead and upgrade to Apache HTTP Components. The version you are using is no longer supported. That said I would talk to other members of your organization about how they typically work with the proxy, perhaps the method you are using is not correct, or sometimes the preferred method is to apply for a proxy exception for your application. Either way RestTemplate will just use what you have configured.

See this link and see if it will help you.

http://stackoverflow.com/questions/6962047/apache-httpclient-4-1-proxy-authentication


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: nested exception is org.springframework.web.client.ResourceAccessException: I/O error
 
Similar Threads
Wasce error - Server IBM WASCE v2.1 Server at localhost failed to start.
(java.net.ConnectException) caught when processing request: Connection refused
org.springframework.web.client.ResourceAccessException: I/O error: Connection refused: connect
Integration testing with Maven and HTTP Client - connection refused
[Apache Httpclient] Connection refused