Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19606

Clustering tests against Infinispan server are failing on JDK23

XMLWordPrintable

    • Hide

      Configure JDK23 EA 15+ to be used.
      Enter wildfly/testsuite/integration/clustering directory.
      Execute command: mvn clean test -Dtest=**/HotRodPersistentTimerServiceTestCase

      Show
      Configure JDK23 EA 15+ to be used. Enter wildfly/testsuite/integration/clustering directory. Execute command: mvn clean test -Dtest=**/HotRodPersistentTimerServiceTestCase
    • ---
    • ---

      Failing tests are:

      HotRodPersistentTimerServiceTestCase
      RemoteInfinispanCacheTestCase
      RemoteElytronSingleSignOnTestCase
      CoarseHotRodPersistenceWebFailoverTestCase
      CoarseHotRodSessionActivationTestCase
      CoarseHotRodSessionExpirationTestCase
      CoarseHotRodWebFailoverTestCase
      CoarseTransactionalHotRodWebFailoverTestCase
      FineHotRodPersistenceWebFailoverTestCase
      FineHotRodSessionActivationTestCase
      FineHotRodSessionExpirationTestCase
      FineHotRodWebFailoverTestCase
      FineTransactionalHotRodWebFailoverTestCase

      Below is the root cause of the regression - javax.security.auth.Subject.getSubject() throwing UnsupportedOperationException if -Djava.security.manager=allowed isn't configured in infinispan server shell scripts.
      This regression was introduced with this JDK commit

      Cache org.infinispan.PERMISSIONS start failed, stopping any running components org.infinispan.commons.CacheConfigurationException: ISPN000659: C
      at org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:584)
      at org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:807)
      at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:379)
      at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:252)
      at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:222)
      at org.infinispan.cache.impl.CacheImpl.start(CacheImpl.java:1009)
      at org.infinispan.cache.impl.AbstractDelegatingCache.start(AbstractDelegatingCache.java:504)
      at org.infinispan.security.impl.SecureCacheImpl.start(SecureCacheImpl.java:129)
      at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:726)
      at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:672)
      at org.infinispan.manager.DefaultCacheManager.internalGetCache(DefaultCacheManager.java:561)
      at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:524)
      at org.infinispan.security.mappers.ClusterPermissionMapper.start(ClusterPermissionMapper.java:44)
      at org.infinispan.security.mappers.CorePackageImpl$2.start(CorePackageImpl.java:65)
      at org.infinispan.security.mappers.CorePackageImpl$2.start(CorePackageImpl.java:58)
      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)
      at org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:807)
      at org.infinispan.factories.impl.BasicComponentRegistryImpl.startDependencies(BasicComponentRegistryImpl.java:634)
      at org.infinispan.factories.impl.BasicComponentRegistryImpl.doStartWrapper(BasicComponentRegistryImpl.java:598)
      at org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:576)
      at org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:807)
      at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:379)
      at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:252)
      at org.infinispan.manager.DefaultCacheManager.internalStart(DefaultCacheManager.java:778)
      at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:746)
      at org.infinispan.server.SecurityActions.lambda$startCacheManager$1(SecurityActions.java:68)
      at org.infinispan.security.Security.doPrivileged(Security.java:56)
      at org.infinispan.server.SecurityActions.doPrivileged(SecurityActions.java:40)
      at org.infinispan.server.SecurityActions.startCacheManager(SecurityActions.java:71)
      at org.infinispan.server.Server.run(Server.java:426)
      at org.infinispan.server.Bootstrap.runInternal(Bootstrap.java:173)
      at org.infinispan.server.tool.Main.run(Main.java:98)
      at org.infinispan.server.Bootstrap.main(Bootstrap.java:56)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at org.infinispan.server.loader.Loader.run(Loader.java:106)
      at org.infinispan.server.loader.Loader.main(Loader.java:51)
      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.reactive.publisher.impl.PublisherHandler.start(PublisherHandler.java:81)
      at org.infinispan.reactive.publisher.impl.CorePackageImpl$5.start(CorePackageImpl.java:125)
      at org.infinispan.reactive.publisher.impl.CorePackageImpl$5.start(CorePackageImpl.java:117)
      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)
      ... 38 more

            rhn-engineering-rhusar Radoslav Husar
            ropalka Richard Opalka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: