activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (ACTIVEMQ6-55) lack of link context when processing AMQP detach response results in NPE
Date Thu, 12 Mar 2015 11:45:39 GMT


ASF GitHub Bot commented on ACTIVEMQ6-55:

GitHub user gemmellr opened a pull request:

    ACTIVEMQ6-55: prevent NPE when closing a link with no context


You can merge this pull request into a Git repository by running:

    $ git pull ACTIVEMQ6-55-fix-NPE

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #176
commit 169206efbbb8d5d3cb65aba480c4d59be4a0f4b0
Author: Robert Gemmell <>
Date:   2015-03-12T11:42:29Z

    ACTIVEMQ6-55: prevent NPE when closing a link that didnt get as far as having a context


> lack of link context when processing AMQP detach response results in NPE
> ------------------------------------------------------------------------
>                 Key: ACTIVEMQ6-55
>                 URL:
>             Project: Apache ActiveMQ 6
>          Issue Type: Bug
>    Affects Versions: 6.0.0
>            Reporter: Robbie Gemmell
> When an AMQP 1.0 link (producer/consumer) is detached/closed by the broker with an error,
clients must send a response Detach frame. If the link context was not set before the error
occurred, this leads to the broker experiencing an NPE while processing the reply.
> {noformat}
> java.lang.NullPointerException
> 	at org.proton.plug.context.AbstractConnectionContext$LocalListener.onRemoteClose(
> 	at org.proton.plug.handler.Events.dispatch(
> 	at org.proton.plug.handler.impl.ProtonHandlerImpl.dispatch(
> 	at org.proton.plug.handler.impl.ProtonHandlerImpl.flush(
> 	at org.proton.plug.handler.impl.ProtonHandlerImpl.inputBuffer(
> 	at org.proton.plug.context.AbstractConnectionContext.inputBuffer(
> 	at org.apache.activemq.core.protocol.proton.ActiveMQProtonRemotingConnection.bufferReceived(
> 	at org.apache.activemq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(
> 	at org.apache.activemq.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(
> 	at
> 	at
> 	at
> 	at$
> 	at
> 	at
> 	at
> 	at
> 	at io.netty.util.concurrent.SingleThreadEventExecutor$
> 	at
> {noformat}

This message was sent by Atlassian JIRA

View raw message