Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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

Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

Posts: 1682
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
That's a very big dog. I think I want to go home now and hug this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!