[ 
https://issues.apache.org/jira/browse/ARTEMIS-2403?focusedWorklogId=267757&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-267757
 ]

ASF GitHub Bot logged work on ARTEMIS-2403:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Jun/19 16:15
            Start Date: 26/Jun/19 16:15
    Worklog Time Spent: 10m 
      Work Description: jbertram 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_r297753105
 
 

 ##########
 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:
   This appears to have been left by mistake. Can you confirm?
 
----------------------------------------------------------------
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: 267757)
    Time Spent: 20m  (was: 10m)

> 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
>          Time Spent: 20m
>  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)

Reply via email to