GitHub user henock opened a pull request:

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

    Update SimpleString to give a more useful error message

    Currently we get.
    java.lang.IndexOutOfBoundsException: **_null_**
        at 
org.apache.activemq.artemis.api.core.SimpleString.readSimpleString(SimpleString.java:183)
        at 
org.apache.activemq.artemis.api.core.SimpleString$ByteBufSimpleStringPool.create(SimpleString.java:584)
            ....
    
    Should be 
    java.lang.IndexOutOfBoundsException: **_Error reading in simpleString, 
length=YYY is greater than readableBytes=XXX_**
        at 
org.apache.activemq.artemis.api.core.SimpleString.readSimpleString(SimpleString.java:183)
        at 
org.apache.activemq.artemis.api.core.SimpleString$ByteBufSimpleStringPool.create(SimpleString.java:584)
            ...

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

    $ git pull https://github.com/henock/activemq-artemis patch-1

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

    https://github.com/apache/activemq-artemis/pull/2302.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 #2302
    
----
commit 230d344f60c8c2de9d406760a0d0c68408c99cfc
Author: henock <henock@...>
Date:   2018-09-11T10:57:11Z

    Update SimpleString to give a more useful error message
    
    Currently we get.
    java.lang.IndexOutOfBoundsException: null
        at 
org.apache.activemq.artemis.api.core.SimpleString.readSimpleString(SimpleString.java:183)
        at 
org.apache.activemq.artemis.api.core.SimpleString$ByteBufSimpleStringPool.create(SimpleString.java:584)
            ....
    
    Should be 
    java.lang.IndexOutOfBoundsException: Error reading in simpleString 
length=YYY is greater than readableBytes=XXX
        at 
org.apache.activemq.artemis.api.core.SimpleString.readSimpleString(SimpleString.java:183)
        at 
org.apache.activemq.artemis.api.core.SimpleString$ByteBufSimpleStringPool.create(SimpleString.java:584)
            ...

----


---

Reply via email to