2 Replies Latest reply on Jan 25, 2016 10:19 AM by Domenico Romaniello

    Exception on startup in Infinispan 8.1 domain mode

    Domenico Romaniello Newbie

      Hi all,

       

      I'm having some problem to setup Infinispan 8.1 domain mode (currenly in a single node for testing purpose).

       

      Following startup parameters :

      =========================================================================

       

        JBoss Bootstrap Environment

       

        JBOSS_HOME: /home/tcadmin/infinispan-server

       

        JAVA: /home/tcadmin/jdk1.8.0_60//bin/java

       

        JAVA_OPTS: -server -Xms512m -Xmx768m -Djava.net.preferIPv4Stack=true -Dinfinispan.debugDependencies=true -Djboss.msc.max.container.threads=2 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=domain.xml -Djboss.server.name=vmcachedev.internal.it -XX:+UseG1GC -Djboss.bind.address=vmcachedev.internal.it

       

      =========================================================================

       

      Rarely server startup without error, while most of times, server startup with one of following errors (for the same type, 1 exception occurence for each cache definition) :

       

      Problem 1 :

      [Server:server-one] 09:49:15,204 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.datagrid-infinispan.clustered.core_blacklistcaptcha_msisdn: org.jboss.msc.service.StartException in service jboss.datagrid-infinispan.clustered.core_blacklistcaptcha_msisdn: Failed to start service

      [Server:server-one]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)

      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      [Server:server-one]     at java.lang.Thread.run(Thread.java:745)

      [Server:server-one] Caused by: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.commons.CacheConfigurationException: No registered default factory for component 'interface org.infinispan.registry.InternalCacheRegistry' found! Debug stack: [org.infinispan.tasks.TaskManager, org.infinispan.registry.InternalCacheRegistry]

      [Server:server-one]     at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:250)

      [Server:server-one]     at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:610)

      [Server:server-one]     at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:572)

      [Server:server-one]     at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:440)

      [Server:server-one]     at org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.getCache(AbstractDelegatingEmbeddedCacheManager.java:122)

      [Server:server-one]     at org.infinispan.server.infinispan.SecurityActions$5.run(SecurityActions.java:128)

      [Server:server-one]     at org.infinispan.server.infinispan.SecurityActions$5.run(SecurityActions.java:125)

      [Server:server-one]     at org.infinispan.security.Security.doPrivileged(Security.java:76)

      [Server:server-one]     at org.infinispan.server.infinispan.SecurityActions.doPrivileged(SecurityActions.java:61)

      [Server:server-one]     at org.infinispan.server.infinispan.SecurityActions.startCache(SecurityActions.java:133)

      [Server:server-one]     at org.jboss.as.clustering.infinispan.subsystem.CacheService.start(CacheService.java:82)

      [Server:server-one]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

      [Server:server-one]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

      [Server:server-one]     ... 3 more

      [Server:server-one] Caused by: org.infinispan.commons.CacheConfigurationException: No registered default factory for component 'interface org.infinispan.registry.InternalCacheRegistry' found! Debug stack: [org.infinispan.tasks.TaskManager, org.infinispan.registry.InternalCacheRegistry]

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.throwStackAwareConfigurationException(AbstractComponentRegistry.java:887)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.getFactory(AbstractComponentRegistry.java:300)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:271)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:228)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:65)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:798)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:202)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:157)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:149)

      [Server:server-one]     at org.infinispan.query.impl.LifecycleManager.cacheManagerStarting(LifecycleManager.java:330)

      [Server:server-one]     at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:225)

      [Server:server-one]     ... 15 more

       

      Problem 2 :

      [Server:server-one] 10:47:52,450 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.datagrid-infinispan-endpoint.rest.rest-connector: org.jboss.msc.service.StartException in service jboss.datagrid-infinispan-endpoint.rest.rest-connector: DGENDPT10015: Could not create the web context for the REST Server

      [Server:server-one]     at org.infinispan.server.endpoint.subsystem.RestService.start(RestService.java:103)

      [Server:server-one]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

      [Server:server-one]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      [Server:server-one]     at java.lang.Thread.run(Thread.java:745)

      [Server:server-one] Caused by: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.commons.CacheConfigurationException: Unable to instantiate class org.infinispan.tasks.impl.TaskManagerFactory

      [Server:server-one]     at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:250)

      [Server:server-one]     at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:610)

      [Server:server-one]     at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:572)

      [Server:server-one]     at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:440)

      [Server:server-one]     at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:459)

      [Server:server-one]     at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:450)

      [Server:server-one]     at org.jboss.as.clustering.infinispan.DefaultCacheContainer.getCache(DefaultCacheContainer.java:94)

      [Server:server-one]     at org.jboss.as.clustering.infinispan.DefaultCacheContainer.getCache(DefaultCacheContainer.java:85)

      [Server:server-one]     at org.infinispan.rest.NettyRestServer$$anonfun$startCaches$1.apply(NettyRestServer.scala:77)

      [Server:server-one]     at org.infinispan.rest.NettyRestServer$$anonfun$startCaches$1.apply(NettyRestServer.scala:77)

      [Server:server-one]     at scala.collection.Iterator$class.foreach(Iterator.scala:742)

      [Server:server-one]     at scala.collection.AbstractIterator.foreach(Iterator.scala:1194)

      [Server:server-one]     at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)

      [Server:server-one]     at scala.collection.AbstractIterable.foreach(Iterable.scala:54)

      [Server:server-one]     at org.infinispan.rest.NettyRestServer$.startCaches(NettyRestServer.scala:77)

      [Server:server-one]     at org.infinispan.rest.NettyRestServer$.apply(NettyRestServer.scala:52)

      [Server:server-one]     at org.infinispan.rest.NettyRestServer$.apply(NettyRestServer.scala:46)

      [Server:server-one]     at org.infinispan.rest.NettyRestServer.apply(NettyRestServer.scala)

      [Server:server-one]     at org.infinispan.server.endpoint.subsystem.RestService.start(RestService.java:101)

      [Server:server-one]     ... 5 more

      [Server:server-one] Caused by: org.infinispan.commons.CacheConfigurationException: Unable to instantiate class org.infinispan.tasks.impl.TaskManagerFactory

      [Server:server-one]     at org.infinispan.commons.util.Util.loadClass(Util.java:103)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.instantiateFactory(AbstractComponentRegistry.java:342)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.createComponentFactoryInternal(AbstractComponentRegistry.java:322)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.getFactory(AbstractComponentRegistry.java:305)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:271)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:228)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:65)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:798)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:202)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:157)

      [Server:server-one]     at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:149)

      [Server:server-one]     at org.infinispan.scripting.impl.LifecycleCallbacks.cacheManagerStarting(LifecycleCallbacks.java:25)

      [Server:server-one]     at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:225)

      [Server:server-one]     ... 23 more

      [Server:server-one] Caused by: java.lang.ClassNotFoundException: org.infinispan.tasks.impl.TaskManagerFactory from [Module "org.infinispan.server.endpoint:main" from local module loader @277c0f21 (finder: local module finder @6073f712 (roots: /home/tcadmin/infinispan-server-8.1.0.Final/modules,/home/tcadmin/infinispan-server-8.1.0.Final/modules/system/layers/base))]

      [Server:server-one]     at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)

      [Server:server-one]     at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)

      [Server:server-one]     at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)

      [Server:server-one]     at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)

      [Server:server-one]     at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)

      [Server:server-one]     at java.lang.Class.forName0(Native Method)

      [Server:server-one]     at java.lang.Class.forName(Class.java:348)

      [Server:server-one]     at org.infinispan.commons.util.Util.loadClassStrict(Util.java:158)

      [Server:server-one]     at org.infinispan.commons.util.Util.loadClass(Util.java:101)

      [Server:server-one]     ... 35 more

       

      In attachment you can find domain.xml and host.xml.

       

      Please can you help me to find the problem?

      Thanks

       

      Domenico.