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

ASF subversion and git services commented on ARTEMIS-2093:
----------------------------------------------------------

Commit 3112b4f3db6a77b3d996d72bac65d539d1135ce8 in activemq-artemis's branch 
refs/heads/master from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=3112b4f ]

ARTEMIS-2093 NPE thrown by NettyConnector::createConnection

Given that NettyConnector::createConnection isn't happening on the
channel's event loop, it could race with a channel close event, that
would clean the whole channel pipeline, leading to a NPE while
trying to use a configured channel handler of the pipeline.


> NPE thrown by NettyConnector::createConnection
> ----------------------------------------------
>
>                 Key: ARTEMIS-2093
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2093
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.6.3
>            Reporter: Francesco Nigro
>            Assignee: Francesco Nigro
>            Priority: Minor
>             Fix For: 2.7.0, 2.6.4
>
>
> On NettyConnector::createConnection, 
> ChannelPipeline::get(ActiveMQChannelHandler.class) can return null, causing 
> NPE, if the channel is being closed and/or the channel pipeline is being 
> cleaned up before it.
> It can happen because NettyConnector::createConnection is not being called 
> inside the channel's event loop and is concurrent with a channel close event 
> (that's completed into the event loop).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to