• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.rmi.UnMarshalException  RSS feed

 
ariel javier
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i created a method that will return a Resultset, when i'm call the method that will return resultset the exceptions show.
please help i only want to display record in my client using rmi application tnks
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ResultSet interface doesn't extend Serialiazable, which is why you're getting that exception. The usual way around this is to fill in some kind of Serialazable Collection class with the data that you want out of the ResultSet and return it instead of the ResultSet itself.
 
ariel javier
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir,

thanks for your reply, actually that is also my idea how to solve it. please give me an example how to the code :-)
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a really small generic code example in the answer to this question on JGuru.

(And before you ask about the RowSet comment below the answer - it's not really 100% accurate.)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!