Salve galera,
tenho alguns objetos em List e HashTable e preciso processar em médodos no servidor são os seguintes métodos:
Hashtable createDevice( Hashtable devices, String deviceName) throws RemoteException;
List createService( List services, String serviceName, int parentId ) throws RemoteException;
Bem quando eu executo estes métodos tenho as seguintes mensagens de erros:
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.util.Hashtable$EmptyEnumerator
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:157)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
at java.rmi.server.RemoteObjectInvocationHandler.invoke.
...
Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.util.Hashtable$EmptyEnumerator
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1303)
at java.io.ObjectInputStream.readObject
...
... 31 more
Caused by: java.io.NotSerializableException: java.util.Hashtable$EmptyEnumerator
at java.io.ObjectOutputStream.writeObject0
...
Nota: implementei a inteface java.io.Serializable para as classes cliente e servidor
o que pode ser feito?
:pensativo: