ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Franz, Paul" <>
Subject RE: RMI problem with Ant
Date Tue, 09 Jul 2002 10:44:42 GMT
Ah. I see the problem. Since it is an inner class it is also trying to
serialize the outer class, since there is an implicit reference to it unless
the inner class is a static class. (e.g. protected static class

Paul Franz

-----Original Message-----
From: Binu []
Sent: Monday, July 08, 2002 10:54 AM
To: Ant Users List;
Subject: AW: RMI problem with Ant

Thanks very much for the reply.

    As I was going through the problem, I found out that this happens only
with the innerclasses. When the innerclass is serialized is thrown. It should be noted that only
the innerclass is implementing the Serializable interface. And I serialize
only the innerclass. Does that make any difference for Ant.

For the normal classes there is no problem with the serialization.


-----Ursprungliche Nachricht-----
Von: Thomas Zander []
Gesendet: Freitag, 5. Juli 2002 21:50
An: Binu
Betreff: Re: RMI problem with Ant

On Thu, Jul 04, 2002 at 01:15:55PM +0200, Binu wrote:
> Hi,
>  I have a problem with RMI when I use Ant. If I compile my project with
> JBuilder I have no problem in running the project. But when I use Ant
> eventhough the stubs are created properly I get a
> when running the application. This
> for my first RMI call.
> Any body knows why it is happening ?

My best guess is that the class you are trying to serialize is retrieved
a different jar or classpath in your JBuilder environment and in the ant

Take a look if you have a stale jar lying around which contains the class.
Just remove all .class files and jar files that are generated and start you

If this fails maybe the class is supplied in JBuilder as a different

I never used RMI, but have seen the above happen some times, so excuse my
if it totally missed the mark :)

Thomas Zander
                                                 We are what we pretend to

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message