File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes java.rmi.UnMarshalException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "java.rmi.UnMarshalException" Watch "java.rmi.UnMarshalException" New topic
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.)
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java.rmi.UnMarshalException
 
Similar Threads
executeQuery() issue?
ResultSet
delete tag
Can not be get and set values from the database
a basic question