Announcement Announcement Module
No announcement yet.
RMI Server failing on ClassNotFoundException: RmiInvocationHandler Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • RMI Server failing on ClassNotFoundException: RmiInvocationHandler

    I am using spring rmi (version 3.2.1) and trying to connect to a remote rmiregistry ("remote" in the sense that it is not embedded, the rmi registry runs on the same node but as a different process).

    I get this error when trying to start rmi server:

    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: org.springframework.remoting.rmi.RmiInvocationHand ler
    at sun.rmi.server.UnicastServerRef.oldDispatch(Unicas
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe
    at sun.rmi.transport.Transport$ 77)
    at sun.rmi.transport.Transport$ 74)
    at Method)
    at sun.rmi.transport.Transport.serviceCall(Transport. java:173)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run0(
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$ (
    at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(
    at sun.rmi.transport.StreamRemoteCall.executeCall(Str
    at sun.rmi.server.UnicastRef.invoke( 78)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at org.springframework.remoting.rmi.RmiServiceExporte r.prepare(