1 Reply Latest reply on Oct 3, 2002 10:22 AM by Michael Noel

    JMSSecurityException : Topic lookup fails

    Vidya Newbie

      Hi,

      I get a JMSSecurityException when I try to do a JMS topic lookup.
      This seems to happen about 2 hours after the server is started. Not before.

      Authentication fails with this exception message:
      [org.jboss.mq.sm.file.DynamicLoginModule] Failed to load DynamicSecurityManager
      javax.management.InstanceNotFoundException: jboss.mq:service=StateManager is not registered.

      The stack trace
      Stack trace:
      [org.jboss.mq.sm.file.DynamicLoginModule] Failed to load DynamicSecurityManager
      javax.management.InstanceNotFoundException: jboss.mq:service=StateManager is not registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:362)
      at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:413)
      at org.jboss.mq.sm.file.DynamicLoginModule.initialize(DynamicLoginModule.java:53)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:651)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:599)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:596)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:523)
      at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:381)
      at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:347)
      at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:215)
      at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:157)
      at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:40)
      at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:575)
      at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:288)
      at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:328)
      at java.lang.Thread.run(Thread.java:536)
      2002-09-23 17:22:36,686 WARN [org.jboss.mq.il.oil.OILServerILService] Client request resulted in a server exception:
      javax.jms.JMSSecurityException: User: null is NOT authenticated
      at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:181)
      at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:40)
      at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:575)
      at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:288)
      at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:328)
      at java.lang.Thread.run(Thread.java:536)

      The configuration of the topic is below:

      <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
      <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager









      Any ideas?

      vidya

        • 1. Re: JMSSecurityException : Topic lookup fails
          Michael Noel Newbie

          Vidya,
          This is Leon in Orlando.
          Have you resolved this issue? I am getting the last part of your error -


          javax.jms.JMSSecurityException: User: TOPIC_MAFS is NOT authenticated.

          My jbossmq-state file looks like:
          +++++++++++++
          <?xml version="1.0" encoding="UTF-8"?>



          guest
          guest


          TOPIC_MAFS
          MAFS
          TOPIC_MAFS_DURABLE


          QUEUE_MAFS
          MAFS
          QUEUE_MAFS_DURABLE




          guest


          QUEUE_MAFS
          TOPIC_MAFS


          QUEUE_MAFS


          TOPIC_MAFS
          QUEUE_MAFS









          +++++++++++++

          and the connect code looks like :

          +++++++++++++++
          public class ReportReleasedReceiveAdapter
          extends LoggedObject
          implements ReportNotificationDefines, TacsimMessageHandler {
          // private InfoManager infoManager = null;
          private TacsimMessageReceiver tmr = null;
          private Vector listeners = null;

          public ReportReleasedReceiveAdapter(){
          // this.infoManager = new InfoManager();
          this.listeners = new Vector();
          TacsimMessage tm = new ReportReleasedNotificationMessage();
          this.tmr = TacsimJmsAdapter.getConnection(tm,"MAFS","MAFS").getReceiver(tm);
          this.tmr.addMessageHandler(this);
          }

          +++++++++++++++

          If you found a solution, I would appreciate it.
          You can email me directly at kleon@tcintel.com

          Thanks in Advance
          Leon.