Skip to content

Document artemis-jakarta-server shipped with Spring Boot 4.0 does not work with Java 25 #48344

@krezovic

Description

@krezovic

Artemis Jakarta Server added support for Java 25 in its version 2.44.0, but Spring Boot depends on 2.43.0.

This causes runtime failure

2025-11-29T13:57:20.163+01:00 ERROR 27636 --- [demo] [           main] o.apache.activemq.artemis.core.server    : AMQ224000: Failure in initialisation

java.lang.UnsupportedOperationException: getSubject is not supported
	at java.base/javax.security.auth.Subject.getSubject(Subject.java:277) ~[na:na]
	at org.apache.activemq.artemis.logs.AuditLogger.getCaller(AuditLogger.java:73) ~[artemis-commons-2.43.0.jar:2.43.0]
	at org.apache.activemq.artemis.logs.AuditLogger.getNotificationInfo(AuditLogger.java:1125) ~[artemis-commons-2.43.0.jar:2.43.0]
	at org.apache.activemq.artemis.core.management.impl.ActiveMQServerControlImpl.getNotificationInfo(ActiveMQServerControlImpl.java:4303) ~[artemis-server-2.43.0.jar:2.43.0]
	at java.management/com.sun.jmx.mbeanserver.MBeanIntrospector.findNotifications(MBeanIntrospector.java:444) ~[na:na]
	at java.management/com.sun.jmx.mbeanserver.MBeanIntrospector.getMBeanInfo(MBeanIntrospector.java:390) ~[na:na]
	at java.management/com.sun.jmx.mbeanserver.MBeanSupport.<init>(MBeanSupport.java:137) ~[na:na]
	at java.management/com.sun.jmx.mbeanserver.StandardMBeanSupport.<init>(StandardMBeanSupport.java:60) ~[na:na]

Fix for using Artemis Jakarta Server with Java 25 is simple. Example given for maven.

<properties>
    <artemis.version>2.44.0</artemis.version>
    <java.version>25</java.version>
</properties>

It would be great if you could either pin the issue or document the necessary workaround for those using Artemis with Java 25 as Spring Boot 4 claims great support for Java 25 in its release notes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions