[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-ssl] NullPointerException (RMI/SSL/SimpleClient)



 
Hi!

During our attempt to evaluate iSaSiLk Toolkit we  got some problems with securing the RMI in an application.
Code for the application we used its to be had at http/:www.sics.se/~larre/rmi/
The only changes in the code we have done are adding the two lines :

demo.rmi.SSLRMIUtil.setSSLSocketFactory(true, true)          in SimpleServer
demo.rmi.SSLRMIUtil.setSSLSocketFactory(true, false)         in SimpleClient

 ( except import... and classpath settings ), as you recommend in the
iSaSiLk 3.0 and RMI Notes.

We start as follows:
-        java demo.rmi.SSLRMIUtil      from a DOS-window, no problem
-       java SimpleServer                     from another window, no problem
-       java SimpleClient clientNamn    from the third window,
and then we got the error message:
 

C:\RMITest2_SSL>java SimpleClient clientNamn
***                                                                      ***
***             Welcome to the IAIK SSL (iSaSiLk) Library                ***
***                                                                      ***
....bla-bla-bla...

** Please make sure you have setup RMI correctly for this demo, see rmi.html **

Initializing KeyStore...
Creating new SSL server socket on port 0...
java.lang.NullPointerException
        at demo.rmi.SSLRMISocketFactory.createServerSocket(Unknown Source)
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:550)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:186)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:158)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:323)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:123)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:118)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:102)
        at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:276)
        at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:180)
        at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:158)
        at SimpleClient.start(SimpleClient.java:30)
        at SimpleClient.main(SimpleClient.java:50)

If somebody have any ideas  what's wrong?

There were  problems neither  running  the RMI demo (iSaSiLk) nor
the RMI application at  http/:www.sics.se/~larre/rmi/...

We tried to locate the error and  we suppose that it's something wrong with the line
UnicastRemoteObject.exportObject(this);

 Thanks for the help
 Katarina Olsson and Svetlana Golitsyna,
                            WIP, Sweden

***************************************************************************
*                                                                         *
* IAIK S/MIME Mapper Security Info                                        *
* ===================================                                     *
*                                                                         *
* for message:                                                            *
*   From: Svetlana Golitsyna <t97sgo@student.hk-r.se>                     *
*   Date: Wed, 17 May 2000 15:04:12 +0200                                 *
*   Subject: [iaik-ssl] NullPointerException (RMI/SSL/SimpleClient)       *
*                                                                         *
* Message S/MIME properties:                                              *
*                                                                         *
*   Encrypted using:    not encrypted                                     *
*                                                                         *
*   Digitally signed:   no                                                *
*   Signature valid:    n/a                                               *
*   Signature trusted   n/a                                               *
*                                                                         *
*                                                                         *
* Compliance with policy for email addresses *:                           *
*                                                                         *
*   Encryption:         OK (None or better required)                      *
*                                                                         *
*   Digital Signature:  OK (digital signature not required)               *
*                                                                         *
***************************************************************************