[
https://issues.apache.org/jira/browse/QPID-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749870#action_12749870
]
Martin Ritchie commented on QPID-585:
-------------------------------------
Think that this is only half a problem now. The StateManager is not rest
between initial connection attempts but the state is also not adjusted during
that attempt.
One obscure test that might highlight the problem is using the round robin
failover mechanism to connection to broker 1 then 2.
Where the user does not have permission to access broker 1. This should leave
the StateManager in a funny state.
The half of the problem where the ProtocolHandler only had a reference to
another StateManager has been resolved by having the PH have the StateManager
and all other uses refer to that instance.
So when it changes it is only one update that is requried.
> Client protocol state is maintiained between connections when the connection
> fails during initial connection
> ------------------------------------------------------------------------------------------------------------
>
> Key: QPID-585
> URL: https://issues.apache.org/jira/browse/QPID-585
> Project: Qpid
> Issue Type: Bug
> Components: Java Client
> Affects Versions: M2
> Reporter: Martin Ritchie
> Assignee: Martin Ritchie
>
> When the first connection is being established the stateManager is not
> replaced for each new connection attempt. This leads the client to get out of
> sync.
> This can be seen if you place an old log4j at the start of the classpath. The
> client will throw a NoSuchMethod (isTraceEnabled) exception wich is wrapped
> in a ProtocolCodecException. When AMQConnection loops and tries to reconnect
> the state is now stale and needs reset.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]