| Author |
java.rmi.UnMarshalException
|
ariel javier
Greenhorn
Joined: May 17, 2005
Posts: 3
|
|
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
Joined: Oct 18, 2000
Posts: 4121
|
|
|
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.
|
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
|
 |
ariel javier
Greenhorn
Joined: May 17, 2005
Posts: 3
|
|
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
Joined: Oct 18, 2000
Posts: 4121
|
|
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.)
|
 |
 |
|
|
subject: java.rmi.UnMarshalException
|
|
|