RMI over SSL using ActivationSystem; Error: unable to obtain ActivationSystem
Ajay Kumar Todimala <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
Hi Folks,
I am tyring access RMI over SSL authentication that extends
Activatable class rather UnicastRemoteObject.
I could find the documentation for RMI over SSL authentication at
http://www.cs.columbia.edu/~akonstan/rmi-ssl/ And it works fine.
But I could not find much documentation for RMI extending Activatable class.
I am getting the following Error;
$ rmiregistry &
$ rmid -J-Djavax.net.ssl.trustStore=server.keystore
-J-Djavax.net.ssl.keyStore=server.keystore
-J-Djavax.net.ssl.keyStorePassword=server &
$ java -Djavax.net.ssl.trustStore=server.keystore
-Djavax.net.ssl.keyStore=server.keystore
-Djavax.net.ssl.keyStorePassword=server SetupServer
Registering secure RMI socket factory ...
Exception in thread "main" java.rmi.activation.ActivationException:
unable to obtain ActivationSystem; nested exception is:
java.rmi.ConnectIOException: error during JRMP connection
establishment; nested exception is:
javax.net.ssl.SSLHandshakeException: Remote host closed
connection during handshake
at java.rmi.activation.ActivationGroup.getSystem(ActivationGroup.java:453)
at SetupServer.main(SetupServer.java:45)
Caused by: java.rmi.ConnectIOException: error during JRMP connection
establishment; nested exception is:
javax.net.ssl.SSLHandshakeException: Remote host closed
connection during handshake
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:274)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:84)
at java.rmi.activation.ActivationGroup.getSystem(ActivationGroup.java:449)
... 1 more
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed
connection during handshake
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA12275)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
at java.io.DataOutputStream.flush(DataOutputStream.java:101)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
... 6 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA12275)
... 14 more
Did anybody try this. Can somebody help with some information.
--
Ajay Kumar Todimala
University of Nebraska - Lincoln.
===========================================================================
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