7 Replies Latest reply on Apr 13, 2005 10:10 AM by Scott Stark

    JMS 1.02b / 1.1  VerifyError?

    hauss D Newbie

      Running Jboss 3.2.6. I recently had to convert my code to JMS 1.02b from JMS 1.1... I have a simple Queue that I am using to send messages. When the following line is executed:

      session.createReceiver(queue).setMessageListener(new MySenderMessageListener("Listener ONE", this));

      .. I get a VerifyError for my class implementing MessageListener. Error is:

      java.lang.VerifyError: (class: com/bobo/MySenderMessageListener, method: onMessage signature: (Ljavax/jms/Message;)V) Expecting to find object/array on stack

      My class (MySenderMessageListener): (code omitted, just to show my onMessage )..

      import javax.jms.MessageListener;
      import javax.jms.Message;
      ...

      public class MySenderMessageListener implements MessageListener
      {

      public MySenderMessageListener(String receiverName,
      MyThing thing)
      {
      ...
      }

      public void onMessage(javax.jms.Message message)
      {

      ...

      }

      }

      I checked all the jars in jboss/lib jboss/server/default/lib and my WEB-INF/lib and the only Message and MessageListeners in those paths come from jboss-j2ee.jar.

      Could I have some old JMS messages in queue somewhere that I need to flush?