|
From: Palmer, D. <Dav...@ph...> - 2003-03-26 20:44:18
|
Hello all...
have a question. Trying to implement this tool to create services out of a
RMI application we are forced to use.
The problem is...that when the user loggs off the Win2k machine, the wrapper
properly ignores this action (as I can see in the wrapper.log) but still,
the rmiregistry and rmi server itself dies... and yet the service is still
running.
We are running on Win2k
Using JDK1.3.1_07 when logging out, the wrapper.log has these entries:
INFO | wrapper | 2003/03/25 16:32:10 | User logged out. Ignored.
INFO | wrapper | 2003/03/25 16:32:11 | User logged out. Ignored.
INFO | jvm 1 | 2003/03/25 16:32:11 | java.rmi.UnmarshalException: Error
unmarshaling return header; nested exception is:
INFO | jvm 1 | 2003/03/25 16:32:11 | java.net.SocketException:
Connection reset by peer: JVM_recv in socket input stream read
INFO | jvm 1 | 2003/03/25 16:32:11 | java.net.SocketException:
Connection reset by peer: JVM_recv in socket input stream read
<snipped>
When using JDK1.4.1 We got:
INFO | wrapper | 2003/03/26 11:13:46 | User logged out. Ignored.
INFO | wrapper | 2003/03/26 11:13:57 | User logged out. Ignored.
(no exceptions... but the rmi services were indeed killed).
The problem, in a nutshell, is that even though the "user logging out"
action is intercepted by the wrapper... our RMI stuff still dies upon a user
logging out.
It should also be noted that, in the actual implementation of the RMI
Server, we have the starting up of the rmi registry:
try {
Runtime.getRuntime().exec("rmiregistry "+port+"
-J-Dsun.rmi.loader.logLevel=verbose
-J-Djava.rmi.server.codebase="+sCodebase+"
-J-Djava.rmi.server.hostname="+host);
} catch (IOException e) {
System.out.println("An error occured setting the CODEBASE system
property");
e.printStackTrace();
return;
}
Everything else is just normal RMI server stuff... nothing exotic.
I've been through the documentation, done numerous google searches to try to
get to the bottom of this, but haven't found much of anything.
I sure hope someone here can shed some light. Thanks!
Regards,
Dave Palmer
"The sender believes that this E-mail and any attachments were free of any
harmful and malicious code or defects when sent. This message and its
attachments could have been infected during transmission. By reading the
message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action regarding the code
or such defects. The sender is not liable for any loss or damage arising in
any way from this message or its attachments."
|