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 18:38:00 UTC
[jira] [Comment Edited] (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=18117826#comment-18117826 ]
Justin Bertram edited comment on ARTEMIS-6266 at 9/21/26 6:37 PM:
------------------------------------------------------------------
bq. 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.
Yes, that does work, thanks. I could also create two custom classloaders so I can use them both at once.
bq. Out of curiosity, what is your specific use-case? The list of dependencies you've provided seems a bit odd (e.g. including both {{org.apache.artemis:artemis-server}} and {{org.apache.artemis:artemis-jakarta-server}} instead of just one or the other).
The {{org.apache.artemis:artemis-server}} is wrong and actually a leftover of my migration to Jakarta. So what I provide is two embedded brokers: ActiveMQ (Classic) and Artemis. Depending on the customer they use one or the other. One top I have a unified Java API/REST API with most common functions so switching is easy.
was (Author: skin27):
"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."
Yes, that does work, thanks. I could also create two custom classloaders so I can use them both at once.
"Out of curiosity, what is your specific use-case? The list of dependencies you've provided seems a bit odd (e.g. including both {{org.apache.artemis:artemis-server}} and {{org.apache.artemis:artemis-jakarta-server}} instead of just one or the other)."
The {{org.apache.artemis:artemis-server is wrong and actually a leftover of my migration to Jakarta. So what I provide is two embedded brokers: ActiveMQ (Classic) and Artemis. Depending on the customer they use one or the other. One top I have a unified Java API/REST API with most common functions so switching is easy.}}
> 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