You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2020/05/14 15:27:00 UTC

[jira] [Updated] (ARTEMIS-2765) StringIndexOutOfBoundsException while processing broker.xml

     [ https://issues.apache.org/jira/browse/ARTEMIS-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Bertram updated ARTEMIS-2765:
------------------------------------
    Description: 
When processing a {{broker.xml}} file that contains either an unterminated property reference ({{$\{}}) or has unrelated right curly braces as part of the content, the following exception is thrown:
{noformat}
java.lang.StringIndexOutOfBoundsException: String index out of range: -110
 at java.lang.String.substring(String.java:1967)
 at org.apache.activemq.artemis.utils.XMLUtil.replaceSystemPropsInString(XMLUtil.java:262)
 at ...
{noformat}

  was:
When processing a broker.xml file that contains either an unterminated property reference ("$\{") or has unrelated right curly braces as part of the content, the following exception is thrown:

java.lang.StringIndexOutOfBoundsException: String index out of range: -110
 at java.lang.String.substring(String.java:1967)
 at org.apache.activemq.artemis.utils.XMLUtil.replaceSystemPropsInString(XMLUtil.java:262)
 at ...


> StringIndexOutOfBoundsException while processing broker.xml
> -----------------------------------------------------------
>
>                 Key: ARTEMIS-2765
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2765
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.12.0
>            Reporter: Chris Rog
>            Priority: Critical
>
> When processing a {{broker.xml}} file that contains either an unterminated property reference ({{$\{}}) or has unrelated right curly braces as part of the content, the following exception is thrown:
> {noformat}
> java.lang.StringIndexOutOfBoundsException: String index out of range: -110
>  at java.lang.String.substring(String.java:1967)
>  at org.apache.activemq.artemis.utils.XMLUtil.replaceSystemPropsInString(XMLUtil.java:262)
>  at ...
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)