Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2905

Multiple jms component Consumers is throwing Connection error when connecting to Artemis broker inside docker container

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.13.0
    • 2.15.0
    • OpenWire
    • None

    Description

      We are connecting to Artemis broker (2.13.0) deployed in Docker Container using Camel JMS Component (Version 2.25.1).

      When we have multiple consumer routes we are facing below exception:

      ActiveMQSecurityException[errorType=SECURITY_EXCEPTION message=AMQ229031: Unable to validate user from /host:52202. Username: null; SSL certificate subject DN: unavailable
      
      DEBUG org.apache.camel.component.jms.DefaultJmsMessageListenerContainer  - Could not establish shared JMS Connection - leaving it up to asynchronous invokers to establish a Connection as soon as possible
      javax.jms.JMSSecurityException: AMQ229031: Unable to validate user from /localhost:52486. Username: null; SSL certificate subject DN: unavailable
              at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:467)
              at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:361)
              at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager.createSessionContext(ActiveMQClientProtocolManager.java:300)
              at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager.createSessionContext(ActiveMQClientProtocolManager.java:249)
              at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createSessionChannel(ClientSessionFactoryImpl.java:1366)
              at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:691)
              at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:316)
              at org.apache.activemq.artemis.jms.client.ActiveMQConnection.authorize(ActiveMQConnection.java:684)
              at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:920)
              at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:299)
              at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:294)
      

      The same works when we have single consumer routes. When we connect to a standalone broker both single and multiple consumer route works

      When I use Artemis core library with plain Java classes without Camel JMS component then we are able to make connection for more than 1 consumer.

      Attachments

        1. artemis-core-consumer.zip
          10 kB
          Ramarajan R
        2. Camel+Artemis with 1 consumer
          16 kB
          Ramarajan R
        3. Camel+Artemis with 2 consumer
          133 kB
          Ramarajan R
        4. camel-artemis.zip
          30 kB
          Ramarajan R

        Activity

          People

            Unassigned Unassigned
            Ramarajan Ramarajan R
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: