[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Error handling in RMI server code

From: Jeroen Frijters
Subject: RE: Error handling in RMI server code
Date: Mon, 20 Sep 2004 14:07:16 +0200


Thanks. I've applied your fix.


> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden On 
> Behalf Of Ilya Perminov
> Sent: Monday, September 13, 2004 20:46
> To: address@hidden
> Subject: Error handling in RMI server code
> Hi,
> The RMI server code does not propagate Errors to RMI clients.
> I found why. There are two bugs:
> 1. UnicastServerRef.incomingMessageCall casts 
>    InvocationTargetException.getTargetException () to Exception. 
>    It fails when getTargetException () returns an Error.
> 2. UnicastServer.incomingMessageCall does not have a handler 
> for Errors.
>    According to RMI spec. Errors in a remote method should be caught,
>    wrapped in ServerError and send to the client.
> I fixed these bugs. A patch is attached. Can somebody apply it?
> Also, please close my bug report
> Regards, 
> Ilya

reply via email to

[Prev in Thread] Current Thread [Next in Thread]