• Post Reply Bookmark Topic Watch Topic
  • New Topic

NoHttpResponseException with proxy

 
Adriano Bellavita
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • 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?

 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • 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
  • 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.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!