[ https://issues.apache.org/jira/browse/ARTEMIS-2403?focusedWorklogId=268201&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-268201 ]
ASF GitHub Bot logged work on ARTEMIS-2403: ------------------------------------------- Author: ASF GitHub Bot Created on: 27/Jun/19 03:55 Start Date: 27/Jun/19 03:55 Worklog Time Spent: 10m Work Description: shailendra14k commented on pull request #2734: [ARTEMIS-2403]Consumer command, clientID is not saved during JMS exception URL: https://github.com/apache/activemq-artemis/pull/2734#discussion_r297976205 ########## File path: artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/messages/ConnectionAbstract.java ########## @@ -61,6 +61,7 @@ private ConnectionFactory createAMQPConnectionFactory() { } JmsConnectionFactory cf = new JmsConnectionFactory(user, password, brokerURL); if (clientID != null) { + System.out.println("Consumer:: clientID = " + clientID); Review comment: yes, I added the sysout to have this sync with the Core version, this gets logged on the console along with the filer ``` [shsingh@shsingh bin]$ ./artemis consumer --destination topic://Multicast --message-count 10 --clientID test_Demo --durable --protocol amqp Consumer:: filter = null Consumer:: clientID = test_Demo ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 268201) Time Spent: 1h 40m (was: 1.5h) > 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 > Priority: Minor > Fix For: 2.10.0 > > Time Spent: 1h 40m > Remaining Estimate: 0h > > 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)