Announcement Announcement Module
No announcement yet.
Remoting Using RMI Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remoting Using RMI

    Hi All,

    When I am passing a String object as parameter to the RMI stub then the remote call is working fine. But when I pass a user defined object(holding the String) then the following exception is thrown(related to unsuccessful unmarshalling). Any thoughts on this.

    SEVERE: Servlet.service() for servlet smallapp threw exception
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: cms.web.client.Message (no security manager: RMI class loader disabled)
    at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
    at sun.rmi.transport.Transport$ Source)
    at Method)
    at sun.rmi.transport.Transport.serviceCall(Unknown Source)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages( Unknown Source)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl Source)
    at Source)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(Unknown Source)
    at sun.rmi.transport.StreamRemoteCall.executeCall(Unk nown Source)
    at sun.rmi.server.UnicastRef.invoke(Unknown Source)
    at org.springframework.remoting.rmi.RmiInvocationWrap per_Stub.invoke(Unknown Source)
    at org.springframework.remoting.rmi.RmiClientIntercep tor.doInvoke(
    at org.springframework.remoting.rmi.RmiClientIntercep tor.doInvoke(
    at org.springframework.remoting.rmi.RmiClientIntercep tor.invoke(
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed( :185)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(
    at $Proxy1.delegate(Unknown Source)
    at cms.web.client.DispatcherServ.callService(Dispatch

  • #2
    The class you are propagating must be known at the server and the client side. String is known, as it is part of the JDK. The exception indicates, that the client tries to unmarshal your argument but does not know the class to instantiate from the received data.



    • #3
      pls look at my post at

      I have resolved this problem