Keith Wall created QPID-6099:
--------------------------------

             Summary: Closing a 0-8..0-9-1 connection with an exceptions 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
            Reporter: Keith Wall


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 - /192.168.0.1:51612] 
(thread.LoggingUncaughtExceptionHandler) - Uncaught exception in thread 
"IoReceiver - /192.168.0.1:51612"
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 message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to