You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2025/07/03 03:27:00 UTC
[jira] [Assigned] (KARAF-7970) Disable AddSubject configuration with prevents Java 24 usage
[ https://issues.apache.org/jira/browse/KARAF-7970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré reassigned KARAF-7970:
-------------------------------------------
Assignee: Jean-Baptiste Onofré
> 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
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
>
> 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)