Results 1 to 3 of 3

Thread: RMI method not found

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Location
    London
    Posts
    500

    Default RMI method not found

    Trying to use the nice rmi feature in SI but get an error:

    No matching RMI stub method found

    Code:
    Caused by: org.springframework.remoting.RemoteProxyFailureException: No matching RMI stub method found for: public abstract org.springframework.integration.core.Message org.springframework.integration.adapter.RemoteMessageHandler.handle(org.springframework.integration.core.Message); nested exception is java.lang.NoSuchMethodException: org.springframework.remoting.rmi.RmiInvocationWrapper_Stub.handle(org.springframework.integration.core.Message)
    	at org.springframework.remoting.rmi.RmiClientInterceptorUtils.invokeRemoteMethod(RmiClientInterceptorUtils.java:122)
    	at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:363)
    	at org.springframework.remoting.rmi.RmiClientInterceptor.invoke(RmiClientInterceptor.java:259)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    	at $Proxy117.handle(Unknown Source)
    	at org.springframework.integration.adapter.AbstractRemotingOutboundGateway.handleRequestMessage(AbstractRemotingOutboundGateway.java:63)
    	... 68 more
    Caused by: java.lang.NoSuchMethodException: org.springframework.remoting.rmi.RmiInvocationWrapper_Stub.handle(org.springframework.integration.core.Message)
    	at java.lang.Class.getMethod(Class.java:1605)
    	at org.springframework.remoting.rmi.RmiClientInterceptorUtils.invokeRemoteMethod(RmiClientInterceptorUtils.java:114)
    Last edited by jamesclinton; Aug 4th, 2010 at 08:54 AM.
    Regards,
    James

  2. #2
    Join Date
    Jul 2006
    Location
    London
    Posts
    500

    Default

    Solved.

    Problem due to an old version of Spring 1.2.7 on the classpath.
    Regards,
    James

  3. #3
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,854

    Default

    James, Glad you found the problem, and thanks for letting us know.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •