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 2025/11/03 20:02:00 UTC

[jira] [Created] (ARTEMIS-5739) Can't use $ for wildcard any-words

Justin Bertram created ARTEMIS-5739:
---------------------------------------

             Summary: Can't use $ for wildcard any-words
                 Key: ARTEMIS-5739
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5739
             Project: ActiveMQ Artemis
          Issue Type: Bug
            Reporter: Justin Bertram
            Assignee: Justin Bertram


In previous versions of Artemis it was possible to use {{$}} for {{any-words}}, e.g.:
{code:xml}
<wildcard-addresses>
   <routing-enabled>true</routing-enabled>
   <delimiter>.</delimiter>
   <any-words>$</any-words>
   <single-word>*</single-word>
</wildcard-addresses>
{code}

However, that was broken in the commits for ARTEMIS-4754. Now if {{$}} is used for {{any-words}} and in an address-setting or security-setting {{match}} this exception is thrown on startup:
{noformat}
AMQ224000: Failure in initialisation
java.util.regex.PatternSyntaxException: Unmatched closing ')' near index 25
activemq\.management\(\Q.\E.+)*$
                         ^
	at java.base/java.util.regex.Pattern.error(Pattern.java:2028)
	at java.base/java.util.regex.Pattern.compile(Pattern.java:1787)
	at java.base/java.util.regex.Pattern.<init>(Pattern.java:1430)
	at java.base/java.util.regex.Pattern.compile(Pattern.java:1069)
	at org.apache.activemq.artemis.core.settings.impl.Match.<init>(Match.java:75)
	at org.apache.activemq.artemis.core.settings.impl.HierarchicalObjectRepository.addMatch(HierarchicalObjectRepository.java:216)
	at org.apache.activemq.artemis.core.settings.impl.HierarchicalObjectRepository.addMatch(HierarchicalObjectRepository.java:189)
	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.deployAddressSettingsFromConfiguration(ActiveMQServerImpl.java:3820)
	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart1(ActiveMQServerImpl.java:3357)
	at org.apache.activemq.artemis.core.server.impl.PrimaryOnlyActivation.run(PrimaryOnlyActivation.java:70)
	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:754)
	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:644)
	at org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:67)
	at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:132)
	at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:222)
	at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:170)
	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:569)
	at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:149)
	at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:61){noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact