|
 |
j2ee thread: rmi exception
Message #1 by "Alan Bradbury" <alanbrad@o...> on Sun, 17 Nov 2002 12:08:11 -0000
|
|
Thanks for the extra info. May take a look myself!
ALan
----- Original Message -----
From: "Helen and Colin" <helen.colin@b...>
To: "Java 2 Enterprise Edition" <j2ee@p...>
Sent: Monday, November 18, 2002 12:30 AM
Subject: [j2ee] RE: rmi exception
> Thanks for the reply, I'm glad it now works.
>
> I've just finished an HND in computing, which only touched on RMI. I'm
now
> topping up to a Bsc in IT.
>
> I've been working through 'Java Server Programming J2EE Edition', by Wrox.
> This book has been excellent and I thoroughly recommend it, it covers RMI
in
> great detail - there is now a newer edition devoted to JDK1.3.
>
> Cheers
> Colin
>
>
> -----Original Message-----
> From: Alan Bradbury [mailto:alanbrad@o...]
> Sent: 17 November 2002 21:09
> To: Java 2 Enterprise Edition
> Subject: [j2ee] RE: rmi exception
>
>
> Works perfectly now. The answers that are right in front of you are always
> the hardest to find! I wasn't aware of the fact that Seriaizable had to be
> implemented for objects to be used in RMI calls. Something the OU seem to
> have missed in their course.
>
> Thanks for your help
> Alan
>
>
> ----- Original Message -----
> From: "Helen and Colin" <helen.colin@b...>
> To: "Java 2 Enterprise Edition" <j2ee@p...>
> Sent: Sunday, November 17, 2002 3:42 PM
> Subject: [j2ee] RE: rmi exception
>
>
> > I'm by no means an expert!
> >
> > However, the message reports that the Customer class is aborted because
it
> > is not Serializable. Implement Serializable to the Customer class and
see
> > if that works (any object other than primitive type must be serialized
> > before they can be transmitted using RMI).
> >
> > Hope that helps.
> >
> > Cheers
> > Colin
> >
> >
> > -----Original Message-----
> > From: Alan Bradbury [mailto:alanbrad@o...]
> > Sent: 17 November 2002 12:08
> > To: Java 2 Enterprise Edition
> > Subject: [j2ee] rmi exception
> >
> >
> > I register a server with an object but thew remote client is unable to
> > receive this object with the following exception:
> >
> > java.rmi.UnmarshalledException: error unmarshalling return; nested
> exception
> > is:
> > java.io.WriteAbortedException: Writing aborted by exception;
> > java.io.NotSerializableException: Customer
> >
> > The remote object (Customers) method invoked returns a Customer instance
> > from a Vector. Both server and Client have the Customer class.
> >
> > Any ideas
> >
> > Thanx
> > Alan
> >
> >
> >
> >
> >
>
>
>
>
>
>
|
|
 |