You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Shailendra Kumar singh (JIRA)" <ji...@apache.org> on 2019/06/26 06:55:00 UTC

[jira] [Created] (ARTEMIS-2403) Consumer command, clientID is not saved during JMS exception

Shailendra Kumar singh created ARTEMIS-2403:
-----------------------------------------------

             Summary: Consumer command, clientID is not saved during JMS exception
                 Key: ARTEMIS-2403
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2403
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: Broker
    Affects Versions: 2.9.0
            Reporter: Shailendra Kumar singh


clientID is not saved during JMS exception


{code:java}
[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
{code}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)