1 Reply Latest reply on Apr 1, 2004 1:20 PM by alanc_yang

    JMSSecurityExceptoin in the 2nd TopicSubscriber receive() ca

    alanc_yang

      After setting up the connection, session, and create a durable TopicSubscriber from within the MBean, I start a separate thread to perform the message receiving loop similar to the following:

      while (true) {
      Message msg = recv.receive();
      processMsg(msg);
      }

      but the 2nd loop on the recv.receive() after the 1st message received, it encountered the following exception that I wonder people can shed some lights what's the issue here.

      Thanks in advance.
      Alan

      -----------


      09:16:56,258 WARN [OILServerILService] Client request resulted in a server exception:
      javax.jms.JMSSecurityException: The login id has an assigned client id. That client id is already connected to the server!
      at org.jboss.mq.sm.AbstractStateManager.checkUser(AbstractStateManager.java:213)
      at org.jboss.mq.server.JMSDestinationManager.checkUser(JMSDestinationManager.java:
      748)
      at org.jboss.mq.server.JMSServerInterceptorSupport.checkUser(JMSServerInterceptorS
      upport.java:274)
      at org.jboss.mq.server.TracingInterceptor.checkUser(TracingInterceptor.java:741)
      at org.jboss.mq.server.JMSServerInvoker.checkUser(JMSServerInvoker.java:274)
      at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:321)
      at java.lang.Thread.run(Thread.java:534)