-
Bug
-
Resolution: Done
-
Blocker
-
None
-
None
Note, this doesn't actually break anything. It's filed as a blocker, because it's a user experience issue. Please feel free to change the priority.
When shutting down a server started with Java 24 the org.wildfly.extension.elytron.PolicyDefinitions throws an NPE because of its usage of java.security/Policy.refresh(). The issue is the original policy is null and we do not null-check the policy when the service is stopped.
15:09:58,342 WARN [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000004: Failure during stop of service org.wildfly.security.policy: java.lang.NullPointerException: Cannot invoke "java.security.Policy.refresh()" because "policy" is null at org.wildfly.extension.elytron@27.0.0.Beta6-SNAPSHOT//org.wildfly.extension.elytron.PolicyDefinitions$2$1.setPolicy(PolicyDefinitions.java:202) at org.wildfly.extension.elytron@27.0.0.Beta6-SNAPSHOT//org.wildfly.extension.elytron.PolicyDefinitions$2$1.stop(PolicyDefinitions.java:193) at org.jboss.msc@1.5.5.Final//org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1671) at org.jboss.msc@1.5.5.Final//org.jboss.msc.service.ServiceControllerImpl$StopTask.execute(ServiceControllerImpl.java:1641) at org.jboss.msc@1.5.5.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1438) at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363) at java.base/java.lang.Thread.run(Thread.java:1447)