• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI/Serializable  RSS feed

 
Leo Tse
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a remote interface that I like to use with RMI, and one of the parameters to a method (i.e. methodX) in this interface is an Object. But since Object doesn't implement the Serializable interface, I'm getting java.io.NotSerializableException exception. And I can't really change the type of the paramter, because I'll be passing different objects to this method (methodX) such as String, and classes I created. Does anyone know of a solution around this problem? Any suggestions would be appreciated!
thanks.
- Leo
 
Hema Menon
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you got some replies from the other forum
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!