I'm using WildFly EE 26.0.1.Final-SNAPSHOT (WildFly Core 18.0.4.Final) in my Development-Environment for testing. Configuration based on ee-dist standalone-full.xml, nothing changed regarding caching.
When I redeploy my ear app by removing the current ear file from the deployments folder and copying the new one to the deployments folder I get ERROR's / Exceptions regarding Infinispan / Hibernate second level chache.
There are 28 errors on last try, exactly the number in the error message: completed tasks = 28.
The application seems to work without problems despite those errors.
Same code and procedure works fine on WildFly 16, I think the errors appear since WF 25.
20.01. 01:58:32,368 INFO [org.jboss.as.jpa#parse] WFLYJPA0002: Read persistence.xml for res2l-sb2000-ipc
20.01. 01:58:37,481 INFO [org.jipijapa#addProviderDependencies] JIPIORMV53020253: Second level cache enabled for res2l-sb2000-ipc.ear/ejb-entity.jar#res2l-sb2000-ipc
20.01. 01:58:37,675 INFO [org.jboss.as.jpa#run] WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'res2l-sb2000-ipc.ear/ejb-entity.jar#res2l-sb2000-ipc'
20.01. 01:58:37,677 INFO [org.hibernate.jpa.internal.util.LogHelper#logPersistenceUnitInformation] HHH000204: Processing PersistenceUnitInfo [
name: res2l-sb2000-ipc
...]
20.01. 01:58:52,494 INFO [org.jipijapa#addProviderDependencies] JIPIORMV53020253: Second level cache enabled for res2l-sb2000-ipc.ear/ejb-entity.jar#res2l-sb2000-ipc
20.01. 01:59:28,858 INFO [org.jboss.as.jpa#run] WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'res2l-sb2000-ipc.ear/ejb-entity.jar#res2l-sb2000-ipc'
20.01. 01:59:28,933 INFO [org.hibernate.dialect.Dialect#<init>] HHH000400: Using dialect: biz.mbisoftware.common.InformixDialect
20.01. 01:59:29,224 INFO [org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl#useContextualLobCreation] HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
20.01. 01:59:29,252 INFO [org.hibernate.envers.boot.internal.EnversServiceImpl#configure] Envers integration enabled? : false
20.01. 02:00:20,877 INFO [org.infinispan.CONTAINER#start] ISPN000556: Starting user marshaller 'org.wildfly.clustering.infinispan.marshalling.jboss.JBossMarshaller'
20.01. 02:00:21,226 ERROR [org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifierImpl#handleException] ISPN000405: Caught exception while invoking a cache manager listener!: org.infinispan.commons.CacheListenerException: ISPN000280: Caught exception [java.util.concurrent.RejectedExecutionException] while invoking method [public java.util.concurrent.CompletionStage org.jboss.as.clustering.infinispan.subsystem.CacheContainerServiceConfigurator.cacheStarted(org.infinispan.notifications.cachemanagerlistener.event.CacheStartedEvent)] on listener instance: org.jboss.as.clustering.infinispan.subsystem.CacheContainerServiceConfigurator@2a5d2f0f
at org.infinispan.notifications.impl.AbstractListenerImpl$ListenerInvocationImpl.lambda$invoke$1(AbstractListenerImpl.java:430)
at org.infinispan.notifications.impl.AbstractListenerImpl$ListenerInvocationImpl.invoke(AbstractListenerImpl.java:450)
at org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifierImpl.invokeListener(CacheManagerNotifierImpl.java:157)
at org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifierImpl.invokeListeners(CacheManagerNotifierImpl.java:84)
at org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifierImpl.notifyCacheStarted(CacheManagerNotifierImpl.java:132)
at org.infinispan.factories.ComponentRegistry.postStart(ComponentRegistry.java:228)
at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:257)
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:213)
at org.infinispan.cache.impl.SimpleCacheImpl.start(SimpleCacheImpl.java:152)
at org.infinispan.cache.impl.AbstractDelegatingCache.start(AbstractDelegatingCache.java:512)
at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:698)
at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:644)
at org.infinispan.manager.DefaultCacheManager.internalGetCache(DefaultCacheManager.java:533)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:511)
at org.jboss.as.clustering.infinispan.DefaultCacheContainer.getCache(DefaultCacheContainer.java:85)
at org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.getCache(AbstractDelegatingEmbeddedCacheManager.java:193)
at org.infinispan.hibernate.cache.v53.InfinispanRegionFactory.getCache(InfinispanRegionFactory.java:449)
at org.infinispan.hibernate.cache.v53.InfinispanRegionFactory.buildTimestampsRegion(InfinispanRegionFactory.java:158)
at org.hibernate.cache.internal.EnabledCaching.<init>(EnabledCaching.java:85)
at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:33)
at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:24)
at org.hibernate.service.spi.SessionFactoryServiceInitiator.initiateService(SessionFactoryServiceInitiator.java:30)
at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistryImpl.java:68)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.getService(SessionFactoryServiceRegistryImpl.java:109)
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:239)
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:467)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1250)
at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:171)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:129)
at java.security.AccessController.doPrivileged(Native Method)
at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:664)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:214)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.lang.Thread.run(Thread.java:748)
at org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@1bbd10a4 rejected from java.util.concurrent.ThreadPoolExecutor@13f001b0[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 28]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:678)
at org.jboss.as.clustering.infinispan.subsystem.CacheContainerServiceConfigurator.cacheStarted(CacheContainerServiceConfigurator.java:166)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.infinispan.notifications.impl.AbstractListenerImpl$ListenerInvocationImpl.lambda$invoke$1(AbstractListenerImpl.java:424)
... 41 more