[AMQ7, Address] "AMQ224000: Failure in initialisation: java.lang.IllegalArgumentException: Collection is empty" when Address has no routeType defined.
Issue
- getting the following exception at initialisation time
AMQ224000: Failure in initialisation: java.lang.IllegalArgumentException: Collection is empty
at java.util.EnumSet.copyOf(EnumSet.java:174) [rt.jar:1.8.0_20]
at org.apache.activemq.artemis.core.postoffice.impl.SimpleAddressManager.lambda$updateAddressInfo$0(SimpleAddressManager.java:240) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.core.postoffice.impl.SimpleAddressManager$$Lambda$1/1896828359.apply(Unknown Source)
at java.util.concurrent.ConcurrentHashMap.computeIfPresent(ConcurrentHashMap.java:1769) [rt.jar:1.8.0_20]
at org.apache.activemq.artemis.core.postoffice.impl.SimpleAddressManager.updateAddressInfo(SimpleAddressManager.java:238) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.core.postoffice.impl.PostOfficeImpl.updateAddressInfo(PostOfficeImpl.java:485) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.updateAddressInfo(ActiveMQServerImpl.java:2443) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.addOrUpdateAddressInfo(ActiveMQServerImpl.java:2474) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.deployAddressesFromConfiguration(ActiveMQServerImpl.java:2324) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.deployAddressesFromConfiguration(ActiveMQServerImpl.java:2318) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:2187) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:71) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:519) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:468) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:109) [artemis-cli-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:78) [artemis-cli-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:148) [artemis-cli-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:95) [artemis-cli-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:122) [artemis-cli-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_20]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_20]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_20]
at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_20]
at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:129) [artemis-boot.jar:2.0.0.amq-700011-redhat-1]
at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:49) [artemis-boot.jar:2.0.0.amq-700011-redhat-1]
Environment
- JBoss AMQ 7.0.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
