Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-16754

CacheManager does not start on Java23: getSubject is supported only if a security manager is allowed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 15.0.8.Final
    • None
    • None
    • Hide

      Start an embedded CacheManager with Java23.

      Show
      Start an embedded CacheManager with Java23.
    • Workaround Exists
    • Hide

      Add -Djava.security.manager=allow to the JVM-aruments

      Show
      Add -Djava.security.manager=allow to the JVM-aruments

      With Java23 the startup of a CacheManager fails with:

       

      Caused by: java.lang.UnsupportedOperationException: getSubject is supported only if a security manager is allowed
      	at java.base/javax.security.auth.Subject.getSubject(Subject.java:347)
      	at org.infinispan.security.Security.getSubject(Security.java:189)
      	at org.infinispan.notifications.impl.AbstractListenerImpl.validateAndAddListenerInvocations(AbstractListenerImpl.java:214)
      	at org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifierImpl.addListenerAsync(CacheManagerNotifierImpl.java:183)
      	at org.infinispan.notifications.Listenable.addListener(Listenable.java:27)
      	at org.infinispan.remoting.transport.jgroups.JGroupsMetricsManagerImpl.start(JGroupsMetricsManagerImpl.java:73)
      	at org.infinispan.remoting.transport.jgroups.CorePackageImpl$1.start(CorePackageImpl.java:35)
      	at org.infinispan.remoting.transport.jgroups.CorePackageImpl$1.start(CorePackageImpl.java:27)
      	at org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeStart(BasicComponentRegistryImpl.java:616)
      	at org.infinispan.factories.impl.BasicComponentRegistryImpl.doStartWrapper(BasicComponentRegistryImpl.java:607)
      	at org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:576)

       

      There is a workaround for the problem, but it is unclear how long that workaround will remain available.

       

      See also: https://openjdk.org/jeps/486

            Unassigned Unassigned
            synth3 Andy S
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: