hi ,
i have the following exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: useful.network.bootstrap.RMIServerBootstrap_Stub
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
..........
ok i've really struggled to solve this but nothing seems to work..
i have both the server and the client on the same machine( am using mandrake linux and java 1.5.0)
i launched the rmiregistry on a different shell after setting classpath to null i.e:export CLASSPATH=""
i then compiled everything using : javac -classpath . <filename.java>
i then run rmic ,then did
java -Djava.rmi.server.codebase=file:///eric/dess/system/sysd/useful/network/bootstr ap/ -Djava.security.policy=permission test
but got the above error..
i think its the rmiregistry which can't locate the stub class file which is found here, /home/eric/dess/system/sysd/useful/network/bootstrap/RMIServerBootstrap_Stub.cl ***,
yet i'm convinced that the classpath is well set (at first i din't think i needed to set the codebase since all my files are on the same machine ) and so is the codebase variable,
pliz if someone could help ,i just dont have any more ideas ,thanks in advance
i have the following exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: useful.network.bootstrap.RMIServerBootstrap_Stub
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
..........
ok i've really struggled to solve this but nothing seems to work..
i have both the server and the client on the same machine( am using mandrake linux and java 1.5.0)
i launched the rmiregistry on a different shell after setting classpath to null i.e:export CLASSPATH=""
i then compiled everything using : javac -classpath . <filename.java>
i then run rmic ,then did
java -Djava.rmi.server.codebase=file:///eric/dess/system/sysd/useful/network/bootstr ap/ -Djava.security.policy=permission test
but got the above error..
i think its the rmiregistry which can't locate the stub class file which is found here, /home/eric/dess/system/sysd/useful/network/bootstrap/RMIServerBootstrap_Stub.cl ***,
yet i'm convinced that the classpath is well set (at first i din't think i needed to set the codebase since all my files are on the same machine ) and so is the codebase variable,
pliz if someone could help ,i just dont have any more ideas ,thanks in advance