You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/04/20 08:02:00 UTC

[jira] [Work logged] (ARTEMIS-4243) ActiveMQ Artemis CLI fails to export bindings without routing types

     [ https://issues.apache.org/jira/browse/ARTEMIS-4243?focusedWorklogId=858122&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-858122 ]

ASF GitHub Bot logged work on ARTEMIS-4243:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Apr/23 08:01
            Start Date: 20/Apr/23 08:01
    Worklog Time Spent: 10m 
      Work Description: brusdev merged PR #4437:
URL: https://github.com/apache/activemq-artemis/pull/4437




Issue Time Tracking
-------------------

            Worklog Id:     (was: 858122)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)