From owner-freebsd-java Tue Jun 18 16:58:55 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 A355137B400 for ; Tue, 18 Jun 2002 16:58:50 -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 17KSs5-000IuZ-00 for freebsd-java@freebsd.org; Wed, 19 Jun 2002 00:58:49 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.11.6/8.11.1) id g5INwnB82865 for freebsd-java@freebsd.org; Wed, 19 Jun 2002 00:58:49 +0100 (BST) (envelope-from jcm) Date: Wed, 19 Jun 2002 00:58:48 +0100 From: j mckitrick To: freebsd-java@freebsd.org Subject: Inconsistent RMI call problem Message-ID: <20020619005848.A82823@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 I have a little calculator applet that uses RMI calls to a compute server engine. What is driving me nuts is the RMI stubs don't always seem to work. Sometimes they do, the next compile (with no change to the source) they don't. Here is some relevant output: local:~> rmiregistry& [1] 6623 local:~> cd myjava local:~/myjava> javac engine/ComputeEngine.java local:~/myjava> rmic engine.ComputeEngine 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 java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: engine.ComputeEngine_Stub java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: engine.ComputeEngine_Stub java.lang.ClassNotFoundException: engine.ComputeEngine_Stub at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java, Compiled Code) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java, Compiled Code) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java, Compiled Code) at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) at java.rmi.Naming.rebind(Naming.java, Compiled Code) at engine.ComputeEngine.main(ComputeEngine.java, Compiled Code) Engine ready. ^C local:~/myjava> alias comp comp='java -Djava.security.policy=java.policy -Djava.rmi.server.cobebase=. engine.ComputeEngine' local:~/myjava> cat java.policy grant { permission java.security.AllPermission; }; local:~/myjava> Sorry for the long lines. As I said before, this is totally inconsistent, as far as I can tell. I haven't changed the source at all, and I usually run in the same directory all the time. Any ideas? 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