Skip to Main Content

Java APIs

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!

Method invocation READ TIME OUT after many previous succesful invocations

843793Feb 28 2007 — edited Apr 25 2007
Hi, I have problem with following error:

error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at cz.i2s.heri.Heri_Stub.getPages(Heri_Stub.java:85)
at cz.i2s.task.discovery.SourceDiscovery.work(SourceDiscovery.java:678)
at cz.i2s.task.AbstractTask.run(AbstractTask.java:169)
at cz.i2s.daemon.RunningTask$1.run(RunningTask.java:49)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.DataInputStream.readByte(Unknown Source)
... 8 more

It occurs unpredictably after a long run (days) of our application. We call on the server some "get" method in the cycle and this fails. Then on application ending a clean up method is invoked on the server and the invocation is fine again although the previous error. So I tried to retry the problematic "get" method call if this error occurred but it fails too and again, following finalization connect the server without the problem.

According the log, the server side is not contacted and there is no synchronization which could prolonged tre response.

I was searching the archives and I have found only this http://forum.java.sun.com/thread.jspa?threadID=718211&messageID=4148111
relevant but there is no helping response.

Does anybody know what can cause strange behavior like this or have some hint what to do?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2007
Added on Feb 28 2007
23 comments
8,285 views