Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

java.net.SocketTimeoutException: Read timed out

843842Aug 19 2009 — edited Aug 19 2009
Hello friends! I'm very confused by this problem...

I have two applications in Java, a client and a servlet. The client connects to servlet by:
         URLConnection con = getServletConnection();
                  OutputStream outstream = con.getOutputStream();
                  ObjectOutputStream oos = new ObjectOutputStream(outstream);
                  oos.writeObject(myObject);
                  oos.flush();
                  oos.close();
The servlet recibes the object with POST method, and works with him.

This application has worked fine over 2 years for all the people , but today.. misteriously not works for a few clients located in a similar geographic zone, and i don't know why...

In my tomcat log appears the next error every time this "conflictive" clients try to connect:

"java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:155)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:229)
...."

For all the other people, still works fine. It seems like a particullary zone clients not sending good connections to my tomcat.

Thanks a lot!

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 16 2009
Added on Aug 19 2009
2 comments
381 views