[ 
https://issues.apache.org/jira/browse/AMQ-5948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14714477#comment-14714477
 ] 

Antonio Castaldo D'Ursi commented on AMQ-5948:
----------------------------------------------

You're right. I created a unit test with an embedded broker and it worked. 
What's strange is that now also the original code is working. And the unit test 
is working also connecting to the real broker. Maybe it was a runtime problem 
on the server side? 
I'll let you know if it happens again

> connection.start hangs with tcp transport wrong username / password
> -------------------------------------------------------------------
>
>                 Key: AMQ-5948
>                 URL: https://issues.apache.org/jira/browse/AMQ-5948
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.12.0
>            Reporter: Antonio Castaldo D'Ursi
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to