• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

RMI problem please give me a hand

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 319
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Theo van Loon
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...) ;-)
 
Jacques Bosch
Ranch Hand
Posts: 319
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Theo van Loon
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Jacques Bosch
Ranch Hand
Posts: 319
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cool. My brother stays in Germany.
Sounds great. Only one problem left then. I don't drink beer.
J
 
Men call me Jim. Women look past me to this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic