org.springframework.transaction.TransactionUsageException: Couldn't find method '*' on interface package.B

Spring JIRA | Marco Qualizza | 1 decade 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. 0

    I have a hierarchy similar to the following: interface A { void mtd1(); void mtd2(); } interface B extends A { void mtdB1(); } org.springframework.transaction.interceptor.TransactionInterceptor does not see #mtd1 or #mtd2 if I say: <property name="transactionAttributeSource"> <value> package.B.*=PROPAGATION_REQUIRED </value> </property> And, in fact, if B has no declared methods, I get: 2004-05-23 08:12:27,786 ERROR [org.springframework.web.context.ContextLoader] - <Unexpected error loading context configuration> org.springframework.transaction.TransactionUsageException: Couldn't find method '*' on interface package.B at org.springframework.transaction.interceptor.MethodMapTransactionAttributeSource.addTransactionalMethod(MethodMapTransactionAttributeSource.java:108) at org.springframework.transaction.interceptor.MethodMapTransactionAttributeSource.addTransactionalMethod(MethodMapTransactionAttributeSource.java:79) at org.springframework.transaction.interceptor.TransactionAttributeSourceEditor.setAsText(TransactionAttributeSourceEditor.java:64) at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:773) at org.springframework.beans.BeanWrapperImpl.createPropertyChangeEventWithTypeConversionIfNecessary(BeanWrapperImpl.java:703) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:570) at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:662) at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:639) at org.springframework.beans.factory.support.AbstractBeanFactory.applyPropertyValues(AbstractBeanFactory.java:768) at org.springframework.beans.factory.support.AbstractBeanFactory.createBean(AbstractBeanFactory.java:479) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:211) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:469) at org.springframework.context.support.AbstractApplicationContext.preInstantiateSingletons(AbstractApplicationContext.java:355) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:241) at org.springframework.web.context.support.XmlWebApplicationContext.setServletContext(XmlWebApplicationContext.java:124) at org.springframework.web.context.ContextLoader.initContext(ContextLoader.java:58) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:29) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4269) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320) at org.apache.catalina.core.StandardHost.install(StandardHost.java:875) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)

    Spring JIRA | 1 decade ago | Marco Qualizza
    org.springframework.transaction.TransactionUsageException: Couldn't find method '*' on interface package.B
  2. 0

    I have a hierarchy similar to the following: interface A { void mtd1(); void mtd2(); } interface B extends A { void mtdB1(); } org.springframework.transaction.interceptor.TransactionInterceptor does not see #mtd1 or #mtd2 if I say: <property name="transactionAttributeSource"> <value> package.B.*=PROPAGATION_REQUIRED </value> </property> And, in fact, if B has no declared methods, I get: 2004-05-23 08:12:27,786 ERROR [org.springframework.web.context.ContextLoader] - <Unexpected error loading context configuration> org.springframework.transaction.TransactionUsageException: Couldn't find method '*' on interface package.B at org.springframework.transaction.interceptor.MethodMapTransactionAttributeSource.addTransactionalMethod(MethodMapTransactionAttributeSource.java:108) at org.springframework.transaction.interceptor.MethodMapTransactionAttributeSource.addTransactionalMethod(MethodMapTransactionAttributeSource.java:79) at org.springframework.transaction.interceptor.TransactionAttributeSourceEditor.setAsText(TransactionAttributeSourceEditor.java:64) at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:773) at org.springframework.beans.BeanWrapperImpl.createPropertyChangeEventWithTypeConversionIfNecessary(BeanWrapperImpl.java:703) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:570) at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:662) at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:639) at org.springframework.beans.factory.support.AbstractBeanFactory.applyPropertyValues(AbstractBeanFactory.java:768) at org.springframework.beans.factory.support.AbstractBeanFactory.createBean(AbstractBeanFactory.java:479) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:211) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:469) at org.springframework.context.support.AbstractApplicationContext.preInstantiateSingletons(AbstractApplicationContext.java:355) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:241) at org.springframework.web.context.support.XmlWebApplicationContext.setServletContext(XmlWebApplicationContext.java:124) at org.springframework.web.context.ContextLoader.initContext(ContextLoader.java:58) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:29) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4269) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320) at org.apache.catalina.core.StandardHost.install(StandardHost.java:875) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)

    Spring JIRA | 1 decade ago | Marco Qualizza
    org.springframework.transaction.TransactionUsageException: Couldn't find method '*' on interface package.B
  3. 0

    possible bug with transactionInterceptor conf

    springframework | 1 decade ago | lagcisco
    org.springframework.transaction.TransactionUsageException: Couldn't find method 'save' on interface  template.website.service.TemplateService
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.transaction.TransactionUsageException

      Couldn't find method '*' on interface package.B

      at org.springframework.transaction.interceptor.MethodMapTransactionAttributeSource.addTransactionalMethod()
    2. Spring Tx
      TransactionAttributeSourceEditor.setAsText
      1. org.springframework.transaction.interceptor.MethodMapTransactionAttributeSource.addTransactionalMethod(MethodMapTransactionAttributeSource.java:108)
      2. org.springframework.transaction.interceptor.MethodMapTransactionAttributeSource.addTransactionalMethod(MethodMapTransactionAttributeSource.java:79)
      3. org.springframework.transaction.interceptor.TransactionAttributeSourceEditor.setAsText(TransactionAttributeSourceEditor.java:64)
      3 frames
    3. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:773)
      2. org.springframework.beans.BeanWrapperImpl.createPropertyChangeEventWithTypeConversionIfNecessary(BeanWrapperImpl.java:703)
      3. org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:570)
      4. org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:662)
      5. org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:639)
      6. org.springframework.beans.factory.support.AbstractBeanFactory.applyPropertyValues(AbstractBeanFactory.java:768)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.createBean(AbstractBeanFactory.java:479)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:211)
      8 frames
    4. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:469)
      2. org.springframework.context.support.AbstractApplicationContext.preInstantiateSingletons(AbstractApplicationContext.java:355)
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:241)
      3 frames
    5. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.support.XmlWebApplicationContext.setServletContext(XmlWebApplicationContext.java:124)
      2. org.springframework.web.context.ContextLoader.initContext(ContextLoader.java:58)
      3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:29)
      3 frames
    6. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775)
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4269)
      3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
      4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
      5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
      6. org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
      7. org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
      8. org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
      9. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
      10. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
      11. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
      12. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
      13. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
      14. org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
      15. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
      16. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
      17. org.apache.catalina.core.StandardService.start(StandardService.java:519)
      18. org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
      19. org.apache.catalina.startup.Catalina.start(Catalina.java:598)
      19 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    8. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
      2 frames