I'm using the following dependency so a plain vanilla artemis:

        <dependencies>
                <dependency>
                        <groupId>org.apache.activemq</groupId>
                        <artifactId>apache-artemis</artifactId>
                        <version>2.16.0</version>
                        <type>pom</type>
                </dependency>
        </dependencies>

the code is the one from the link with XML configuration file provided there.

My next goal would be using a private build snapshot but of course first I'd like to get a very basic setup working.
Am 04.02.21 um 14:34 schrieb Jean-Baptiste Onofre:
Oh, sorry, you mean directly, not in Karaf. My bad.

Regards
JB

Le 4 févr. 2021 à 14:31, Christoph Läubrich <m...@laeubi-soft.de> a écrit :

I try to run an embedded server like described in this example [1] but getting 
the following error, is there anything missing on my side?
Runtime is maven with java 11, no compile errors...

java.lang.NoSuchMethodError: 
org.apache.activemq.artemis.utils.uri.BeanSupport.registerConverter(Lorg/apache/commons/beanutils/Converter;Ljava/lang/Class;)V
        at 
org.apache.activemq.artemis.core.server.cluster.impl.MessageLoadBalancingType.<clinit>(MessageLoadBalancingType.java:27)
        at 
org.apache.activemq.artemis.core.postoffice.impl.BindingsImpl.<init>(BindingsImpl.java:71)
        at 
org.apache.activemq.artemis.core.postoffice.impl.PostOfficeImpl.createBindings(PostOfficeImpl.java:1931)
        at 
org.apache.activemq.artemis.core.postoffice.impl.SimpleAddressManager.addMappingInternal(SimpleAddressManager.java:259)
        at 
org.apache.activemq.artemis.core.postoffice.impl.SimpleAddressManager.addBinding(SimpleAddressManager.java:98)
        at 
org.apache.activemq.artemis.core.postoffice.impl.WildcardAddressManager.addBinding(WildcardAddressManager.java:95)
        at 
org.apache.activemq.artemis.core.postoffice.impl.PostOfficeImpl.addBinding(PostOfficeImpl.java:873)
        at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.createQueue(ActiveMQServerImpl.java:3771)
        at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.createQueue(ActiveMQServerImpl.java:3703)
        at 
org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.createQueue(ServerSessionImpl.java:739)
        at 
org.apache.activemq.artemis.core.protocol.core.ServerSessionPacketHandler.slowPacketHandler(ServerSessionPacketHandler.java:371)
        at 
org.apache.activemq.artemis.core.protocol.core.ServerSessionPacketHandler.onMessagePacket(ServerSessionPacketHandler.java:292)
        at org.apache.activemq.artemis.utils.actors.Actor.doTask(Actor.java:33)
        at 
org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65)
        at 
org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42)
        at 
org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31)
        at 
org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at 
org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118)

Exception in thread "main" 
ActiveMQInternalErrorException[errorType=INTERNAL_ERROR message=null]
        at 
org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:540)
        at 
org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:434)
        at 
org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.createQueue(ActiveMQSessionContext.java:821)
        at 
org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.internalCreateQueue(ClientSessionImpl.java:2038)
        at 
org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.createQueue(ClientSessionImpl.java:304)
        at artemis.TestServer.main(TestServer.java:22)

[1] 
https://activemq.apache.org/components/artemis/documentation/latest/embedding-activemq.html

Reply via email to