activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARTEMIS-981) OpenWire can't receive empty ObjectMessage
Date Wed, 22 Feb 2017 05:46:44 GMT

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

ASF GitHub Bot commented on ARTEMIS-981:
----------------------------------------

GitHub user gaohoward opened a pull request:

    https://github.com/apache/activemq-artemis/pull/1036

    ARTEMIS-981 OpenWire can't receive empty ObjectMessage

    When sending an empty ObjectMessage, broker doesn't
    write a 'length' field to the message buffer. In delivery
    the broker tries to read the length from the buffer, which
    causes "IndexOutOfBoundsException".
    
    To fix it, we need to check if the buffer is empty or not,
    and only read it if the buffer is not empty.

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

    $ git pull https://github.com/gaohoward/activemq-artemis master-ow-objmsg

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

    https://github.com/apache/activemq-artemis/pull/1036.patch

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

    This closes #1036
    
----
commit 2fabd059d88322404067527c90e7ca7f802349a6
Author: Howard Gao <howard.gao@gmail.com>
Date:   2017-02-19T07:02:46Z

    ARTEMIS-981 OpenWire can't receive empty ObjectMessage
    
    When sending an empty ObjectMessage, broker doesn't
    write a 'length' field to the message buffer. In delivery
    the broker tries to read the length from the buffer, which
    causes "IndexOutOfBoundsException".
    
    To fix it, we need to check if the buffer is empty or not,
    and only read it if the buffer is not empty.

----


> OpenWire can't receive empty ObjectMessage
> ------------------------------------------
>
>                 Key: ARTEMIS-981
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-981
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: OpenWire
>    Affects Versions: 1.5.2
>            Reporter: Howard Gao
>            Assignee: Howard Gao
>             Fix For: 2.0.0
>
>
> When sending an empty ObjectMessage, broker doesn't
> write a 'length' field to the message buffer. In delivery the broker
> tries to read the length from the buffer, which cause "IndexOutOfBoundsException".
> To fix it, we need to check if the buffer is empty or not, and only
> read it if the buffer is not empty.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message