org.springframework.transaction.TransactionUsageException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Marco Qualizza,
  • 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)
    via by Marco Qualizza,
    • 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)
    No Bugmate found.