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

Robbie Gemmell commented on ARTEMIS-5374:
-----------------------------------------

I have raised ARTEMIS-5711 and 
[https://github.com/apache/activemq-artemis/pull/5993] to address the 
SecurityManager compatibility issues and support building/testing/running on 
newer JDKs such as Java 24 / 25 and help ease issues with those beyond that.

(Note that even without that Jira, a potential workaround is to disable the 
AuditLogger that gates the main use of Subject.subject() that causes failures 
when the above flag is not set. Doing that is part of the default configuration 
for the broker distribution, but not for embedded usage such as you are using, 
where you would need to configure it: 
https://issues.apache.org/jira/browse/ARTEMIS-4975?focusedCommentId=18029983&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-18029983
 )

> JDK 24 Support - getSubject is not supported
> --------------------------------------------
>
>                 Key: ARTEMIS-5374
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5374
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Lovro Pandžić
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Please add support for JDK 24. When running with JDK 24 I'm encountering the 
> following issue, which is related  to [https://openjdk.org/jeps/486] - JEP 
> 486: Permanently Disable the Security Manager:
> {code:java}
> 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:72) 
> ~[artemis-commons-2.40.0.jar:2.40.0]
> at 
> org.apache.activemq.artemis.logs.AuditLogger.getNotificationInfo(AuditLogger.java:1124)
>  ~[artemis-commons-2.40.0.jar:2.40.0]
> at 
> org.apache.activemq.artemis.core.management.impl.ActiveMQServerControlImpl.getNotificationInfo(ActiveMQServerControlImpl.java:4299)
>  ~[artemis-server-2.40.0.jar:2.40.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]
> at 
> java.management/javax.management.StandardMBean.construct(StandardMBean.java:180)
>  ~[na:na]
> at 
> java.management/javax.management.StandardMBean.<init>(StandardMBean.java:231) 
> ~[na:na]
> at 
> org.apache.activemq.artemis.core.management.impl.AbstractControl.<init>(AbstractControl.java:48)
>  ~[artemis-server-2.40.0.jar:2.40.0]
> at 
> org.apache.activemq.artemis.core.management.impl.ActiveMQServerControlImpl.<init>(ActiveMQServerControlImpl.java:191)
>  ~[artemis-server-2.40.0.jar:2.40.0]
> at 
> org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.registerServer(ManagementServiceImpl.java:236)
>  ~[artemis-server-2.40.0.jar:2.40.0]
> at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart1(ActiveMQServerImpl.java:3305)
>  ~[artemis-server-2.40.0.jar:2.40.0]
> at 
> org.apache.activemq.artemis.core.server.impl.PrimaryOnlyActivation.run(PrimaryOnlyActivation.java:70)
>  ~[artemis-server-2.40.0.jar:2.40.0]
> at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:743)
>  ~[artemis-server-2.40.0.jar:2.40.0]
> at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:633)
>  ~[artemis-server-2.40.0.jar:2.40.0]
> at 
> org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ.start(EmbeddedActiveMQ.java:124)
>  ~[artemis-server-2.40.0.jar:2.40.0]
> at 
> java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
>  ~[na:na]
> at java.base/java.lang.reflect.Method.invoke(Method.java:565) ~[na:na]
> at  {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to