3 Replies Latest reply on Jul 24, 2002 2:44 PM by Andreas Schaefer

    NoSuchMethodException on MDB

    Alistar Oldcorn Newbie

      I hope someone has seen this before. I have a simple MDB that is listening to a topic (ordersReceived) and in the onMessage() method it takes the message received and puts it onto another topic (email). I have a standard JMS client publishing to the ordersReceived topic. The messages arrive on the topic correctly because when they do the following happens:

      [ERROR,JMSContainerInvoker] Exception in JMSCI message listener
      java.lang.NoSuchMethodException
      at java.lang.Class.getMethod0(Native Method)
      at java.lang.Class.getMethod(Class.java:888)
      at org.jboss.ejb.MessageDrivenEnterpriseContext.(MessageDrivenEnte
      rpriseContext.java:59)
      at org.jboss.ejb.plugins.MessageDrivenInstancePool.create(MessageDrivenI
      nstancePool.java:58)
      at org.jboss.ejb.plugins.AbstractInstancePool.add(AbstractInstancePool.j
      ava:153)
      at org.jboss.ejb.plugins.AbstractInstancePool.internalGet(AbstractInstan
      cePool.java:216)
      at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.j
      ava:191)
      at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(Message
      DrivenInstanceInterceptor.java:73)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.ja
      va:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:277)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
      00)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
      java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.ja
      va:281)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvo
      ker.java:584)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onM
      essage(JMSContainerInvoker.java:930)
      at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:23
      3)
      at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMess
      ageConsumer.java:565)
      at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:37
      6)
      at org.jboss.mq.SpySession.run(SpySession.java:248)
      at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:172)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
      utor.java:725)

      Can anyone help?