A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
Error returning object from Remote method
Joined: Sep 26, 2005
Nov 15, 2005 02:33:00
I am trying to pass a
to a remote method and return an object of a user defined class. In the process i am getting the following error.
Exception in thread "main"
: call return failed: ; nested exception is:
: Exception thrown during writing of stream;
could u tell me where i am going wrong? also is this allowed in RMI? If not, whats the work around?
Thanks in advance.
Joined: Sep 19, 2005
Nov 15, 2005 07:02:00
The message says it all:
Any Class you wish to pass to or from an RMI Server must implement the Serializable interface.
There are many examples of how to do this in the tutorials.
Ed's latest article: A Java Parallel Calamity
I agree. Here's the link:
subject: Error returning object from Remote method
Arguments / Return values for a Remote Method
RMI:at client side getting exceptrion like java.io.NotSerializableException
Returning ResultSet from Bean class to client
Error: cannot narrow to remote object
standard error messaging in jax-ws
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015