java.lang.NoSuchMethodError: org.springframework.jmx.access.MBeanClientInterceptor.setObjectName(Ljava/lang/String;)V

Spring JIRA | Tonny Bruckers | 10 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. 0

    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"

    Spring JIRA | 10 years ago | Tonny Bruckers
    java.lang.NoSuchMethodError: org.springframework.jmx.access.MBeanClientInterceptor.setObjectName(Ljava/lang/String;)V
  2. 0

    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"

    Spring JIRA | 10 years ago | Tonny Bruckers
    java.lang.NoSuchMethodError: org.springframework.jmx.access.MBeanClientInterceptor.setObjectName(Ljava/lang/String;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.springframework.jmx.access.MBeanClientInterceptor.setObjectName(Ljava/lang/String;)V

      at eu.eudin.common.jmx.ActiveMQJmxFacade.getQueueViewMBean()
    2. eu.eudin.common
      JmsService.getQueueSize
      1. eu.eudin.common.jmx.ActiveMQJmxFacade.getQueueViewMBean(ActiveMQJmxFacade.java:60)
      2. eu.eudin.common.jmx.ActiveMQJmxFacade.getQueueSize(ActiveMQJmxFacade.java:69)
      3. eu.eudin.common.service.JmsService.getQueueSize(JmsService.java:52)
      3 frames
    3. eu.eudin.mod2
      MessageDistributor.onCall
      1. eu.eudin.mod2.common.service.MessageService.hasReachedMaximumCapacity(MessageService.java:305)
      2. eu.eudin.mod2.common.service.MessageService.verifyForDistribution(MessageService.java:232)
      3. eu.eudin.mod2.common.service.MessageService.distributeMessage(MessageService.java:184)
      4. eu.eudin.mod2.mule.component.MessageDistributor.onCall(MessageDistributor.java:24)
      4 frames
    4. 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:585)
      4 frames
    5. Annotations
      DynamicEntryPoint.invoke
      1. org.mule.impl.model.resolvers.DynamicEntryPoint.invokeMethod(DynamicEntryPoint.java:314)
      2. org.mule.impl.model.resolvers.DynamicEntryPoint.invoke(DynamicEntryPoint.java:261)
      2 frames
    6. org.mule.impl
      WorkerContext.run
      1. org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:217)
      2. org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47)
      3. org.mule.impl.model.DefaultMuleProxy.run(DefaultMuleProxy.java:482)
      4. org.mule.impl.work.WorkerContext.run(WorkerContext.java:310)
      4 frames
    7. Backport of JSR 166
      ThreadPoolExecutor$Worker.run
      1. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      2 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame