1 Reply Latest reply on Apr 29, 2002 9:37 AM by Gennadiy

    Exception in JMSCI message listener

    Gennadiy Newbie

      Hi,
      I have some problems with standalone JBoss client.
      When I try to run a code example and send an message to queue, I always get an exception: [JMSContainerInvoker] Exception in JMSCI message listener

      Jboss 3 RC1, Jaas based auth. works properly (I got an principal from EJBContext)

      the stack trace:

      16:49:15,698 ERROR [JMSContainerInvoker] Exception in JMSCI message listener
      java.rmi.RemoteException: checkSecurityAssociation; nested exception is:
      java.lang.SecurityException: Authentication exception, principal=null
      java.lang.SecurityException: Authentication exception, principal=null
      at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(Se
      curityInterceptor.java:169)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
      java:118)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.ja
      va:308)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvo
      ker.java:625)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onM
      essage(JMSContainerInvoker.java:973)
      at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:23
      4)
      at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMess
      ageConsumer.java:559)
      at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:37
      6)
      at org.jboss.mq.SpySession.run(SpySession.java:219)
      at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:173)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
      utor.java:642)
      at java.lang.Thread.run(Thread.java:484)

      EJB-JAR.XML:

      ...
      <message-driven>
      <display-name>WfmAsyncReqHandlerBean</display-name>
      <ejb-name>WfmAsyncReqHandlerBean</ejb-name>
      <ejb-class>com.softoffice.plis.wfmserver.WfmAsyncReqHandlerBean</ejb-class>
      <message-selector></message-selector>
      <transaction-type>Container</transaction-type>
      <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
      <message-driven-destination>
      <destination-type>javax.jms.Queue</destination-type>
      <subscription-durability>NonDurable</subscription-durability>
      </message-driven-destination>
      </message-driven>
      ...


      JBoss.XML

      ...
      <message-driven>
      <ejb-name>WfmAsyncReqHandlerBean</ejb-name>
      <destination-jndi-name>queue/testQueue</destination-jndi-name>
      </message-driven>
      ...

      Question: Whats wrong?

      Thanks