activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dejan Bosanac (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMQ-5431) lack of link context when processing AMQP detach response results in NPE and stopping connection
Date Tue, 25 Nov 2014 09:45:12 GMT

     [ https://issues.apache.org/jira/browse/AMQ-5431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dejan Bosanac resolved AMQ-5431.
--------------------------------
    Resolution: Fixed
      Assignee: Dejan Bosanac

Patch applied. Thanks!

> lack of link context when processing AMQP detach response results in NPE and stopping
connection
> ------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-5431
>                 URL: https://issues.apache.org/jira/browse/AMQ-5431
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: AMQP
>    Affects Versions: 5.10.0
>            Reporter: Robbie Gemmell
>            Assignee: Dejan Bosanac
>             Fix For: 5.11.0
>
>         Attachments: 0001-AMQ-5431-prevent-NPE-when-a-Detach-frame-is-received.patch
>
>
> 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 and then
stopping the entire connection.
> {noformat}
> org.apache.activemq.transport.amqp.AmqpProtocolException: Could not process AMQP commands
> 	at org.apache.activemq.transport.amqp.AmqpProtocolConverter.onFrame(AmqpProtocolConverter.java:319)
> 	at org.apache.activemq.transport.amqp.AmqpProtocolConverter.onAMQPData(AmqpProtocolConverter.java:247)
> 	at org.apache.activemq.transport.amqp.AmqpTransportFilter.onCommand(AmqpTransportFilter.java:98)
> 	at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
> 	at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)
> 	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NullPointerException
> 	at org.apache.activemq.transport.amqp.AmqpProtocolConverter.processLinkEvent(AmqpProtocolConverter.java:359)
> 	at org.apache.activemq.transport.amqp.AmqpProtocolConverter.onFrame(AmqpProtocolConverter.java:303)
> 	... 6 more
> {noformat}



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

Mime
View raw message