0 Replies Latest reply on Jun 15, 2006 12:43 AM by li xiaochun

    Trying to reconnect to JMS provider

    li xiaochun Newbie

      After running jboss print out:

      16:09:11,765 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider
      16:09:11,765 INFO [EJBDeployer] Deployed: file:/D:/aboutjbuilder/jboss-4.0.1sp1
      /server/default/deploy/lxctest.jar
      16:09:19,312 ERROR [JMSContainerInvoker] Reconnect failed: JMS provider failure
      detected:
      java.lang.NullPointerException
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContaine
      rInvoker.java:561)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContain
      erInvoker.java:813)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.r
      un(JMSContainerInvoker.java:1323)
      at java.lang.Thread.run(Thread.java:534)
      16:09:21,781 WARN [JMSContainerInvoker] JMS provider failure detected:
      javax.jms.JMSSecurityException: User: -1 is NOT authenticated
      at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.ja
      va:215)
      at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSe
      curityInterceptor.java:51)
      at org.jboss.mq.server.TracingInterceptor.authenticate(TracingIntercepto
      r.java:781)
      at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.ja
      va:287)
      at org.jboss.mq.il.jvm.JVMServerIL.authenticate(JVMServerIL.java:301)
      at org.jboss.mq.Connection.authenticate(Connection.java:1160)
      at org.jboss.mq.Connection.(Connection.java:255)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:55)
      at org.jboss.mq.SpyXAConnection.(SpyXAConnection.java:52)
      at org.jboss.mq.SpyXAConnectionFactory.createXAConnection(SpyXAConnectio
      nFactory.java:98)
      at org.jboss.mq.SpyXAConnectionFactory.createXAQueueConnection(SpyXAConn
      ectionFactory.java:119)
      at org.jboss.jms.ConnectionFactoryHelper.createQueueConnection(Connectio
      nFactoryHelper.java:147)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContaine
      rInvoker.java:735)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContain
      erInvoker.java:813)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.r
      un(JMSContainerInvoker.java:1323)
      at java.lang.Thread.run(Thread.java:534)
      16:09:21,781 INFO [JMSContainerInvoker] Reconnected to JMS provider
      16:09:21,781 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider
      16:09:31,796 WARN [JMSContainerInvoker] JMS provider failure detected:
      javax.jms.JMSSecurityException: User: -1 is NOT authenticated
      at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.ja
      va:215)
      at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSe
      curityInterceptor.java:51)
      at org.jboss.mq.server.TracingInterceptor.authenticate(TracingIntercepto
      r.java:781)
      at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.ja
      va:287)
      at org.jboss.mq.il.jvm.JVMServerIL.authenticate(JVMServerIL.java:301)
      at org.jboss.mq.Connection.authenticate(Connection.java:1160)
      at org.jboss.mq.Connection.(Connection.java:255)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:55)
      at org.jboss.mq.SpyXAConnection.(SpyXAConnection.java:52)
      at org.jboss.mq.SpyXAConnectionFactory.createXAConnection(SpyXAConnectio
      nFactory.java:98)
      at org.jboss.mq.SpyXAConnectionFactory.createXAQueueConnection(SpyXAConn
      ectionFactory.java:119)
      at org.jboss.jms.ConnectionFactoryHelper.createQueueConnection(Connectio
      nFactoryHelper.java:147)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContaine
      rInvoker.java:735)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContain
      erInvoker.java:813)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.r
      un(JMSContainerInvoker.java:1323)
      at java.lang.Thread.run(Thread.java:534)
      16:09:51,453 INFO [JMSContainerInvoker] Reconnected to JMS provider
      16:09:51,453 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider

      ********************************************
      deployment is :

      bean Name:Enterprise3
      transaction type:conntainer
      destination type: javax.jms.Queue
      destination name:queue/testQueue
      ********************************************
      bean code is:

      package testlxc;

      import javax.ejb.*;
      import javax.jms.*;
      import javax.naming.*;

      public class Enterprise3Bean implements MessageDrivenBean, MessageListener {
      MessageDrivenContext messageDrivenContext;
      public void ejbCreate() //throws CreateException
      {
      /**@todo Complete this method*/
      int i=10;
      }
      public void ejbRemove() {
      /**@todo Complete this method*/
      }
      public void onMessage(Message msg) {
      /**@todo Complete this method*/
      }
      public void setMessageDrivenContext(MessageDrivenContext messageDrivenContext) {
      this.messageDrivenContext = messageDrivenContext;
      }
      }

      ####################################
      Why the error and warning happend?how can I do?
      which files should be changed?how to change?
      Thanks a lot!