RMI server quits for no reasons
843793Nov 11 2004 — edited Nov 12 2004Folks,
I'd really appreciate your help with the following. I have an RMI server which works fine, except that it stops itself after a variable period of about 2 to 10 minutes. It is a unicast server and uses SSL. I am running it from a console in a Linux box with java 1.4.2.
I looked through previous postings to this forum, and found several people complaining of the same problem. Unfortunately I didn't find a lot of answers. One set of responses suggested that various logs might be helpful, so I turned them on:
java -classpath dermpathApplet.jar:mail.jar:activation.jar:mysql-connector-java-3.0.11-stable-bin.jar -Djava.rmi.server.logCalls=true -Dsun.rmi.server.exceptionTrace=true -Dsun.rmi.transport.logLevel=VERBOSE -Djava.rmi.ssl.debug=true com.edermpath.dermpath_client.DPAppletServer
With this, I get the following when the server first starts up:
Nov 11, 2004 8:56:58 PM sun.rmi.transport.StreamRemoteCall <init>
FINER: main: write remote call header...
Nov 11, 2004 8:56:58 PM sun.rmi.transport.StreamRemoteCall getOutputStream
FINER: main: getting output stream
Nov 11, 2004 8:56:58 PM sun.rmi.transport.StreamRemoteCall getInputStream
FINER: main: getting input stream
It then runs for a few minutes and then stops without any further messages.
The server won't quit while it is connected to a client, so perhaps it is a problem with garbage collection.
I understand I could probably solve this problem with an activatable server, but I'd like to avoid that approach if possible.
Thanks much,
dermite