NoSuchObjectException when starting from a jar

Hi,

I'have got a client/server application that runs very fine when it stats whith eclipse IDE. But when I start my server with command line java -jar .. , server start fine but client can not connect to it : i'hve got the following exception :

java.rmi.NoSuchObjectException: no such object in table

at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)

at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)

at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)

at com.axway.xpp.server.engine.XPPCertStoreEngine_Stub.isAdmin(XPPCertStoreEngine_Stub.java:180)

at com.axway.xpp.admin.XPPCertStoreAdmin.getInstance(XPPCertStoreAdmin.java:75)

... 25 more

NB: rmiregistry is starting in the server with the following code :

try {

System.out.print("RMIRegistry :\t\t\t");

LocateRegistry.createRegistry(1099);

System.out.println(" OK");

} catch (Exception e) {

this.error = 3;

return false;

}

Yours anwsers are welcome

[1094 byte] By [tjm3] at [2007-9-30 17:20:41]
# 1

i think your code that you mention has no problem. but in other part

here is some tips for that kind of exception

A NoSuchObjectException is thrown if an attempt is made to invoke a method on an object that no longer exists in the remote virtual machine. If a NoSuchObjectException occurs attempting to invoke a method on a remote object, the call may be retransmitted and still preserve RMI's "at most once" call semantics. A NoSuchObjectException is also thrown by the method java.rmi.server.RemoteObject.toStub and by the unexportObject methods of java.rmi.server.UnicastRemoteObject and java.rmi.activation.Activatable and

wynnhtun at 2007-7-6 13:43:35 > top of Java-index,Core,Core APIs...
# 2
My exception seems very trange. Indeed, when I'm using SSL, I've got it, but when SSL is not used, NoSuchObjectException is not thrown. Do you have an idea about that problem.
tjm3 at 2007-7-6 13:43:35 > top of Java-index,Core,Core APIs...