0 Replies Latest reply on Jul 15, 2002 3:23 AM by Danny Shaul

    Run MQ client using JDK1.4

    Danny Shaul Newbie

      Hi all
      I wrote a little and simple publisher/subscriber program.
      It works fine with java 1.3.1-b24 (in the client side) but it doesn't work at all when I am using java 1.4.0_01-b03.
      I tried to use Jboss2.4.4 and also Jboss3.0.

      I am running exactly the same program with JDK 1.4, I don't get any problem when connecting to the topic as publisher or as subscriber, but I don't get any message sent to the topic. the strange thing is that I even don't get any exception on it.
      The only exception I get (only in JDK1.4) is when I try to disconnect the subscriber from the topic I get:

      org.jboss.mq.SpyJMSException: Cannot unsubscribe to this destination
      at org.jboss.mq.Connection.removeConsumer(Connection.java:761)
      at org.jboss.mq.SpySession.removeConsumer(SpySession.java:506)
      at org.jboss.mq.SpyMessageConsumer.close(SpyMessageConsumer.java:351)
      at tv.tvgate.utils.MsgSubscriber.disconnect(MsgSubscriber.java:44)
      at tv.tvgate.utils.Untitled1$2.windowClosing(Untitled1.java:89)
      at java.awt.Window.processWindowEvent(Window.java:1098)
      at java.awt.Window.processEvent(Window.java:1057)
      at java.awt.Component.dispatchEventImpl(Component.java:3526)
      at java.awt.Container.dispatchEventImpl(Container.java:1582)
      at java.awt.Window.dispatchEventImpl(Window.java:1581)
      at java.awt.Component.dispatchEvent(Component.java:3367)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
      linked exception is:
      javax.jms.JMSException: The subscription had not been previously registered
      linked exception is:
      javax.jms.JMSException: The subscription had not been previously registered


      Thanks a lot.