You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Viliam Durina (Jira)" <ji...@apache.org> on 2019/10/15 13:53:00 UTC

[jira] [Comment Edited] (ARTEMIS-2204) broker service not working - NoSuchMethodError

    [ https://issues.apache.org/jira/browse/ARTEMIS-2204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16951940#comment-16951940 ] 

Viliam Durina edited comment on ARTEMIS-2204 at 10/15/19 1:52 PM:
------------------------------------------------------------------

I resolved it by adding exclusion to maven:

{{<dependency>}}
 {{  <groupId>org.apache.activemq</groupId>}}
 {{  <artifactId>apache-artemis</artifactId>}}
 {{   <version>${activemq.version}</version>}}
 {{  <scope>test</scope>}}

 {{  <exclusions>}}
 {{    <exclusion>}}
 {{      <groupId>org.apache.activemq</groupId>}}
 {{      }}{{<artifactId>artemis-jms-client-all</artifactId>}}
 {{    </exclusion>}}
 {{  </exclusions>}}

{{ </dependency>}}


was (Author: vilo):
I resolved it by adding exclusion to maven:

{{<dependency>}}
{{  <groupId>org.apache.activemq</groupId>}}
{{  <artifactId>apache-artemis</artifactId>}}
{{   <version>${activemq.version}</version>}}
{{  <scope>test</scope>}}
{{  }}
{{  <exclusions>}}
{{    <exclusion>}}
{{      <groupId>org.apache.activemq</groupId>}}
{{      }}{{<artifactId>artemis-jms-client-all</artifactId>}}
{{    </exclusion>}}
{{  </exclusions>}}
{{ </dependency>}}

> broker service not working - NoSuchMethodError
> ----------------------------------------------
>
>                 Key: ARTEMIS-2204
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2204
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.6.3
>            Reporter: Jisun, Shin
>            Priority: Major
>
> Because of shaded package broker fail
> 16:08:24.683 [Thread-10 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$5@408397c7)] WARN  o.a.activemq.artemis.core.server(805)  - AMQ222225: Sending unexpected exception to the client
> 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:61)
> 	at org.apache.activemq.artemis.core.postoffice.impl.PostOfficeImpl.createBindings(PostOfficeImpl.java:1568)
> 	at org.apache.activemq.artemis.core.postoffice.impl.SimpleAddressManager.getMatchingBindings(SimpleAddressManager.java:127)
> 	at org.apache.activemq.artemis.core.postoffice.impl.PostOfficeImpl.getMatchingBindings(PostOfficeImpl.java:755)
> 	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.bindingQuery(ActiveMQServerImpl.java:844)
> 	at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.executeBindingQuery(ServerSessionImpl.java:849)
> 	at org.apache.activemq.artemis.core.protocol.core.ServerSessionPacketHandler.slowPacketHandler(ServerSessionPacketHandler.java:421)
> 	at org.apache.activemq.artemis.core.protocol.core.ServerSessionPacketHandler.onMessagePacket(ServerSessionPacketHandler.java:287)
> 	at org.apache.activemq.artemis.utils.actors.Actor.doTask(Actor.java:33)
> 	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:66)
> 	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:66)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> 	at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)