Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3998

Error setting broker properties for connectionRouters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.25.0
    • 2.26.0
    • None
    • None

    Description

      ActiveMQ Artemis 2.25.0 raise the following exception when it load broker properties for connectionRouters:

      connectionRouters.autoShard.keyType=CLIENT_ID
      connectionRouters.autoShard.localTargetFilter=NULL|${STATEFUL_SET_ORDINAL}|-${STATEFUL_SET_ORDINAL}
      connectionRouters.autoShard.policyConfiguration=CONSISTENT_HASH_MODULO
      connectionRouters.autoShard.policyConfiguration.properties.MODULO=2
      acceptorConfigurations.tcp.params.router=autoShard
      addressesSettings."LB.#".defaultAddressRoutingType=ANYCAST
      
      ERROR [org.apache.activemq.artemis.core.server] AMQ224097: Failed to start server: java.lang.IllegalArgumentException: failed to locate add method for collection property addConnectionRouter
              at org.apache.activemq.artemis.core.config.impl.ConfigurationImpl$CollectionAutoFillPropertiesUtil.newNamedInstanceForCollection(ConfigurationImpl.java:2998) [artemis-server-2.25.0.jar:2.25.0]
              at org.apache.activemq.artemis.core.config.impl.ConfigurationImpl$CollectionAutoFillPropertiesUtil.getProperty(ConfigurationImpl.java:2871) [artemis-server-2.25.0.jar:2.25.0]
              at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:896) [commons-beanutils-1.9.4.jar:1.9.4]
              at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:823) [commons-beanutils-1.9.4.jar:1.9.4]
              at org.apache.activemq.artemis.core.config.impl.ConfigurationImpl.populateWithProperties(ConfigurationImpl.java:587) [artemis-server-2.25.0.jar:2.25.0]
              at org.apache.activemq.artemis.core.config.impl.ConfigurationImpl.parsePrefixedProperties(ConfigurationImpl.java:531) [artemis-server-2.25.0.jar:2.25.0]
              at org.apache.activemq.artemis.core.config.impl.ConfigurationImpl.parseProperties(ConfigurationImpl.java:501) [artemis-server-2.25.0.jar:2.25.0]
              at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:618) [artemis-server-2.25.0.jar:2.25.0]
              at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:579) [artemis-server-2.25.0.jar:2.25.0]
              at org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:64) [artemis-cli-2.25.0.jar:2.25.0]
              at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:127) [artemis-cli-2.25.0.jar:2.25.0]
              at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:160) [artemis-cli-2.25.0.jar:2.25.0]
              at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:108) [artemis-cli-2.25.0.jar:2.25.0]
              at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:135) [artemis-cli-2.25.0.jar:2.25.0]
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java.base:]
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) [java.base:]
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java.base:]
              at java.base/java.lang.reflect.Method.invoke(Method.java:568) [java.base:]
              at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:134) [artemis-boot.jar:2.25.0]
              at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:50) [artemis-boot.jar:2.25.0]
      

      Attachments

        Issue Links

          Activity

            People

              brusdev Domenico Francesco Bruscino
              brusdev Domenico Francesco Bruscino
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m