Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-21929

(7.4.z) org.infinispan.client.hotrod module is missing a dependency on org.infinispan.protostream

XMLWordPrintable

      This causes manually created RemoteCacheManager's to fail with:

      21-05-14 09:26:44,185 WARNING [org.springframework.context.support.GenericApplicationContext] (MSC service thread 1-3) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration' defined in URL [vfs:/content/test.war/WEB-INF/lib/org.jboss.qe.camel.component.infinispan.remote.RemoteBaseTest.jar/META-INF/spring/baseTestContext-camel-context.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org.infinispan.protostream.SerializationContextInitializer
      2021-05-14 09:26:44,193 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."test.war".CamelContextActivationService."test.war": org.jboss.msc.service.StartException in service jboss.deployment.unit."test.war".CamelContextActivationService."test.war": Cannot create camel context: test.war
              at org.wildfly.extension.camel.service.CamelContextActivationService.start(CamelContextActivationService.java:71)
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
              at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
              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:1363)
              at java.lang.Thread.run(Thread.java:821)
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration' defined in URL [vfs:/content/test.war/WEB-INF/lib/org.jboss.qe.camel.component.infinispan.remote.RemoteBaseTest.jar/META-INF/spring/baseTestContext-camel-context.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org.infinispan.protostream.SerializationContextInitializer
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
              at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
              at org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$171/0000000000000000.getObject(Unknown Source)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
              at org.wildfly.extension.camel.SpringCamelContextBootstrap$1.run(SpringCamelContextBootstrap.java:90)
              at org.wildfly.extension.camel.proxy.ProxyUtils$1.invoke(ProxyUtils.java:51)
              at com.sun.proxy.$Proxy62.run(Unknown Source)
              at org.wildfly.extension.camel.proxy.ProxyUtils.invokeProxied(ProxyUtils.java:55)
              at org.wildfly.extension.camel.SpringCamelContextBootstrap.createSpringCamelContexts(SpringCamelContextBootstrap.java:87)
              at org.wildfly.extension.camel.service.CamelContextActivationService.start(CamelContextActivationService.java:58)
              ... 8 more
      Caused by: java.lang.NoClassDefFoundError: org.infinispan.protostream.SerializationContextInitializer
              at java.lang.Class.getDeclaredMethodsImpl(Native Method)
              at java.lang.Class.getDeclaredMethods(Class.java:982)
              at org.apache.camel.util.ReflectionHelper.doWithMethods(ReflectionHelper.java:96)
              at org.apache.camel.impl.DefaultCamelBeanPostProcessor.injectMethods(DefaultCamelBeanPostProcessor.java:219)
              at org.apache.camel.impl.DefaultCamelBeanPostProcessor.postProcessBeforeInitialization(DefaultCamelBeanPostProcessor.java:84)
              at org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:154)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:415)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1791)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594)
              ... 23 more
      Caused by: java.lang.ClassNotFoundException: org.infinispan.protostream.SerializationContextInitializer from [Module "org.infinispan.client.hotrod" version 11.0.9.Final-redhat-00001 from local module loader @a083a3a3 (finder: local module finder @d03b6675 (roots: /home/ldemasi/Work/Servers/Fuse-7.9-EAP-7.4.CR1/modules,/home/ldemasi/Work/Servers/Fuse-7.9-EAP-7.4.CR1/modules/system/layers/fuse,/home/ldemasi/Work/Servers/Fuse-7.9-EAP-7.4.CR1/modules/system/layers/base))]
              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
              ... 32 more
      

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: