1 Reply Latest reply on Oct 30, 2005 5:19 PM by colincrist

    SpyQueueSession.createProducer(null) throwing AbstractMethod

    Craig McDaniel Newbie

      I am trying to send a response message from my consumer using the JMSReplyTo. When I try to create a MessageProducer using either of the following calls, I get an AbstractMethodError.

      MessageProducer producer = session.createProducer(null);
      MessageProducer producer = session.createProducer(dest);

      If I switch to using ActiveMQ, the above works fine, and my integration tests pass. Is this a bug? Here is the stacktrace, though I doubt it will be very helpful.

      Exception in thread "MessageListenerThread - OrchOutputQueue" java.lang.AbstractMethodError: org.jboss.mq.SpyQueueSession.createProducer(Ljavax/jms/Destination;)Ljavax/jms/MessageProducer;
      at com.shps.da.ids.service.jms.ReplyProducerImpl.send(ReplyProducerImpl.java:33)
      at com.shps.da.ids.service.jms.AbstractMessageHandler.send(AbstractMessageHandler.java:77)
      at com.shps.da.ids.service.jms.AbstractMessageHandler.send(AbstractMessageHandler.java:72)
      at com.shps.da.ids.service.jms.RequestStartupInfoHandler.doOnMessage(RequestStartupInfoHandler.java:38)
      at com.shps.da.ids.service.jms.AbstractMessageHandler.onMessage(AbstractMessageHandler.java:45)
      at com.shps.da.ids.service.jms.MessageRouter.onMessage(MessageRouter.java:43)
      at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:546)
      at java.lang.Thread.run(Thread.java:595)

        • 1. Re: SpyQueueSession.createProducer(null) throwing AbstractMe
          colincrist Newbie

          When you get an AbstractMethodError exception out of a JMS provider it's normally caused by trying to call a JMS 1.1 method against an earlier version, 1.0.2b I guess in this case. The method ain't there to call....

          I'm no JBoss expert but have used plenty of JMS providers including JBoss and have had to deal with this kind of issue.

          Check whatever version of JBoss you're using, you don't post the version which of course you should to help those that hang out here to help. Look at the docs to find out which version of the JMS spec your version of JBoss implements.

          Chances are if you use the domain specific calls, you will be fine. Compare the JMS 1.0.2b and 1.1 API's to get a handle on whats different as I suspect this is what you're missing.

          Cheers,

          Colin.
          http://hermesjms.com