posted 18 years ago
I start my server with the following code, which works perfect,
it doesn't give an exception if I run the main method in this class.
If I try to run the client, i get the error.
one thing I have noted, the NotSerializableException does not
occur with the Registry.rebind invocation is that you invoke rebind on
a registry reference returned from LocateRegistry.createRegistry
I this situation I am using rmiregistry command.
Error:
HelloClient exception: error unmarshalling return; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.sun.ne
t.ssl.internal.ssl.SSLSocketFactoryImpl
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.sun.ne
t.ssl.internal.ssl.SSLSocketFactoryImpl
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at HelloClient.main(HelloClient.java:16)
Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.sun
.net.ssl.internal.ssl.SSLSocketFactoryImpl
at java.io.ObjectInputStream.readObject0(Unknown Source)
.......
I have listed all the remaining class.
Please let me know how can I fix this problem.
Thanks.