[
https://issues.apache.org/jira/browse/QPID-7077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15152309#comment-15152309
]
ASF subversion and git services commented on QPID-7077:
-------------------------------------------------------
Commit 1731072 from [~k-wall] in branch 'java/trunk'
[ https://svn.apache.org/r1731072 ]
QPID-7077: [Java Client] Make access to _failoverLatch thread safe
* Also added logging to better understand the sporadic NPE.
> [Java Client] NPE reported from failover handling code
> ------------------------------------------------------
>
> Key: QPID-7077
> URL: https://issues.apache.org/jira/browse/QPID-7077
> Project: Qpid
> Issue Type: Bug
> Components: Java Client
> Reporter: Keith Wall
>
> The CI logs for AddressBasedFailoverBehaviour showed a NPE within failover
> handling code. In this case, the NPE cause the IO thread to abort (it was
> caught by the uncaught exception handler and log. A test failure was not
> reported.
> This problem could only affect a user using the connection failover feature.
> If this problem were to occur in a user application, I think the affect would
> be that the application would not auto reconnect. This could affect the
> resilience of a user application.
> {noformat}
> AddressBasedFailoverBehaviourTest.testPublishClientAcknowledgedWithFailoverMutex.txt]
> Thread terminated due to uncaught exceptionjava.lang.NullPointerException
> at
> org.apache.qpid.client.AMQConnectionDelegate_0_10$1.run(AMQConnectionDelegate_0_10.java:353)
> at
> org.apache.qpid.client.AMQConnection.doWithAllLocks(AMQConnection.java:1865)
> at
> org.apache.qpid.client.AMQConnection.doWithAllLocks(AMQConnection.java:1853)
> at
> org.apache.qpid.client.AMQConnection.doWithAllLocks(AMQConnection.java:1853)
> at
> org.apache.qpid.client.AMQConnection.doWithAllLocks(AMQConnection.java:1832)
> at
> org.apache.qpid.client.AMQConnectionDelegate_0_10.closed(AMQConnectionDelegate_0_10.java:318)
> at org.apache.qpid.transport.Connection.closed(Connection.java:600)
> at org.apache.qpid.transport.network.Assembler.closed(Assembler.java:115)
> at
> org.apache.qpid.transport.network.InputHandler.closed(InputHandler.java:221)
> at org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:225)
> at java.lang.Thread.run(Thread.java:781)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]