You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2026/09/21 15:45:00 UTC

[jira] [Commented] (ARTEMIS-6266) Dependency mismatch for Openwire protocol

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

Justin Bertram commented on ARTEMIS-6266:
-----------------------------------------

I don't believe we can move to ActiveMQ 6.x until we move fully to Jakarta in 3.0 via ARTEMIS-5324.

Until then I believe you should be able to use the Jakarta dependencies in your project and exclude ActiveMQ 5.x dependencies. Let me know if this works for your use-case.

> Dependency mismatch for Openwire protocol
> -----------------------------------------
>
>                 Key: ARTEMIS-6266
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-6266
>             Project: Artemis
>          Issue Type: Bug
>          Components: OpenWire
>    Affects Versions: 2.57.0
>            Reporter: Raymond
>            Priority: Minor
>
> I use Artemis 2.57.0 (Java 25):
> {code:java}
> <dependency>
>     <groupId>org.apache.artemis</groupId>
>     <artifactId>artemis-bom</artifactId>
>     <version>${activemq-artemis.version}</version>
>     <type>pom</type>
>     <scope>import</scope>
> </dependency> {code}
> These are my dependencies:
> {code:java}
> <!-- activemq artemis dependencies -->
> <dependency>
>     <groupId>org.apache.artemis</groupId>
>     <artifactId>artemis-server</artifactId>
> </dependency>
> <dependency>
>     <groupId>org.apache.artemis</groupId>
>     <artifactId>artemis-jakarta-server</artifactId>
> </dependency>
> <dependency>
>     <groupId>org.apache.artemis</groupId>
>     <artifactId>artemis-commons</artifactId>
> </dependency>
> <dependency>
>     <groupId>org.apache.artemis</groupId>
>     <artifactId>artemis-jakarta-ra</artifactId>
> </dependency>
> <dependency>
>     <groupId>org.apache.artemis</groupId>
>     <artifactId>artemis-dto</artifactId>
> </dependency>
> <dependency>
>     <groupId>org.apache.artemis</groupId>
>     <artifactId>artemis-amqp-protocol</artifactId>
> </dependency>
> <dependency>
>     <groupId>org.apache.artemis</groupId>
>     <artifactId>artemis-openwire-protocol</artifactId>
> </dependency>
>  {code}
> On the artemis-openwire-protocol dependency I get the following runtime error:
> {code:java}
> 2026-09-21T12:26:34.521+02:00  WARN 22316 --- [gateway] [artemis-broker)] o.a.a.a.utils.actors.OrderedExecutor     : 'java.lang.String org.apache.activemq.util.MarshallingSupport.readUTF8(java.io.DataInput)'java.lang.NoSuchMethodError: 'java.lang.String org.apache.activemq.util.MarshallingSupport.readUTF8(java.io.DataInput)'
>         at org.apache.activemq.artemis.core.protocol.openwire.OpenWireMessageConverter.writeTextType(OpenWireMessageConverter.java:236)
>         at org.apache.activemq.artemis.core.protocol.openwire.OpenWireMessageConverter.inbound(OpenWireMessageConverter.java:131)
>         at org.apache.activemq.artemis.core.protocol.openwire.amq.AMQSession.send(AMQSession.java:386)
>         at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processMessage(OpenWireConnection.java:1755)
>         at org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:769)
>         at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:366)
>         at org.apache.activemq.artemis.utils.actors.ThresholdActor.doTask(ThresholdActor.java:68)
>         at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:69)
>         at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:59)
>         at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:32)
>         at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:69)
>         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090) {code}
> The reason is that artemis-openwire-protocol depends on [activemq-client|https://mvnrepository.com/artifact/org.apache.activemq/activemq-client] 5.19.10:
> [https://mvnrepository.com/artifact/org.apache.artemis/artemis-openwire-protocol/2.57.0/dependencies]
> I am however using latest ActiveMQ 6.3.2 (Jakarta based).
> Artemis could update the latest ActiveMQ 6.3.2, but it's maybe preferable that there is no cross-dependency between Artemis and ActiveMQ (especially after the separation), and that artemis forks it's own openwire protocols. Then both brokers could operate fully independent of each other.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org