From owner-freebsd-java Sun Jun 23 20:36:44 2002 Delivered-To: freebsd-java@freebsd.org Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93]) by hub.freebsd.org (Postfix) with ESMTP id 18D3C37B407 for ; Sun, 23 Jun 2002 20:36:22 -0700 (PDT) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by serenity.mcc.ac.uk with esmtp (Exim 2.05 #6) id 17MKeL-000KpJ-00 for freebsd-java@freebsd.org; Mon, 24 Jun 2002 04:36:21 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.11.6/8.11.1) id g5O3aLr29799 for freebsd-java@freebsd.org; Mon, 24 Jun 2002 04:36:21 +0100 (BST) (envelope-from jcm) Date: Mon, 24 Jun 2002 04:36:21 +0100 From: j mckitrick To: freebsd-java@freebsd.org Subject: Frustrating Java RMI problem, reprise Message-ID: <20020624043621.A29670@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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. jm -- Java on a laptop: the JIT hits the fan. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message