aspose 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
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: 1632
    
    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
[Apache Httpclient] Connection refused
Integration testing with Maven and HTTP Client - connection refused
Wasce error - Server IBM WASCE v2.1 Server at localhost failed to start.
org.springframework.web.client.ResourceAccessException: I/O error: Connection refused: connect
(java.net.ConnectException) caught when processing request: Connection refused