Date: Mon, 24 Jun 2002 17:37:25 +1200 From: Jonathan Chen <jonc@chen.org.nz> To: j mckitrick <jcm@FreeBSD-uk.eu.org> Cc: freebsd-java@FreeBSD.ORG Subject: Re: Frustrating Java RMI problem, reprise Message-ID: <20020624053725.GA93880@grimoire.chen.org.nz> In-Reply-To: <20020624043621.A29670@dogma.freebsd-uk.eu.org> References: <20020624043621.A29670@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 24, 2002 at 04:36:21AM +0100, j mckitrick wrote:
> 
> This problem has me pulling my hair out.  Here's a cut and paste of a
> sample run.  I started rmiregistry, then 'comp' which is an alias to run
> the correct class.  It threw the exception.  I broke out of rmiregistry,
> ran it again, and ran my class again, and it worked.  Any idea why this
> might happen?  Could there be a huge delay in the code somewhere where a
> port isn't getting bound quickly enough?
> 
> local:~/myjava> comp
> ComputeEngine exception: RemoteException occurred in server thread;
> nested exception is: 
> java.rmi.UnmarshalException: error unmarshalling arguments;
> nested exception is: 
> java.lang.ClassNotFoundException:
> engine.ComputeEngine_Stub
> local:~/myjava> 
> local:~/myjava> fg
> [1]  + running    rmiregistry
> (pwd : ~)
> ^C
> (pwd now: ~/myjava)
> local:~/myjava> rmiregistry&
> [1] 377
> local:~/myjava> comp
> Ready.
From the trace above, my guess is the rmiregistry needs to have it's
classpath set properly as well. That's why when you ran it in
~/myjava, the code worked (classpath by default includes . in its
environment).
Cheers.
-- 
Jonathan Chen <jonc@chen.org.nz>                    Once is dumb luck.
                                                 Twice is coincidence.
             Three times and Somebody Is Trying To Tell You Something.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020624053725.GA93880>
