qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-6099) Closing a 0-8..0-9-1 connection with an exception whose message exceeds 255 characters leads to unexpected Broker shutdown
Date Mon, 15 Sep 2014 11:08:34 GMT

    [ https://issues.apache.org/jira/browse/QPID-6099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14133789#comment-14133789

ASF subversion and git services commented on QPID-6099:

Commit 1624998 from [~k-wall] in branch 'qpid/trunk'
[ https://svn.apache.org/r1624998 ]

QPID-6099: [Java Broker] Prevent exceptions whose message exceeds 255 characters causing unexpected
Broker shutdown.

> Closing a 0-8..0-9-1 connection with an exception whose message exceeds 255 characters
leads to unexpected Broker shutdown
> --------------------------------------------------------------------------------------------------------------------------
>                 Key: QPID-6099
>                 URL: https://issues.apache.org/jira/browse/QPID-6099
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.16, 0.22, 0.30
>            Reporter: Keith Wall
>            Priority: Critical
> If an unexpected exception occurs within the Broker whilst processing on behalf of a
messaging client, the exception text is sent to the client as part of the connection.close
frame.  However, if the exception message is longer than 255 characters, this leads to an
unexpected Broker shutdown and the following exception:
> {noformat}
> 2014-09-15 11:10:07,574 ERROR [IoReceiver - /] (thread.LoggingUncaughtExceptionHandler)
- Uncaught exception in thread "IoReceiver - /"
> java.lang.IllegalArgumentException: Cannot create AMQShortString with number of octets
over 255!
>        at org.apache.qpid.framing.AMQShortString.<init>(AMQShortString.java:147)
>        at org.apache.qpid.framing.AMQShortString.<init>(AMQShortString.java:133)
>        at org.apache.qpid.server.protocol.v0_8.AMQProtocolEngine.exception(AMQProtocolEngine.java:1356)
>        at org.apache.qpid.server.protocol.MultiVersionProtocolEngine.exception(MultiVersionProtocolEngine.java:138)
>        at org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:217)
>        at java.lang.Thread.run(Thread.java:745)
> {noformat}
> The Broker must be restarted to resume normal operations.
> This was seen to occur when using BDB HA with a long environment path name, as JE commonly
includes the environment path within the text of its exceptions.   This defect appears to
be longstanding - I suspect it would have caused an unexpected shutdown since  the introduction
of shutdown on unexpected exception - QPID-464 (0.16).

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org

View raw message