0 Replies Latest reply on Mar 4, 2004 7:33 AM by kiwi

    Problem to create a topic with UIL2 Provider

    kiwi

      Hi,
      I am have a problem to create a topic with UIL2 JMS Provider(JBoss 3.2.3)!

      org.jboss.mq.SpyJMSException: Cannot get the Topic from the provider; - nested throwable: (java.lang.ClassCastException)
      at org.jboss.mq.SpyConnection.createTopic(SpyConnection.java:201)
      at org.jboss.mq.SpyTopicSession.createTopic(SpyTopicSession.java:73)
      at org.activejms.ActiveJms.createTopicOnTopicSession(ActiveJms.java:886)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
      at sun.plugin.com.BeanDispatchImpl.invoke(Unknown Source)
      Caused by: java.lang.ClassCastException
      at org.jboss.mq.il.uil2.msgs.CreateDestMsg.getTopic(CreateDestMsg.java:45)
      at org.jboss.mq.il.uil2.UILServerIL.createTopic(UILServerIL.java:385)
      at org.jboss.mq.SpyConnection.createTopic(SpyConnection.java:199)
      ... 8 more

      In file : org.jboss.mq.il.uil2.UILServerIL.java at line 383

      /**
      * #Description of the Method
      *
      * @param dc Description of Parameter
      * @param dest Description of Parameter
      * @return Description of the Returned Value
      * @exception JMSException Description of Exception
      * @exception Exception Description of Exception
      */
      public Queue createQueue(ConnectionToken dc, String name)
      throws JMSException, Exception
      {
      CreateDestMsg msg = new CreateDestMsg(name, true);
      getSocketMgr().sendMessage(msg);
      Queue dest = msg.getQueue();
      return dest;
      }

      /**
      * #Description of the Method
      *
      * @param dc Description of Parameter
      * @param dest Description of Parameter
      * @return Description of the Returned Value
      * @exception JMSException Description of Exception
      * @exception Exception Description of Exception
      */
      public Topic createTopic(ConnectionToken dc, String name)
      throws JMSException, Exception
      {
      CreateDestMsg msg = new CreateDestMsg(name, true); <-- Is it normal ?
      getSocketMgr().sendMessage(msg);
      Topic dest = msg.getTopic();
      return dest;
      }

      In file : org.jboss.mq.il.uil2.msgs.CreateDestMsg at line 29

      public CreateDestMsg(String name, boolean isQueue)
      {
      super(isQueue ? MsgTypes.m_createQueue : MsgTypes.m_createTopic);
      this.name = name;
      }