Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4280

Incorrect log message in class ClientSessionFactoryImpl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.1.0.DR8
    • 7.0.0.CR1
    • ActiveMQ
    • None

      There is incorrect logging message present in method establishNewConnection() in class org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl .

         protected RemotingConnection establishNewConnection() {
           ....
            RemotingConnection newConnection = clientProtocolManager.connect(...);
            newConnection.addFailureListener(new DelegatingFailureListener(newConnection.getID()));
            schedulePing();
            if (ActiveMQClientLogger.LOGGER.isTraceEnabled()) {
               ActiveMQClientLogger.LOGGER.trace("returning " + connection);
            }
            return newConnection;
         }
      

      Log message says, that it is returning connection (old one, present as an attribute of class), but connection stored in newConnection variable is returned (and then it is set as this.connection).

            bayern39_jira Chen Maoqian (Inactive)
            mstyk_jira Martin Styk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: