You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Domenico Francesco Bruscino (Jira)" <ji...@apache.org> on 2023/04/17 08:43:00 UTC
[jira] [Created] (ARTEMIS-4243) ActiveMQ Artemis CLI fails to export bindings without routing types
Domenico Francesco Bruscino created ARTEMIS-4243:
----------------------------------------------------
Summary: ActiveMQ Artemis CLI fails to export bindings without routing types
Key: ARTEMIS-4243
URL: https://issues.apache.org/jira/browse/ARTEMIS-4243
Project: ActiveMQ Artemis
Issue Type: Bug
Affects Versions: 2.28.0
Reporter: Domenico Francesco Bruscino
Assignee: Domenico Francesco Bruscino
The ActiveMQ Artemis CLI fails to export a journal that contains a binding without routing types:
{code:java}
$ ./broker/bin/artemis data exp
<activemq-journal>
<bindings>
<address-binding routing-types="ANYCAST" name="DLQ" id="2"/>
<address-binding routing-types="ANYCAST" name="ExpiryQueue" id="6"/>
<address-binding routing-types="MULTICAST" name="activemq.notifications" id="10"/>
java.lang.StringIndexOutOfBoundsException: begin 0, end -2, length 0
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4602)
at java.base/java.lang.String.substring(String.java:2705)
at org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.printBindingsAsXML(XmlDataExporter.java:347)
at org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.printDataAsXML(XmlDataExporter.java:327)
at org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.writeXMLData(XmlDataExporter.java:155)
at org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.writeOutput(XmlDataExporter.java:148)
at org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.process(XmlDataExporter.java:137)
at org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.execute(XmlDataExporter.java:104)
at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:212)
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:162)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:144)
at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:61)
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)