java.lang.NoSuchMethodError

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.

  • When switching from spring 2.0 to spring 2.0.4 I get the following error which was'nt there before: java.lang.NoSuchMethodError: org.springframework.jmx.access.MBeanClientInterceptor.setObjectName(Ljava/lang/String;)V at eu.eudin.common.jmx.ActiveMQJmxFacade.getQueueViewMBean(ActiveMQJmxFacade.java:60) at eu.eudin.common.jmx.ActiveMQJmxFacade.getQueueSize(ActiveMQJmxFacade.java:69) at eu.eudin.common.service.JmsService.getQueueSize(JmsService.java:52) at eu.eudin.mod2.common.service.MessageService.hasReachedMaximumCapacity(MessageService.java:305) at eu.eudin.mod2.common.service.MessageService.verifyForDistribution(MessageService.java:232) at eu.eudin.mod2.common.service.MessageService.distributeMessage(MessageService.java:184) at eu.eudin.mod2.mule.component.MessageDistributor.onCall(MessageDistributor.java:24) 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:585) at org.mule.impl.model.resolvers.DynamicEntryPoint.invokeMethod(DynamicEntryPoint.java:314) at org.mule.impl.model.resolvers.DynamicEntryPoint.invoke(DynamicEntryPoint.java:261) at org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:217) at org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47) at org.mule.impl.model.DefaultMuleProxy.run(DefaultMuleProxy.java:482) at org.mule.impl.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) ******************************************************************************** Here's the involked method on the ActiveMQJmxFacade: private QueueViewMBean getQueueViewMBean(String queueName) throws Exception { MBeanProxyFactoryBean proxyFactory = new MBeanProxyFactoryBean(); proxyFactory.setProxyInterface(QueueViewMBean.class); proxyFactory.setServiceUrl(getServiceUrl()); String jmxQueueName = getObjectName() + queueName; proxyFactory.setObjectName(jmxQueueName); proxyFactory.afterPropertiesSet(); QueueViewMBean proxy = (QueueViewMBean) proxyFactory.getObject(); return proxy; } where jmxQueueName = "org.apache.activemq:BrokerName=localhost,Type=Queue,Destination=out.for.receipt"
    via by Tonny Bruckers,
  • When switching from spring 2.0 to spring 2.0.4 I get the following error which was'nt there before: java.lang.NoSuchMethodError: org.springframework.jmx.access.MBeanClientInterceptor.setObjectName(Ljava/lang/String;)V at eu.eudin.common.jmx.ActiveMQJmxFacade.getQueueViewMBean(ActiveMQJmxFacade.java:60) at eu.eudin.common.jmx.ActiveMQJmxFacade.getQueueSize(ActiveMQJmxFacade.java:69) at eu.eudin.common.service.JmsService.getQueueSize(JmsService.java:52) at eu.eudin.mod2.common.service.MessageService.hasReachedMaximumCapacity(MessageService.java:305) at eu.eudin.mod2.common.service.MessageService.verifyForDistribution(MessageService.java:232) at eu.eudin.mod2.common.service.MessageService.distributeMessage(MessageService.java:184) at eu.eudin.mod2.mule.component.MessageDistributor.onCall(MessageDistributor.java:24) 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:585) at org.mule.impl.model.resolvers.DynamicEntryPoint.invokeMethod(DynamicEntryPoint.java:314) at org.mule.impl.model.resolvers.DynamicEntryPoint.invoke(DynamicEntryPoint.java:261) at org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:217) at org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47) at org.mule.impl.model.DefaultMuleProxy.run(DefaultMuleProxy.java:482) at org.mule.impl.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) ******************************************************************************** Here's the involked method on the ActiveMQJmxFacade: private QueueViewMBean getQueueViewMBean(String queueName) throws Exception { MBeanProxyFactoryBean proxyFactory = new MBeanProxyFactoryBean(); proxyFactory.setProxyInterface(QueueViewMBean.class); proxyFactory.setServiceUrl(getServiceUrl()); String jmxQueueName = getObjectName() + queueName; proxyFactory.setObjectName(jmxQueueName); proxyFactory.afterPropertiesSet(); QueueViewMBean proxy = (QueueViewMBean) proxyFactory.getObject(); return proxy; } where jmxQueueName = "org.apache.activemq:BrokerName=localhost,Type=Queue,Destination=out.for.receipt"
    via by Tonny Bruckers,
    • java.lang.NoSuchMethodError: org.springframework.jmx.access.MBeanClientInterceptor.setObjectName(Ljava/lang/String;)V at eu.eudin.common.jmx.ActiveMQJmxFacade.getQueueViewMBean(ActiveMQJmxFacade.java:60) at eu.eudin.common.jmx.ActiveMQJmxFacade.getQueueSize(ActiveMQJmxFacade.java:69) at eu.eudin.common.service.JmsService.getQueueSize(JmsService.java:52) at eu.eudin.mod2.common.service.MessageService.hasReachedMaximumCapacity(MessageService.java:305) at eu.eudin.mod2.common.service.MessageService.verifyForDistribution(MessageService.java:232) at eu.eudin.mod2.common.service.MessageService.distributeMessage(MessageService.java:184) at eu.eudin.mod2.mule.component.MessageDistributor.onCall(MessageDistributor.java:24) 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:585) at org.mule.impl.model.resolvers.DynamicEntryPoint.invokeMethod(DynamicEntryPoint.java:314) at org.mule.impl.model.resolvers.DynamicEntryPoint.invoke(DynamicEntryPoint.java:261) at org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:217) at org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47) at org.mule.impl.model.DefaultMuleProxy.run(DefaultMuleProxy.java:482) at org.mule.impl.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)
    No Bugmate found.