Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Wildfly 35.0.0 Beta - Infinispan cache error

161 views
Skip to first unread message

Alban

unread,
Dec 19, 2024, 10:34:11 AM12/19/24
to WildFly

Hello,

I tried to deploy our ear in the newly released Wildfly 35.0.0 Beta version.
I have an issue with the Infinispan while trying to read information from the cache:

Caused by: java.lang.NoSuchMethodError: 'org.jboss.threads.EnhancedQueueExecutor$Builder org.jboss.threads.EnhancedQueueExecutor$Builder.setKeepAliveTime(java.time.Duration)' at org.infin...@15.0.11.Final//org.infinispan.factories.threads.EnhancedQueueExecutorFactory.lambda$createExecutor$1(EnhancedQueueExecutorFactory.java:43) at java.base/java.util.Optional.orElseGet(Optional.java:364) at org.infin...@15.0.11.Final//org.infinispan.factories.threads.EnhancedQueueExecutorFactory.createExecutor(EnhancedQueueExecutorFactory.java:36) at org.infin...@15.0.11.Final//org.infinispan.executors.LazyInitializingBlockingTaskAwareExecutorService.initIfNeeded(LazyInitializingBlockingTaskAwareExecutorService.java:206) at org.infin...@15.0.11.Final//org.infinispan.executors.LazyInitializingBlockingTaskAwareExecutorService.execute(LazyInitializingBlockingTaskAwareExecutorService.java:193) at java.base/java.util.concurrent.CompletableFuture.asyncSupplyStage(CompletableFuture.java:1782) at java.base/java.util.concurrent.CompletableFuture.supplyAsync(CompletableFuture.java:2005) at org.infin...@15.0.11.Final//org.infinispan.util.concurrent.BlockingManagerImpl.supplyBlockingOperation(BlockingManagerImpl.java:163) at org.infin...@15.0.11.Final//org.infinispan.util.concurrent.BlockingManagerImpl.supplyBlocking(BlockingManagerImpl.java:141) at org.infin...@15.0.11.Final//org.infinispan.stream.impl.intops.object.PeekOperation.lambda$mapFlowable$1(PeekOperation.java:47) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.mixed.FlowableConcatMapSingle$ConcatMapSingleSubscriber.drain(FlowableConcatMapSingle.java:214) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.mixed.ConcatMapXMainSubscriber.onNext(ConcatMapXMainSubscriber.java:106) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableFilter$FilterSubscriber.tryOnNext(FlowableFilter.java:75) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableMap$MapConditionalSubscriber.tryOnNext(FlowableMap.java:134) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableMap$MapConditionalSubscriber.tryOnNext(FlowableMap.java:134) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableFilter$FilterConditionalSubscriber.tryOnNext(FlowableFilter.java:140) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableMap$MapConditionalSubscriber.tryOnNext(FlowableMap.java:134) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableFromIterable$IteratorConditionalSubscription.slowPath(FlowableFromIterable.java:380) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableFromIterable$BaseRangeSubscription.request(FlowableFromIterable.java:131) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.subscribers.BasicFuseableConditionalSubscriber.request(BasicFuseableConditionalSubscriber.java:153) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.subscribers.BasicFuseableConditionalSubscriber.request(BasicFuseableConditionalSubscriber.java:153) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.subscribers.BasicFuseableConditionalSubscriber.request(BasicFuseableConditionalSubscriber.java:153) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.subscribers.BasicFuseableConditionalSubscriber.request(BasicFuseableConditionalSubscriber.java:153) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.subscribers.BasicFuseableSubscriber.request(BasicFuseableSubscriber.java:153) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.mixed.ConcatMapXMainSubscriber.onSubscribe(ConcatMapXMainSubscriber.java:92) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.subscribers.BasicFuseableSubscriber.onSubscribe(BasicFuseableSubscriber.java:67) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.subscribers.BasicFuseableConditionalSubscriber.onSubscribe(BasicFuseableConditionalSubscriber.java:67) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.subscribers.BasicFuseableConditionalSubscriber.onSubscribe(BasicFuseableConditionalSubscriber.java:67) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.subscribers.BasicFuseableConditionalSubscriber.onSubscribe(BasicFuseableConditionalSubscriber.java:67) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.subscribers.BasicFuseableConditionalSubscriber.onSubscribe(BasicFuseableConditionalSubscriber.java:67) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableFromIterable.subscribe(FlowableFromIterable.java:66) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableFromIterable.subscribeActual(FlowableFromIterable.java:47) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.core.Flowable.subscribe(Flowable.java:16149) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableMap.subscribeActual(FlowableMap.java:36) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.core.Flowable.subscribe(Flowable.java:16149) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableFilter.subscribeActual(FlowableFilter.java:35) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.core.Flowable.subscribe(Flowable.java:16149) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableMap.subscribeActual(FlowableMap.java:36) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.core.Flowable.subscribe(Flowable.java:16149) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableMap.subscribeActual(FlowableMap.java:36) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.core.Flowable.subscribe(Flowable.java:16149) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableFilter.subscribeActual(FlowableFilter.java:38) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.core.Flowable.subscribe(Flowable.java:16149) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.mixed.FlowableConcatMapSingle.subscribeActual(FlowableConcatMapSingle.java:59) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.core.Flowable.subscribe(Flowable.java:16149) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.FlowableOnErrorNext.subscribeActual(FlowableOnErrorNext.java:39) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.core.Flowable.subscribe(Flowable.java:16149) at io.reactivex.rxjava3.rxjava//io.reactivex.rxjava3.internal.operators.flowable.BlockingFlowableIterable.iterator(BlockingFlowableIterable.java:42) at org.infinis...@15.0.11.Final//org.infinispan.commons.util.Closeables.iterator(Closeables.java:261) at org.infin...@15.0.11.Final//org.infinispan.stream.impl.DistributedCacheStream.iterator(DistributedCacheStream.java:370) at org.infin...@15.0.11.Final//org.infinispan.stream.impl.DistributedCacheStream.forEach(DistributedCacheStream.java:449) at org.infin...@15.0.11.Final//org.infinispan.util.AbstractDelegatingCacheStream.forEach(AbstractDelegatingCacheStream.java:131) at org.infin...@15.0.11.Final//org.infinispan.CacheStream.forEach(CacheStream.java:169) at deployment.efp.ear//com.banctec.caseware.server.helpers.SessionIdResourceCacheHelper.getCheckedOutForTransId(SessionIdResourceCacheHelper.java:12

The code that triggers the exception only loops through the content of the cache and populates various java Collections:

cache.entrySet() .stream() .filter(...) .forEach(e -> { // populate other java Collections });

Is this an issue with Wildfly or rather Infinispan?
Thanks,
Alban

Paul Ferraro

unread,
Jan 9, 2025, 4:25:09 PMJan 9
to WildFly
WildFly uses an older version of jboss-threads (2.4.x) than is required by Infinispan 15.0.
You will need to therefore bundle the newer 3.6.1.Final release of the jboss-threads library in your application.
Alternatively, you can use a server managed Infinispan cache/container configuration that does not require jboss-threads.

Alban

unread,
Apr 25, 2025, 7:57:58 AMApr 25
to WildFly

Hi Paul,

Thank you for the suggestion.
I tried to add the newer jboss-threads library to my ear but this does not work as we are using the infinispan module and the old library seems to be used.
Hi Paul,

Thank you for the suggestion.

I tried to add the newer jboss-threads library to my ear but this does not work as we are using the infinispan module and the old library seems to be used.

<global-modules> <module name="org.infinispan.core" /> <module name="org.infinispan.commons" /> </global-modules>

Unfortunately I am not able to use a server managed Infinispan cache as I need to be able to deploy my application on other applications servers than Wildfly or JBoss EAP.

In the latest Wildfly 36.0.0.Final, I tried to bundle the infinispan libraries instead of using the module:

<infinispan.version>15.1.7.Final</infinispan.version> <dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-core</artifactId> <version>${infinispan.version}</version> </dependency> <dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-component-annotations</artifactId> <version>${infinispan.version}</version> </dependency>

But I was unable to initialise the cache wit the following error:

12:18:37,714 INFO [org.infinispan.CONTAINER] (ServerService Thread Pool -- 90) ISPN000556: Starting user marshaller 'org.infinispan.commons.marshall.ProtoStreamMarshaller' 12:18:37,909 WARN [org.infinispan.factories.InterceptorChainFactory] (ServerService Thread Pool -- 90) ISPN000267: Problems creating interceptor class org.infinispan.interceptors.impl.CacheMgmtInterceptor: java.lang.RuntimeException: Failed to construct component org.infinispan.container.offheap.OffHeapMemoryAllocator, path org.infinispan.container.offheap.OffHeapMemoryAllocator << org.infinispan.interceptors.impl.CacheMgmtInterceptor (a org.infinispan.interceptors.impl.CacheMgmtInterceptor) << org.infinispan.interceptors.AsyncInterceptorChain << wireDependencies (a org.infinispan.cache.impl.CacheImpl) << org.infinispan.AdvancedCache (a org.infinispan.cache.impl.EncoderCache) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.doInstantiateWrapper(BasicComponentRegistryImpl.java:191) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.instantiateWrapper(BasicComponentRegistryImpl.java:178) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent0(BasicComponentRegistryImpl.java:143) at deployment.efp.ear//org.infinispan.factories.impl.WireContext.get(WireContext.java:20) at deployment.efp.ear//org.infinispan.interceptors.impl.CorePackageImpl$11.wire(CorePackageImpl.java:234) at deployment.efp.ear//org.infinispan.interceptors.impl.CorePackageImpl$11.wire(CorePackageImpl.java:229) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeInjection(BasicComponentRegistryImpl.java:336) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.doWireWrapper(BasicComponentRegistryImpl.java:233) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.wireWrapper(BasicComponentRegistryImpl.java:214) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.registerComponent(BasicComponentRegistryImpl.java:373) at deployment.efp.ear//org.infinispan.factories.InterceptorChainFactory.register(InterceptorChainFactory.java:92) at deployment.efp.ear//org.infinispan.factories.InterceptorChainFactory.createInterceptor(InterceptorChainFactory.java:85) at deployment.efp.ear//org.infinispan.factories.InterceptorChainFactory.buildInterceptorChain(InterceptorChainFactory.java:124) at deployment.efp.ear//org.infinispan.factories.InterceptorChainFactory.construct(InterceptorChainFactory.java:330) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.doInstantiateWrapper(BasicComponentRegistryImpl.java:188) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.instantiateWrapper(BasicComponentRegistryImpl.java:178) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent0(BasicComponentRegistryImpl.java:143) at deployment.efp.ear//org.infinispan.factories.impl.WireContext.get(WireContext.java:20) at deployment.efp.ear//org.infinispan.cache.impl.CorePackageImpl$2.wire(CorePackageImpl.java:46) at deployment.efp.ear//org.infinispan.cache.impl.CorePackageImpl$2.wire(CorePackageImpl.java:42) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeInjection(BasicComponentRegistryImpl.java:336) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.wireDependencies(BasicComponentRegistryImpl.java:246) at deployment.efp.ear//org.infinispan.cache.impl.EncoderCache.wireRealCache(EncoderCache.java:122) at deployment.efp.ear//org.infinispan.cache.impl.CorePackageImpl$11.wire(CorePackageImpl.java:290) at deployment.efp.ear//org.infinispan.cache.impl.CorePackageImpl$11.wire(CorePackageImpl.java:286) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeInjection(BasicComponentRegistryImpl.java:336) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.doWireWrapper(BasicComponentRegistryImpl.java:233) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.wireWrapper(BasicComponentRegistryImpl.java:214) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.registerComponent(BasicComponentRegistryImpl.java:373) at deployment.efp.ear//org.infinispan.factories.InternalCacheFactory.bootstrap(InternalCacheFactory.java:166) at deployment.efp.ear//org.infinispan.factories.InternalCacheFactory.createAndWire(InternalCacheFactory.java:117) at deployment.efp.ear//org.infinispan.factories.InternalCacheFactory.createCache(InternalCacheFactory.java:85) at deployment.efp.ear//org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:721) at deployment.efp.ear//org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:677) at deployment.efp.ear//org.infinispan.manager.DefaultCacheManager.internalGetCache(DefaultCacheManager.java:565) at deployment.efp.ear//org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:528) at deployment.efp.ear//org.infinispan.security.actions.GetCacheAction.get(GetCacheAction.java:26) at deployment.efp.ear//org.infinispan.security.actions.GetCacheAction.get(GetCacheAction.java:14) at deployment.efp.ear//org.infinispan.security.Security.doPrivileged(Security.java:49) at deployment.efp.ear//org.infinispan.security.actions.SecurityActions.getCache(SecurityActions.java:55) at deployment.efp.ear//org.infinispan.registry.impl.InternalCacheRegistryImpl.startInternalCaches(InternalCacheRegistryImpl.java:137) at deployment.efp.ear//org.infinispan.globalstate.impl.GlobalConfigurationManagerImpl.start(GlobalConfigurationManagerImpl.java:108) at deployment.efp.ear//org.infinispan.globalstate.impl.CorePackageImpl$1.start(CorePackageImpl.java:41) at deployment.efp.ear//org.infinispan.globalstate.impl.CorePackageImpl$1.start(CorePackageImpl.java:28) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeStart(BasicComponentRegistryImpl.java:616) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.doStartWrapper(BasicComponentRegistryImpl.java:607) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:576) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:807) at deployment.efp.ear//org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:370) at deployment.efp.ear//org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:243) at deployment.efp.ear//org.infinispan.manager.DefaultCacheManager.internalStart(DefaultCacheManager.java:783) at deployment.efp.ear//org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:751) at deployment.efp.ear//org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:412) at deployment.efp.ear//org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:374) at deployment.efp.ear//org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:336) at deployment.efp.ear//org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:324) at deployment.efp.ear//com.banctec.caseware.server.helpers.ServiceLocator.createCache(ServiceLocator.java:181) at deployment.efp.ear//com.banctec.caseware.server.helpers.ServiceLocator.getResourceCache(ServiceLocator.java:702) at deployment.efp.ear//com.banctec.caseware.server.helpers.ResourceCacheHelper.<init>(ResourceCacheHelper.java:58) at deployment.efp.ear//com.banctec.caseware.server.helpers.WLAllocationTableByIdCacheHelper.<init>(WLAllocationTableByIdCacheHelper.java:16) at deployment.efp.ear.efprocess.jar//com.banctec.caseware.server.worklist.WorkListLockSingletonBean.applicationStartup(WorkListLockSingletonBean.java:46) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.jbo...@36.0.0.Final//org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:79) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509) at org.jboss.as...@36.0.0.Final//org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:62) at org.jboss.as...@36.0.0.Final//org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doLifecycleInterception(Jsr299BindingsInterceptor.java:109) at org.jboss.as...@36.0.0.Final//org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:95) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509) at org.jboss...@5.1.5.Final//org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:87) at org.jboss.as...@36.0.0.Final//org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:72) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jbos...@36.0.0.Final//org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:36) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jbo...@36.0.0.Final//org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:95) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jbo...@36.0.0.Final//org.jboss.as.ee.component.AroundConstructInterceptorFactory$1.processInvocation(AroundConstructInterceptorFactory.java:33) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jbos...@36.0.0.Final//org.jboss.as.weld.injection.WeldInterceptorInjectionInterceptor.processInvocation(WeldInterceptorInjectionInterceptor.java:39) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jbos...@36.0.0.Final//org.jboss.as.weld.interceptors.Jsr299BindingsCreateInterceptor.processInvocation(Jsr299BindingsCreateInterceptor.java:94) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jbo...@36.0.0.Final//org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:33) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jbos...@36.0.0.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:237) at org.jbos...@36.0.0.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:399) at org.jbos...@36.0.0.Final//org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:51) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jbos...@36.0.0.Final//org.jboss.as.weld.injection.WeldInjectionContextInterceptor.processInvocation(WeldInjectionContextInterceptor.java:26) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jbos...@36.0.0.Final//org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:24) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.wildfly...@36.0.0.Final//org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:28) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss....@2.0.1.Final//org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jbos...@36.0.0.Final//org.jboss.as.ejb3.component.singleton.StartupCountDownInterceptor.processInvocation(StartupCountDownInterceptor.java:30) at org.jboss....@2.0.1.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss....@2.0.1.Final//org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53) at org.jbo...@36.0.0.Final//org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:151) at org.jbo...@36.0.0.Final//org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:124) at org.jbo...@36.0.0.Final//org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:71) at org.jbos...@36.0.0.Final//org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:110) at org.jbos...@36.0.0.Final//org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:124) at org.jbo...@36.0.0.Final//org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:37) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at org.jbos...@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1348) at java.base/java.lang.Thread.run(Thread.java:1583) at org.jbos...@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513) Caused by: java.lang.NoClassDefFoundError: sun/misc/Unsafe at deployment.efp.ear//org.infinispan.container.offheap.UnsafeHolder.getUnsafe(UnsafeHolder.java:20) at deployment.efp.ear//org.infinispan.container.offheap.UnsafeHolder.<clinit>(UnsafeHolder.java:14) at deployment.efp.ear//org.infinispan.container.offheap.OffHeapMemory.<clinit>(OffHeapMemory.java:19) at deployment.efp.ear//org.infinispan.container.offheap.UnpooledOffHeapMemoryAllocator.<clinit>(UnpooledOffHeapMemoryAllocator.java:18) at deployment.efp.ear//org.infinispan.factories.EmptyConstructorNamedCacheFactory.construct(EmptyConstructorNamedCacheFactory.java:185) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.doInstantiateWrapper(BasicComponentRegistryImpl.java:188) ... 114 more Caused by: java.lang.ClassNotFoundException: sun.misc.Unsafe from [Module "deployment.efp.ear" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:201) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:408) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:396) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:115) ... 120 more 12:18:37,913 ERROR [org.infinispan.CONFIG] (ServerService Thread Pool -- 90) ISPN000660: DefaultCacheManager start failed, stopping any running components: org.infinispan.commons.CacheConfigurationException: ISPN000659: Component ComponentWrapper{name=org.infinispan.globalstate.GlobalConfigurationManager, instance=org.infinispan.globalstate.impl.GlobalConfigurationManagerImpl@9bc1d35, status=FAILED} failed to start

I added this extra dependency:

<dependency> <groupId>org.jboss</groupId> <artifactId>jdk-misc</artifactId> <version>3.Final</version> </dependency>

Which now results in the following exception:

12:43:42,595 WARN [org.infinispan.factories.InterceptorChainFactory] (ServerService Thread Pool -- 104) ISPN000267: Problems creating interceptor class org.infinispan.interceptors.impl.CacheMgmtInterceptor: java.lang.RuntimeException: Failed to construct component org.infinispan.container.offheap.OffHeapMemoryAllocator, path org.infinispan.container.offheap.OffHeapMemoryAllocator << org.infinispan.interceptors.impl.CacheMgmtInterceptor (a org.infinispan.interceptors.impl.CacheMgmtInterceptor) << org.infinispan.interceptors.AsyncInterceptorChain << wireDependencies (a org.infinispan.cache.impl.CacheImpl) << org.infinispan.AdvancedCache (a org.infinispan.cache.impl.EncoderCache) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.doInstantiateWrapper(BasicComponentRegistryImpl.java:191) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.instantiateWrapper(BasicComponentRegistryImpl.java:178) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent0(BasicComponentRegistryImpl.java:143) ... at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at org.jbos...@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1348) at java.base/java.lang.Thread.run(Thread.java:1583) at org.jbos...@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513) Caused by: java.lang.UnsatisfiedLinkError: 'int sun.misc.Unsafe.getInt(java.lang.Object, long)' at deployment.efp.ear//sun.misc.Unsafe.getInt(Native Method) at deployment.efp.ear//sun.misc.Unsafe.<clinit>(Unsafe.java:39) at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method) at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160) at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized(MethodHandleAccessorFactory.java:300) at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newFieldAccessor(MethodHandleAccessorFactory.java:140) at java.base/jdk.internal.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:145) at java.base/java.lang.reflect.Field.acquireOverrideFieldAccessor(Field.java:1200) at java.base/java.lang.reflect.Field.getOverrideFieldAccessor(Field.java:1169) at java.base/java.lang.reflect.Field.get(Field.java:444) at deployment.efp.ear//org.infinispan.container.offheap.UnsafeHolder.getUnsafe(UnsafeHolder.java:23) at deployment.efp.ear//org.infinispan.container.offheap.UnsafeHolder.<clinit>(UnsafeHolder.java:14) at deployment.efp.ear//org.infinispan.container.offheap.OffHeapMemory.<clinit>(OffHeapMemory.java:19) at deployment.efp.ear//org.infinispan.container.offheap.UnpooledOffHeapMemoryAllocator.<clinit>(UnpooledOffHeapMemoryAllocator.java:18) at deployment.efp.ear//org.infinispan.factories.EmptyConstructorNamedCacheFactory.construct(EmptyConstructorNamedCacheFactory.java:185) at deployment.efp.ear//org.infinispan.factories.impl.BasicComponentRegistryImpl.doInstantiateWrapper(BasicComponentRegistryImpl.java:188) ... 114 more

Do you have any idea what I am missing with my deployment? Any missing dependencies?

Thanks

Alban

unread,
Apr 25, 2025, 8:54:12 AMApr 25
to WildFly

Quick update.

I did another test by removing the jdk-misc dependency and instead, I have added the following module:

<global-modules> <module name="sun.jdk" /> </global-modules>

This seems to work but it doesn’t feel right.

Any feedback on what the correct solution should be is most welcomed :-)
Alban

Reply all
Reply to author
Forward
0 new messages