Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-7840

Embedded Infinispan tests fail to start with Java 23

XMLWordPrintable

      In the Java Outreach job, the following error is found:

      EmbeddedInfinispanProcessorTest>AbstractProcessorUnitTest.testCacheIsEmpty:124->getProcessor:24->getProcessor:56 ยป EmbeddedCacheManagerStartup ISPN000659: Component ComponentWrapper{name=org.infinispan.reactive.publisher.impl.PublisherHandler, instance=org.infinispan.reactive.publisher.impl.PublisherHandler@1a6804d1, status=FAILED} failed to start
      

      The java details are:

      Run actions/setup-java@v4
        with:
          java-version: 1360291578
          distribution: jdkfile
          jdkFile: /home/runner/.oracle-actions/setup-java/aeeb9906/openjdk-23-ea+18_linux-x64_bin.tar.gz
      

      This likely will require an update to Infinispan that is compatible with java 23+.

      Likely based on https://github.com/infinispan/infinispan/pull/12080, which would require a baseline of 14.0.26.Final or later.

      Bumping to 14.0.28.Final reports this failure on Java 23:

      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)
      	... 41 common frames omitted
      

      which is fixed by ISPN-14375 and requires ISPN 15+.

            ccranfor@redhat.com Chris Cranford
            ccranfor@redhat.com Chris Cranford
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: