2 Replies Latest reply on Aug 19, 2004 2:09 PM by wolfj

    [b]Not authorized to add messages to DLQ[/b]

    emaistry

      Hi there!

      I am using jboss3.0.4 and cannot add any messages to the DLQ. Jboss throws an exception while trying to add message to DLQ. Please advise!

      Output:

      14:43:35,701 WARN [DLQHandler] Message resent too many times; sending it to DLQ
      . Id: ID:5-10419513295842
      14:43:35,701 ERROR [DLQHandler] Could not send message to Dead Letter Queue
      javax.jms.JMSSecurityException: Connection not autorized to addMessages to dest
      nation: DLQ
      at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSec
      rityInterceptor.java:153)
      at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor
      java:209)
      at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.jav
      :137)
      at org.jboss.mq.il.jvm.JVMServerIL.addMessage(JVMServerIL.java:137)
      at org.jboss.mq.Connection.sendToServer(Connection.java:1119)
      at org.jboss.mq.SpySession.sendMessage(SpySession.java:654)
      at org.jboss.mq.SpyQueueSender.internalSend(SpyQueueSender.java:118)
      at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:76)
      at org.jboss.ejb.plugins.jms.DLQHandler.sendMessage(DLQHandler.java:246

      at org.jboss.ejb.plugins.jms.DLQHandler.handleRedeliveredMessage(DLQHan
      ler.java:176)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.on
      essage(JMSContainerInvoker.java:1028)
      at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:2
      3)
      at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMes
      ageConsumer.java:603)
      at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:4
      7)
      at org.jboss.mq.SpySession.run(SpySession.java:296)
      at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:178)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExe
      utor.java:655)
      at java.lang.Thread.run(Thread.java:536)

        • 1. Re: [b]Not authorized to add messages to DLQ[/b]
          larisafel

          Hi,

          I'm having exactly the same problem. If for some reason Messages in a Topic are continually rolled back ,the MQ is trying to stick it in DLQ, but DLQ is rejecting connections.
          I've got two security roles in my state file - publisher and subscriber and added both to the security config in DLQ with all permissions set to true. Still, it fails.

          Any idea why?

          • 2. Re: [b]Not authorized to add messages to DLQ[/b]

            I get the same problem in JBoss 3.2.3

            The MDB that's trying to write to the DLQ is configured to listen to a queue on another server over HTTPS. I wonder, then, if it's trying to write the message to the other server's DLQ?