ClassNotFoundException: xxx_stub og Visual Age 4.0!
Hejsa alle sammen...Jeg har et lille problem med noget RMI som jeg tænkte at nogen herinde måske kendte til / havde været ude for.
Jeg har taget Javas Tutotrial ang. RMI importeret den i VA. Jeg har sat mine rettigheder og har lavet en _stub klasse med VA\'s tool-> Generate RMI -> JDK 1.2 stub/skel.
Alt ser ud som det skal, RMIregi\'en er startet på den rigtige port.
Har prøvet både under Windows XP og Win2K
MEN den kommer med nedenstående fejl.
Får den samme fejl ligegyldigt hvilket anden Java program med RMI jeg køre..
100 point et klap på skulderen og en kold bajer til den der har en løsning.
-Mads
RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: engine.ComputeEngine_Stub
java.lang.ClassNotFoundException: engine.ComputeEngine_Stub
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.ClassNotFoundException(java.lang.String)
int java.io.ObjectInputStream.inputObject(boolean)
java.lang.Object java.io.ObjectInputStream.readObject(boolean)
java.lang.Object java.io.ObjectInputStream.readObject()
java.lang.Object sun.rmi.server.UnicastRef.unmarshalValue(java.lang.Class, java.io.ObjectInput)
void sun.rmi.server.UnicastServerRef.dispatch(java.rmi.Remote, java.rmi.server.RemoteCall)
java.lang.Object sun.rmi.transport.Transport$1.run()
java.lang.Object java.security.AccessController.doPrivileged(java.security.PrivilegedExceptionAction, java.security.AccessControlContext)
boolean sun.rmi.transport.Transport.serviceCall(java.rmi.server.RemoteCall)
void sun.rmi.transport.tcp.TCPTransport.handleMessages(sun.rmi.transport.Connection, boolean)
void sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run()
void java.lang.Thread.run()
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: engine.ComputeEngine_Stub
java.lang.ClassNotFoundException: engine.ComputeEngine_Stub
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.ClassNotFoundException(java.lang.String)
int java.io.ObjectInputStream.inputObject(boolean)
java.lang.Object java.io.ObjectInputStream.readObject(boolean)
java.lang.Object java.io.ObjectInputStream.readObject()
java.lang.Object sun.rmi.server.UnicastRef.unmarshalValue(java.lang.Class, java.io.ObjectInput)
void sun.rmi.server.UnicastServerRef.dispatch(java.rmi.Remote, java.rmi.server.RemoteCall)
java.lang.Object sun.rmi.transport.Transport$1.run()
java.lang.Object java.security.AccessController.doPrivileged(java.security.PrivilegedExceptionAction, java.security.AccessControlContext)
boolean sun.rmi.transport.Transport.serviceCall(java.rmi.server.RemoteCall)
void sun.rmi.transport.tcp.TCPTransport.handleMessages(sun.rmi.transport.Connection, boolean)
void sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run()
void java.lang.Thread.run()
java.rmi.RemoteException: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: engine.ComputeEngine_Stub
java.lang.ClassNotFoundException: engine.ComputeEngine_Stub
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.ClassNotFoundException(java.lang.String)
int java.io.ObjectInputStream.inputObject(boolean)
java.lang.Object java.io.ObjectInputStream.readObject(boolean)
java.lang.Object java.io.ObjectInputStream.readObject()
java.lang.Object sun.rmi.server.UnicastRef.unmarshalValue(java.lang.Class, java.io.ObjectInput)
void sun.rmi.server.UnicastServerRef.dispatch(java.rmi.Remote, java.rmi.server.RemoteCall)
java.lang.Object sun.rmi.transport.Transport$1.run()
java.lang.Object java.security.AccessController.doPrivileged(java.security.PrivilegedExceptionAction, java.security.AccessControlContext)
boolean sun.rmi.transport.Transport.serviceCall(java.rmi.server.RemoteCall)
void sun.rmi.transport.tcp.TCPTransport.handleMessages(sun.rmi.transport.Connection, boolean)
void sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run()
void java.lang.Thread.run()
void sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(java.lang.Exception)
void sun.rmi.transport.StreamRemoteCall.executeCall()
java.lang.Object sun.rmi.server.UnicastRef.invoke(java.rmi.Remote, java.lang.reflect.Method, java.lang.Object [], long)
void sun.rmi.registry.RegistryImpl_Stub.rebind(java.lang.String, java.rmi.Remote)
void java.rmi.Naming.rebind(java.lang.String, java.rmi.Remote)
void engine.ComputeEngine.main(java.lang.String [])