• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NoHttpResponseException with proxy

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi to all,

I'm developping a simple application that wants to use a proxy.

The client make a reqest, the proxy take this request and give it to the server.

This is the error

I/O exception (org.apache.commons.httpclient.NoHttpResponseException) caught when processing request: The server api.facebook.com failed to respond

I got this error when I try to make the post request to the server, when I'm into the proxy, like this

httpClient.executeMethod(method);

Somebody can help me?

 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The proxy might be dead. Try writing code that connects without using a proxy, if that works, wrap your proxy stuff around it.
 
Adriano Bellavita
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've understand what you say... But ther's a problem.

Application works fine without proxy. Clien make request and server is good. I don't konw what the server do, I have not write server-code, and client-side I have only added an headers named "server" whit the server URL. My proxy appears non-trasparent.

Now I wants to create a proxy. Proxy works, but not fine! In fact this error is proxy side, as catalina.out show me.

It seems that the server don't wants to make a response, or that proxy can't pass the request.

 
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic