rmi seems to go fine but when i run my client i receive the following exception : java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: suncertify.db.FieldInfo at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:164) at suncertify.server.DatabaseRMIImpl_Stub.getFields(Unknown Source) at suncertify.client.ContractorTableModel.<init>(ContractorTableModel.java:33) at suncertify.client.Client.init(Client.java:114) at suncertify.client.Client.<init>(Client.java:93) at suncertify.client.BodgittAndScarper.main(BodgittAndScarper.java:40) Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: suncertify.db.FieldInfo at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278) at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:297) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:146) ... 5 more Caused by: java.io.NotSerializableException: suncertify.db.FieldInfo at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:265) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:271) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:534) java.lang.IllegalArgumentException: Cannot set a null TableModel at javax.swing.JTable.setModel(JTable.java:2706) at suncertify.client.Client.init(Client.java:127) at suncertify.client.Client.<init>(Client.java:93) at suncertify.client.BodgittAndScarper.main(BodgittAndScarper.java:40) Can someone please help me?
Does the object you are trying to pass over RMI impliment Serializable? Looks like it is your FieldInfo class. Anything that goes over RMI has to be Serializable. J
Jacques how can i ever thank you?! You are helping me out big time!! When i pass you can have some beers at my place!! (don't know where you live but it's all in the gesture...) ;-)
So I take it you got it sorted out then? It's my BIG pleasure.
(don't know where you live but it's all in the gesture...) ;-)
Thanx man... I live all the way over in South Africa. Actually, I live right here and you guys live all the way over there.. Where do you live? U.S.? State?
I live all the way in Europe in the Netherlands, but i'll keep those beers cold for you when you come over to visit Europe one day!! [ March 29, 2004: Message edited by: Theo van Loon ]