org.springframework.remoting.RemoteProxyFailureException: No matching RMI stub method found for: public abstract java.util.HashMap com.xxx.cwp.propertymgr.ejb.CwpPropertyManager.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO) throws java.rmi.RemoteException,com.xxx.cwp.CoreException&#59; nested exception is java.lang.NoSuchMethodException: com.xxx.cwp.propertymgr.ejb._CwpPropertyManager_Stub.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO)]: org.springframework.remoting.RemoteProxyFailureException: No matching RMI stub method found for: public abstract java.util.HashMap com.xxx.cwp.propertymgr.ejb.CwpPropertyManager.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO) throws java.rmi.RemoteException,com.xxx.cwp.CoreException; nested exception is java.lang.NoSuchMethodException: com.xxx.cwp.propertymgr.ejb._CwpPropertyManager_Stub.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO)

Spring JIRA | Grant Gochnauer | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 1

    I started converting over my non-jee namspace XML definitions for my remote EJB looksups to: <jee:remote-slsb jndi-name="cell/persistent/cwpServices/AcPropertyManager" business-interface="com.xxx.cwp.propertymgr.ejb.CwpPropertyManager" lookup-home-on-startup="true" id="cwpPropertyManager" /> from: <bean id="cwpPropertyManager" class="org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean"> <property name="jndiName" value="cell/persistent/cwpServices/AcPropertyManager"/> <!--<property name="jndiName" value="ejb/com/xxx/cwp/profilemgr/accuchek/ejb/AcProfileManagerHome"/>--> <property name="businessInterface" value="com.xxx.cwp.propertymgr.ejb.CwpPropertyManager"/> <property name="jndiEnvironment"> <props> <prop key="javax.naming.factory.initial">com.ibm.websphere.naming.WsnInitialContextFactory</prop> <prop key="javax.naming.provider.url">iiop://localhost:2809</prop> </props> </property> <property name="resourceRef" value="false"/> <property name="cacheHome" value="false"/> <property name="refreshHomeOnConnectFailure" value="true"/> <property name="homeInterface" value="com.xxx.cwp.propertymgr.ejb.CwpPropertyManagerHome"/> <property name="lookupHomeOnStartup" value="false"/> </bean> however when I use the jee namespace method I get this stacktrace: 6/08 22:31:17:878 GMT] 18c8f3a3 InternalGener I DSRA8206I: JDBC driver version : 10.2.0.3.0 [3/6/08 22:31:18:288 GMT] 18c8f3a3 WebGroup E SRVE0026E: [Servlet Error]-[Request processing failed&#59; nested exception is org.springframework.remoting.RemoteProxyFailureException: No matching RMI stub method found for: public abstract java.util.HashMap com.xxx.cwp.propertymgr.ejb.CwpPropertyManager.retrieveSiteLocaleProperties&#40;com.xxx.cwp.propertymgr.to.PropertyTO&#41; throws java.rmi.RemoteException,com.xxx.cwp.CoreException&#59; nested exception is java.lang.NoSuchMethodException: com.xxx.cwp.propertymgr.ejb._CwpPropertyManager_Stub.retrieveSiteLocaleProperties&#40;com.xxx.cwp.propertymgr.to.PropertyTO&#41;]: org.springframework.remoting.RemoteProxyFailureException: No matching RMI stub method found for: public abstract java.util.HashMap com.xxx.cwp.propertymgr.ejb.CwpPropertyManager.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO) throws java.rmi.RemoteException,com.xxx.cwp.CoreException; nested exception is java.lang.NoSuchMethodException: com.xxx.cwp.propertymgr.ejb._CwpPropertyManager_Stub.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO) at org.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke(RmiClientInterceptorUtils.java:115) at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:76) at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:140) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy10.retrieveSiteLocaleProperties(Unknown Source) at com.xxx.tool.promotion.web.usdrtv.controller.USDrtvRegistrationFormController.loadProperties(USDrtvRegistrationFormController.java:168) at com.xxx.tool.promotion.web.usdrtv.controller.USDrtvRegistrationFormController.referenceData(USDrtvRegistrationFormController.java:79) at org.springframework.web.servlet.mvc.AbstractFormController.showForm(AbstractFormController.java:574) at org.springframework.web.servlet.mvc.SimpleFormController.showForm(SimpleFormController.java:198) at org.springframework.web.servlet.mvc.SimpleFormController.showForm(SimpleFormController.java:175) at org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:338) at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:278) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) What's interesting is I do have another application running on WAS 5.1 that is using the jee short-hand notation with the SAME EJB and that works fine. I'm not sure why this one is having problems defining the EJB reference using the short-hand way when the long explicit way is working. I believe I ran into something like this with spring 2.5.1 where it was incorrectly looking at stub classes.

    Spring JIRA | 9 years ago | Grant Gochnauer
    org.springframework.remoting.RemoteProxyFailureException: No matching RMI stub method found for: public abstract java.util.HashMap com.xxx.cwp.propertymgr.ejb.CwpPropertyManager.retrieveSiteLocaleProperties&#40;com.xxx.cwp.propertymgr.to.PropertyTO&#41; throws java.rmi.RemoteException,com.xxx.cwp.CoreException&#59; nested exception is java.lang.NoSuchMethodException: com.xxx.cwp.propertymgr.ejb._CwpPropertyManager_Stub.retrieveSiteLocaleProperties&#40;com.xxx.cwp.propertymgr.to.PropertyTO&#41;]: org.springframework.remoting.RemoteProxyFailureException: No matching RMI stub method found for: public abstract java.util.HashMap com.xxx.cwp.propertymgr.ejb.CwpPropertyManager.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO) throws java.rmi.RemoteException,com.xxx.cwp.CoreException; nested exception is java.lang.NoSuchMethodException: com.xxx.cwp.propertymgr.ejb._CwpPropertyManager_Stub.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO)
  2. 0

    I started converting over my non-jee namspace XML definitions for my remote EJB looksups to: <jee:remote-slsb jndi-name="cell/persistent/cwpServices/AcPropertyManager" business-interface="com.xxx.cwp.propertymgr.ejb.CwpPropertyManager" lookup-home-on-startup="true" id="cwpPropertyManager" /> from: <bean id="cwpPropertyManager" class="org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean"> <property name="jndiName" value="cell/persistent/cwpServices/AcPropertyManager"/> <!--<property name="jndiName" value="ejb/com/xxx/cwp/profilemgr/accuchek/ejb/AcProfileManagerHome"/>--> <property name="businessInterface" value="com.xxx.cwp.propertymgr.ejb.CwpPropertyManager"/> <property name="jndiEnvironment"> <props> <prop key="javax.naming.factory.initial">com.ibm.websphere.naming.WsnInitialContextFactory</prop> <prop key="javax.naming.provider.url">iiop://localhost:2809</prop> </props> </property> <property name="resourceRef" value="false"/> <property name="cacheHome" value="false"/> <property name="refreshHomeOnConnectFailure" value="true"/> <property name="homeInterface" value="com.xxx.cwp.propertymgr.ejb.CwpPropertyManagerHome"/> <property name="lookupHomeOnStartup" value="false"/> </bean> however when I use the jee namespace method I get this stacktrace: 6/08 22:31:17:878 GMT] 18c8f3a3 InternalGener I DSRA8206I: JDBC driver version : 10.2.0.3.0 [3/6/08 22:31:18:288 GMT] 18c8f3a3 WebGroup E SRVE0026E: [Servlet Error]-[Request processing failed&#59; nested exception is org.springframework.remoting.RemoteProxyFailureException: No matching RMI stub method found for: public abstract java.util.HashMap com.xxx.cwp.propertymgr.ejb.CwpPropertyManager.retrieveSiteLocaleProperties&#40;com.xxx.cwp.propertymgr.to.PropertyTO&#41; throws java.rmi.RemoteException,com.xxx.cwp.CoreException&#59; nested exception is java.lang.NoSuchMethodException: com.xxx.cwp.propertymgr.ejb._CwpPropertyManager_Stub.retrieveSiteLocaleProperties&#40;com.xxx.cwp.propertymgr.to.PropertyTO&#41;]: org.springframework.remoting.RemoteProxyFailureException: No matching RMI stub method found for: public abstract java.util.HashMap com.xxx.cwp.propertymgr.ejb.CwpPropertyManager.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO) throws java.rmi.RemoteException,com.xxx.cwp.CoreException; nested exception is java.lang.NoSuchMethodException: com.xxx.cwp.propertymgr.ejb._CwpPropertyManager_Stub.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO) at org.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke(RmiClientInterceptorUtils.java:115) at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:76) at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:140) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy10.retrieveSiteLocaleProperties(Unknown Source) at com.xxx.tool.promotion.web.usdrtv.controller.USDrtvRegistrationFormController.loadProperties(USDrtvRegistrationFormController.java:168) at com.xxx.tool.promotion.web.usdrtv.controller.USDrtvRegistrationFormController.referenceData(USDrtvRegistrationFormController.java:79) at org.springframework.web.servlet.mvc.AbstractFormController.showForm(AbstractFormController.java:574) at org.springframework.web.servlet.mvc.SimpleFormController.showForm(SimpleFormController.java:198) at org.springframework.web.servlet.mvc.SimpleFormController.showForm(SimpleFormController.java:175) at org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:338) at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:278) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) What's interesting is I do have another application running on WAS 5.1 that is using the jee short-hand notation with the SAME EJB and that works fine. I'm not sure why this one is having problems defining the EJB reference using the short-hand way when the long explicit way is working. I believe I ran into something like this with spring 2.5.1 where it was incorrectly looking at stub classes.

    Spring JIRA | 9 years ago | Grant Gochnauer
    org.springframework.remoting.RemoteProxyFailureException: No matching RMI stub method found for: public abstract java.util.HashMap com.xxx.cwp.propertymgr.ejb.CwpPropertyManager.retrieveSiteLocaleProperties&#40;com.xxx.cwp.propertymgr.to.PropertyTO&#41; throws java.rmi.RemoteException,com.xxx.cwp.CoreException&#59; nested exception is java.lang.NoSuchMethodException: com.xxx.cwp.propertymgr.ejb._CwpPropertyManager_Stub.retrieveSiteLocaleProperties&#40;com.xxx.cwp.propertymgr.to.PropertyTO&#41;]: org.springframework.remoting.RemoteProxyFailureException: No matching RMI stub method found for: public abstract java.util.HashMap com.xxx.cwp.propertymgr.ejb.CwpPropertyManager.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO) throws java.rmi.RemoteException,com.xxx.cwp.CoreException; nested exception is java.lang.NoSuchMethodException: com.xxx.cwp.propertymgr.ejb._CwpPropertyManager_Stub.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO)

    Root Cause Analysis

    1. org.springframework.remoting.RemoteProxyFailureException

      No matching RMI stub method found for: public abstract java.util.HashMap com.xxx.cwp.propertymgr.ejb.CwpPropertyManager.retrieveSiteLocaleProperties&#40;com.xxx.cwp.propertymgr.to.PropertyTO&#41; throws java.rmi.RemoteException,com.xxx.cwp.CoreException&#59; nested exception is java.lang.NoSuchMethodException: com.xxx.cwp.propertymgr.ejb._CwpPropertyManager_Stub.retrieveSiteLocaleProperties&#40;com.xxx.cwp.propertymgr.to.PropertyTO&#41;]: org.springframework.remoting.RemoteProxyFailureException: No matching RMI stub method found for: public abstract java.util.HashMap com.xxx.cwp.propertymgr.ejb.CwpPropertyManager.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO) throws java.rmi.RemoteException,com.xxx.cwp.CoreException; nested exception is java.lang.NoSuchMethodException: com.xxx.cwp.propertymgr.ejb._CwpPropertyManager_Stub.retrieveSiteLocaleProperties(com.xxx.cwp.propertymgr.to.PropertyTO)

      at org.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke()
    2. Spring Context
      AbstractRemoteSlsbInvokerInterceptor.invoke
      1. org.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke(RmiClientInterceptorUtils.java:115)
      2. org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:76)
      3. org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:140)
      3 frames
    3. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    4. Unknown
      $Proxy10.retrieveSiteLocaleProperties
      1. $Proxy10.retrieveSiteLocaleProperties(Unknown Source)
      1 frame
    5. com.xxx.tool
      USDrtvRegistrationFormController.referenceData
      1. com.xxx.tool.promotion.web.usdrtv.controller.USDrtvRegistrationFormController.loadProperties(USDrtvRegistrationFormController.java:168)
      2. com.xxx.tool.promotion.web.usdrtv.controller.USDrtvRegistrationFormController.referenceData(USDrtvRegistrationFormController.java:79)
      2 frames
    6. Spring MVC
      SimpleControllerHandlerAdapter.handle
      1. org.springframework.web.servlet.mvc.AbstractFormController.showForm(AbstractFormController.java:574)
      2. org.springframework.web.servlet.mvc.SimpleFormController.showForm(SimpleFormController.java:198)
      3. org.springframework.web.servlet.mvc.SimpleFormController.showForm(SimpleFormController.java:175)
      4. org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:338)
      5. org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:278)
      6. org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
      7. org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      7 frames