-
1. Re: Secure Communication Methods
faygo Jul 13, 2004 11:39 AM (in response to faygo)I believe "RMI over SSL" is the ketwords I was missing. Does anyone have sample code for a client application. I am getting this error.
[java] Created LoginContext
[java] getDatabase() - Caught an exception.
[java] java.rmi.ConnectIOException: Exception creating connection to: 192.168.40.43; nested exception is:
[java] java.net.SocketException: Default SSL context init failed: null
[java] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:580)
[java] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
[java] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
[java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
[java] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
[java] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
[java] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
[java] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
[java] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
[java] at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)
[java] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
[java] at $Proxy0.create(Unknown Source)
[java] at com.oasis.timecard.client.TimecardClient.getDatabase(Unknown Source)
[java] at com.oasis.timecard.client.TimecardClient.main(Unknown Source)
[java] Caused by: java.net.SocketException: Default SSL context init failed: null
[java] at javax.net.ssl.DefaultSSLSocketFactory.createSocket(DashoA6275)
[java] at org.jboss.security.ssl.RMISSLClientSocketFactory.createSocket(RMISSLClientSocketFactory.java:46)
[java] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
[java] ... 13 more -
2. Re: Secure Communication Methods
faygo Jul 20, 2004 11:48 AM (in response to faygo)The problem was a incorrectly created keystore.