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

Consumer command, clientID is not saved during JMS exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.9.0
    • 2.10.0
    • Broker
    • None

    Description

      clientID is not saved during JMS exception

      [shsingh@shsingh bin]$ ./artemis consumer --destination topic://Multicast --message-count 10 --clientID test_Demo --durable
      Consumer:: filter = null
      Consumer:: clientID = test_Demo
      Connection failed::AMQ229031: Unable to validate user from /127.0.0.1:46362. Username: null; SSL certificate subject DN: unavailable
      
      --user: is a mandatory property!
      Type the username for a retry
      admin
      
      --password: is mandatory with this configuration:
      Type the password for a retry
      
      Consumer ActiveMQTopic[Multicast], thread=0 wait until 10 messages are consumed
      javax.jms.IllegalStateException: Cannot create durable subscription - client ID has not been set
      	at org.apache.activemq.artemis.jms.client.ActiveMQSession.createConsumer(ActiveMQSession.java:848)
      	at org.apache.activemq.artemis.jms.client.ActiveMQSession.createDurableSubscriber(ActiveMQSession.java:583)
      	at org.apache.activemq.artemis.jms.client.ActiveMQSession.createDurableSubscriber(ActiveMQSession.java:557)
      	at org.apache.activemq.artemis.cli.commands.messages.ConsumerThread.consume(ConsumerThread.java:171)
      	at org.apache.activemq.artemis.cli.commands.messages.ConsumerThread.run(ConsumerThread.java:67)
      Consumer ActiveMQTopic[Multicast], thread=0 Consumer thread finished
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shailendra14k Shailendra Kumar singh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m