Forums Register Login
why can not find the Stub Class???
when i run an rmi example:
my current directory is xx\jj.
and the remote interface file ,the implemation file of it are also at the directory(xx\jj)
in a console windows:
xx\jj>rmic -v1.2 aImp ,so get the Stub class file named aImp_Stub.class.
then,in another console windows to run the rmiregistry
it is ok printing the bellow information :
security properties not found. using defaults.
then in another console window to run rumServer to try to bind the remote object
xx\jj>java aImpServer
but get the bellow information and fail to bind:

Server RemoteException; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: aImpl_Stub
why ?? who can help me?thank you!!
what is more:
if i load the aImp_stub in a classLoader,it can find it and load,no error occurs!
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
Rocket Oven Kickstarter - from the trailboss

This thread has been viewed 634 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 22, 2018 22:20:02.