Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5948

connection.start hangs with tcp transport wrong username / password

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 5.12.0
    • None
    • JMS client
    • None

    Description

      Hi,
      I am trying to connect to an ActiveMq Broker version 5.11.1 , using the ActiveMQConnectionFactory. On the client side I tried both client version 5.11.2 and 5.12.0

      On server side, authentication is enabled.

      If I supply wrong username and password, the call to connection.start() hangs .

      Debugging the code, I see it hangs in org.apache.activemq.transport.FutureResponse.getResult().
      (this is indirectly called by syncSendPacket in the ensureConnectionInfoSent method in ActiveMQConnection)

      On server side, i see the error message:

      INFO | Stopping tcp://127.0.0.1:53846 because Failed with SecurityException: User name [null] or password is invalid.

      It looks like client side is waiting indefinitely for an answer that will never arrive

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ercasta Antonio Castaldo D'Ursi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: