GitHub user henock opened a pull request:
https://github.com/apache/activemq-artemis/pull/2303
NO-JIRA - 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-2
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/2303.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 #2303
----
commit 153e0a0260c9b143a2ed21b80b4fc07af5f18428
Author: henock <henock@...>
Date: 2018-09-11T13:48:17Z
NO-JIRA - 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)
...
----
---