[Logo]
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
xx\jj>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!
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Oct 23, 2017 04:36:19.