aspose file tools*
The moose likes Distributed Java and the fly likes RMI + SSL problem on GCJ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI + SSL problem on GCJ" Watch "RMI + SSL problem on GCJ" New topic
Author

RMI + SSL problem on GCJ

Maciej Górski
Greenhorn

Joined: May 07, 2009
Posts: 1
Hello,

I'm trying to set up RMI server on GCJ java with SLL and it causes the following problem on start (with Sun Java it works fine):

java.lang.NullPointerException
at java.net.ServerSocket.implAccept(libgcj.so.90)
at gnu.javax.net.ssl.provider.SSLServerSocketImpl.accept(libgcj.so.90)
at gnu.javax.net.ssl.provider.SSLServerSocketImpl.accept(libgcj.so.90)
at gnu.java.rmi.server.UnicastConnectionManager.getServerConnection(libgcj.so.90)
at gnu.java.rmi.server.UnicastConnectionManager.run(libgcj.so.90)
at java.lang.Thread.run(libgcj.so.90)

I've been trying to find the cause for few hours already, but nothing seems to work.
Sources ( http://przeklej.pl/plik/sslrmi-zip-0001jb08v03p ) are very short and most of it is from http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/samples/index.html
I just modified RMISSLServerSocketFactory.java so it gets correct keystore type and factory algorithm for both Sun Java (SunX509, JKS) and GCJ (JessieX509, GKR).

Any help is appreciated.
Best regards,
mg6maciej
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: RMI + SSL problem on GCJ
 
Similar Threads
How to compile hello world in eclipse?
To Mr Chris De Vries
Applets on Linux
RMI Problem on java under Linux
Java.rmi.RemoteException