Connection reset
Robert Gibson <[email protected]> Thu, 16 Mar 2006 14:46:28 +0000
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
I'm getting the exception below, 2 hours after running
my command. The server-side processing should take
about 30 seconds, although the return value is a bunch
of HashMaps which may take a while to serialize.
It looks to me like the server thinks it has finished
the command, but the client hasn't received all the
data it was expecting and so it leaves the connection
open. After 2 hours the server gets bored and resets
the connection.
Is this the correct interpretation? If so, what would
cause it? Should I be able to shorten the timeout
period with the property
sun.rmi.transport.tcp.readTimeout
? Changing this property
doesn't seem to have the desired effect (JDK 1.5.0_06,
client and server are RH Linux FC3/4).
Thanks for any pointers,
R
java.lang.RuntimeException: RMI exception
at
com.xxx.data.database.AbstractDataDatabase_Stub.getDataSet(AbstractDataDatabase_Stub.java:366)
at
com.xxx.data.delegatedatabase.DelegateDataDatabase.getDataSet(DelegateDataDatabase.java:54)
Caused by: java.rmi.UnmarshalException: error
unmarshalling return; nested exception is:
java.net.SocketException: Connection reset
at
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:157)
at
com.nexgenfs.data.database.AbstractDataDatabase_Stub.getDataSet(AbstractDataDatabase_Stub.java:359)
... 7 more
Caused by: java.net.SocketException: Connection reset
at
java.net.SocketInputStream.read(SocketInputStream.java:168)
at
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at
java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at
java.io.BufferedInputStream.read(BufferedInputStream.java:313)
at
java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2217)
at
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2230)
at
java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2722)
at
java.io.ObjectInputStream.readHandle(ObjectInputStream.java:1398)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1279)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at java.util.HashMap.readObject(HashMap.java:1013)
at
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at
sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:290)
at
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:139)
... 8 more
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS". For general help, send email to
[email protected] and include in the body of the message "help".
For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html
To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html