Jump to content


Photo

Timeouts When POST:ing back from IPN


  • This topic is locked This topic is locked
No replies to this topic

#1 rfroberg

rfroberg

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 30 August 2003 - 07:02 AM

Hi.
At rare occasions, we get
NoRouteToHostException: Connection timed out
from our IPN servlet. The problem stucks for some hours, then
disappears all of a sudden and everything is back to normal.

Stack trace:
--
java.net.NoRouteToHostException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:132)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:119)
at java.net.Socket.<init>(Socket.java:269)
at java.net.Socket.<init>(Socket.java:98)
at sun.net.NetworkClient.doConnect(NetworkClient.java:54)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:320)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:431)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:260)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:270)
at sun.net.www.http.HttpClient.New(HttpClient.java:282)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:371)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:418)
at IPN.doPost(IPN.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:521)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java:479)
--

Apart from the obvious (network problems with our web host,
internet trouble etc), is there anyone who has seen this with
Java/Servlet/JServ/Apache?

We run JServ/Apache on Linux with the following setup:
Linux 2.4.7-10 #1 (RedHat)
jserv
Java Classic VM (build JDK-1.2.2_008, green threads, nojit)

The problem occurs when we recieve the IPN from paypal and try to
send the mandatory POST back to paypal servers. Due to Java versions
we only use HTTP (no SSL) when posting to paypal.

At the time of the last incident, we were able to traceroute all
the way until where paypal blocks traceroute ( :-( ), that made
me suspect it was a Java issue and not network related.

Thanks

Rikard F, eClasical.com

ABC, DEFG, HIJ, KL




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users