Mark Derricutt created KARAF-7970:
-------------------------------------
Summary: Disable AddSubject configuration with prevents Java 24
usage
Key: KARAF-7970
URL: https://issues.apache.org/jira/browse/KARAF-7970
Project: Karaf
Issue Type: Improvement
Components: karaf
Affects Versions: 4.4.7
Reporter: Mark Derricutt
EventAdminImpl currently fails to start when running under Java 24 due to
access to the Security Manager code now being forbidden - Subject.getSubject()
always throws UnsupportedOperationException.
This is because
org.apache.felix.eventadmin.impl.handler.EventAdminImpl#prepareEvent() calls
Subject.getSubject().
It turns out disabling the “org.apache.felix.eventadmin.AddSubject” setting in
the EventAdminImpl.cfg works around the security manager issues and it triggers
the underlying Felix EventAdmin to not use any of the offending SecurityManager
calls.
When removing the EventAdminImpl.cfg generated by Karaf, the event manager
defaults to NOT adding a Subject.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)