Date: Wed, 19 Jun 2002 00:58:48 +0100 From: j mckitrick <jcm@FreeBSD-uk.eu.org> To: freebsd-java@freebsd.org Subject: Inconsistent RMI call problem Message-ID: <20020619005848.A82823@dogma.freebsd-uk.eu.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020619005848.A82823>