7 Replies Latest reply on Mar 15, 2016 11:35 PM by Michael Harray

    Cannot auto-instantiate factory class BootstrapFactory (unix)

    Michael Harray Newbie

      Hello, I'm getting the following exception:

       

      Caused by: org.infinispan.commons.CacheConfigurationException: Cannot auto-instantiate factory class org.infinispan.factories.BootstrapFactory as it doesn't implement AutoInstantiableFactory!  Debug stack: null

       

      This only occurs when deploying to my AWS Elastic Beanstalk Tomcat environment (64bit Amazon Linux 2015.09 v2.0.8 running Tomcat 8 Java 8)

       

      On my local development environment (Windows 10, Tomcat 8) I don't have any issues.

       

      Does anyone know what the issue might be? I've provided my configuration setup below, please let me know if further information is required.

       

      I am running a Hibernate Search / Infinispan / JGroups / EC2 stack. My pom.xml looks like so

       

      <!-- Hibernate Search -->
      <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-search-orm</artifactId>
        <version>5.5.2.Final</version>
      </dependency>
      <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-search-serialization-avro</artifactId>
        <version>5.5.2.Final</version>
      </dependency>
      <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-search-backend-jgroups</artifactId>
        <version>5.5.2.Final</version>
      </dependency>
      <dependency>
          <groupId>org.infinispan</groupId>
          <artifactId>infinispan-directory-provider</artifactId>
          <version>8.1.2.Final</version>
      </dependency>
      

       

      My infinispan.xml is based on the default-hibernatesearch-infinispan.xml file, but modified to add file-store persistence and to use /default-configs/default-jgroups-ec2.xml

       

      <infinispan
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="urn:infinispan:config:8.1 http://infinispan.org/schemas/infinispan-config-8.1.xsd"
              xmlns="urn:infinispan:config:8.1">
      
          <jgroups>
              <stack-file name="default-jgroups-ec2" path="/default-configs/default-jgroups-ec2.xml"/>
          </jgroups>
         
          <cache-container name="HibernateSearch" default-cache="default" statistics="false" shutdown-hook="DONT_REGISTER">
      
              <transport stack="default-jgroups-ec2"/>
      
              <!-- Duplicate domains are allowed so that multiple deployments with default configuration
                  of Hibernate Search applications work - if possible it would be better to use JNDI to share
                  the CacheManager across applications -->
              <jmx duplicate-domains="true"/>
      
              <!-- *************************************** -->
              <!--  Cache to store Lucene's file metadata  -->
              <!-- *************************************** -->
              <replicated-cache name="LuceneIndexesMetadata" mode="SYNC" remote-timeout="25000">       
                  <locking striping="false" acquire-timeout="10000" concurrency-level="500" write-skew="false"/>
                  <transaction mode="NONE"/>
                  <eviction max-entries="-1" strategy="NONE"/>
                  <expiration max-idle="-1"/>
                  <persistence>
        <file-store path="LuceneIndexes/Metadata" preload="true" />
        </persistence>
                  <indexing index="NONE"/>
                  <state-transfer enabled="true" timeout="480000" await-initial-transfer="true"/>
              </replicated-cache>
      
      
              <!-- **************************** -->
              <!--  Cache to store Lucene data  -->
              <!-- **************************** -->
              <distributed-cache name="LuceneIndexesData" mode="SYNC" remote-timeout="25000">
                  <locking striping="false" acquire-timeout="10000" concurrency-level="500" write-skew="false"/>
                  <transaction mode="NONE"/>
                  <eviction max-entries="-1" strategy="NONE"/>
                  <expiration max-idle="-1"/>
                  <persistence>
        <file-store path="LuceneIndexes/Data" />
        </persistence>
                  <indexing index="NONE"/>
                  <state-transfer enabled="true" timeout="480000" await-initial-transfer="true"/>
              </distributed-cache>
      
      
              <!-- ***************************** -->
              <!--  Cache to store Lucene locks  -->
              <!-- ***************************** -->
              <replicated-cache name="LuceneIndexesLocking" mode="SYNC" remote-timeout="25000">
                  <locking striping="false" acquire-timeout="10000" concurrency-level="500" write-skew="false"/>
                  <transaction mode="NONE"/>
                  <eviction max-entries="-1" strategy="NONE"/>  
                  <expiration max-idle="-1"/>
                  <persistence>
        <file-store path="LuceneIndexes/Locking" />
        </persistence>
                  <indexing index="NONE"/>
                  <state-transfer enabled="true" timeout="480000" await-initial-transfer="true"/>
              </replicated-cache>
          </cache-container>
      
      </infinispan>
      
        • 1. Re: Cannot auto-instantiate factory class BootstrapFactory (unix)
          Michael Harray Newbie

          bump, anyone have any ideas? or at least what steps I can take to debug further? cheers

          • 3. Re: Cannot auto-instantiate factory class BootstrapFactory (unix)
            Michael Harray Newbie

            Thanks for the reply, here are the relevant logs, I'm not sure how much help they will be though:

             

             

            2016-03-12 05:48:40,894 WARN  [localhost-startStop-1] impl.ConfigContext (ConfigContext.java:346) - HSEARCH000075: Configuration setting hibernate.search.lucene_version was not specified: using LUCENE_CURRENT.
            2016-03-12 05:48:41,245 WARN  [localhost-startStop-1] parsing.Parser80 (Parser80.java:1466) - ISPN000383: The eviction max-entries attribute has been deprecated. Please use the size attribute instead
            2016-03-12 05:48:41,251 WARN  [localhost-startStop-1] parsing.Parser80 (Parser80.java:1466) - ISPN000383: The eviction max-entries attribute has been deprecated. Please use the size attribute instead
            2016-03-12 05:48:41,252 WARN  [localhost-startStop-1] parsing.Parser80 (Parser80.java:1466) - ISPN000383: The eviction max-entries attribute has been deprecated. Please use the size attribute instead
            2016-03-12 05:48:41,264 WARN  [localhost-startStop-1] cache.AbstractStoreConfigurationBuilder (AbstractStoreConfigurationBuilder.java:177) - ISPN000149: Fetch persistent state and purge on startup are both disabled, cache may contain stale entries on startup
            2016-03-12 05:48:41,264 WARN  [localhost-startStop-1] cache.AbstractStoreConfigurationBuilder (AbstractStoreConfigurationBuilder.java:177) - ISPN000149: Fetch persistent state and purge on startup are both disabled, cache may contain stale entries on startup
            2016-03-12 05:48:41,265 WARN  [localhost-startStop-1] cache.AbstractStoreConfigurationBuilder (AbstractStoreConfigurationBuilder.java:177) - ISPN000149: Fetch persistent state and purge on startup are both disabled, cache may contain stale entries on startup
            [redacted]
            
            2016-03-12 05:48:41,671 WARN  [localhost-startStop-1] logging.Log4J2LogImpl (Log4J2LogImpl.java:79) - JGRP000015: the receive buffer of socket MulticastSocket was set to 500KB, but the OS only allocated 212.99KB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
            
            
            -------------------------------------------------------------------
            GMS: address=ip-[redacted], cluster=Hibernate Search Cluster, physical address=[redacted]
            -------------------------------------------------------------------
            2016-03-12 05:48:46,690 WARN  [localhost-startStop-1] logging.Log4J2LogImpl (Log4J2LogImpl.java:75) - ip-[redacted]: waiting for UNBLOCK timed out after 2000 ms
            2016-03-12 05:48:46,690 INFO  [localhost-startStop-1] impl.DispatchMessageSender$ManagedChannelContainer (DispatchMessageSender.java:247) - HSEARCH200020: Connected to cluster [ Hibernate Search Cluster ]. The local Address is ip-[redacted]
            2016-03-12 05:48:47,191 INFO  [CacheStartThread,null,LuceneIndexesLocking] jgroups.JGroupsTransport (JGroupsTransport.java:187) - ISPN000078: Starting JGroups channel ISPN
            2016-03-12 05:48:47,196 WARN  [CacheStartThread,null,LuceneIndexesLocking] logging.Log4J2LogImpl (Log4J2LogImpl.java:75) - variable "${jgroups.s3.pre_signed_delete_url}" in S3_PING could not be substituted; pre_signed_delete_url is removed from properties
            2016-03-12 05:48:47,197 WARN  [CacheStartThread,null,LuceneIndexesLocking] logging.Log4J2LogImpl (Log4J2LogImpl.java:75) - variable "${jgroups.s3.prefix}" in S3_PING could not be substituted; prefix is removed from properties
            2016-03-12 05:48:47,197 WARN  [CacheStartThread,null,LuceneIndexesLocking] logging.Log4J2LogImpl (Log4J2LogImpl.java:75) - variable "${jgroups.s3.pre_signed_put_url}" in S3_PING could not be substituted; pre_signed_put_url is removed from properties
            2016-03-12 05:48:47,518 INFO  [CacheStartThread,null,LuceneIndexesData] factories.GlobalComponentRegistry (GlobalComponentRegistry.java:232) - ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.2.Final
            2016-03-12 05:48:47,602 INFO  [CacheStartThread,null,LuceneIndexesData] jgroups.JGroupsTransport (JGroupsTransport.java:187) - ISPN000078: Starting JGroups channel ISPN
            2016-03-12 05:48:47,607 WARN  [CacheStartThread,null,LuceneIndexesData] logging.Log4J2LogImpl (Log4J2LogImpl.java:75) - variable "${jgroups.s3.pre_signed_delete_url}" in S3_PING could not be substituted; pre_signed_delete_url is removed from properties
            2016-03-12 05:48:47,607 WARN  [CacheStartThread,null,LuceneIndexesData] logging.Log4J2LogImpl (Log4J2LogImpl.java:75) - variable "${jgroups.s3.prefix}" in S3_PING could not be substituted; prefix is removed from properties
            2016-03-12 05:48:47,608 WARN  [CacheStartThread,null,LuceneIndexesData] logging.Log4J2LogImpl (Log4J2LogImpl.java:75) - variable "${jgroups.s3.pre_signed_put_url}" in S3_PING could not be substituted; pre_signed_put_url is removed from properties
            WARN [context.support.XmlWebApplicationContext] Exception encountered during context initialization - cancelling refresh attempt
            org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: MyPersistenceUnit] Unable to build Hibernate SessionFactory
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
              at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1048)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:825)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
              at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
              at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1101)
              at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1813)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
            Caused by: javax.persistence.PersistenceException: [PersistenceUnit: MyPersistenceUnit] Unable to build Hibernate SessionFactory
              at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:954)
              at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:882)
              at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)
              at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343)
              at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
              ... 25 more
            Caused by: org.hibernate.search.exception.SearchException: HSEARCH000103: Unable to initialize IndexManager named 'mp.shared.dto.ProductsAndServices'
              at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:260)
              at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:513)
              at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManagers(IndexManagerHolder.java:482)
              at org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:91)
              at org.hibernate.search.spi.SearchIntegratorBuilder.initDocumentBuilders(SearchIntegratorBuilder.java:358)
              at org.hibernate.search.spi.SearchIntegratorBuilder.buildNewSearchFactory(SearchIntegratorBuilder.java:199)
              at org.hibernate.search.spi.SearchIntegratorBuilder.buildSearchIntegrator(SearchIntegratorBuilder.java:117)
              at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:75)
              at org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:35)
              at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:530)
              at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)
              at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879)
              ... 30 more
            Caused by: org.infinispan.commons.CacheConfigurationException: Cannot auto-instantiate factory class org.infinispan.factories.BootstrapFactory as it doesn't implement AutoInstantiableFactory!  Debug stack: null
              at org.infinispan.factories.AbstractComponentRegistry.instantiateFactory(AbstractComponentRegistry.java:368)
              at org.infinispan.factories.AbstractComponentRegistry.createComponentFactoryInternal(AbstractComponentRegistry.java:339)
              at org.infinispan.factories.AbstractComponentRegistry.getFactory(AbstractComponentRegistry.java:322)
              at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:288)
              at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:241)
              at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:70)
              at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:815)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:215)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:170)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:166)
              at org.infinispan.factories.AbstractComponentRegistry.createComponentFactoryInternal(AbstractComponentRegistry.java:343)
              at org.infinispan.factories.AbstractComponentRegistry.getFactory(AbstractComponentRegistry.java:322)
              at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:288)
              at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:153)
              at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:241)
              at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:70)
              at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:815)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:215)
              at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:193)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:170)
              at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
              at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:156)
              at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:241)
              at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:70)
              at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:815)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:215)
              at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:193)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:170)
              at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
              at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:156)
              at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:241)
              at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:70)
              at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:815)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:215)
              at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:193)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:170)
              at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
              at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:156)
              at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:241)
              at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:70)
              at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:815)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:215)
              at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:193)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:170)
              at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
              at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:156)
              at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:241)
              at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:70)
              at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:815)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:215)
              at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:193)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:170)
              at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
              at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:156)
              at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:241)
              at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:70)
              at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:815)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:215)
              at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:193)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:170)
              at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
              at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:156)
              at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:241)
              at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:70)
              at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:815)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:215)
              at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:193)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:170)
              at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
              at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:156)
              at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:241)
              at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:70)
              at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:815)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:215)
              at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:193)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:170)
              at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
              at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:156)
              at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:241)
              at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:70)
              at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:815)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:215)
              at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:193)
              at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:170)
              at org.infinispan.factories.InternalCacheFactory.bootstrap(InternalCacheFactory.java:132)
              at org.infinispan.factories.InternalCacheFactory.createAndWire(InternalCacheFactory.java:73)
              at org.infinispan.factories.InternalCacheFactory.createCache(InternalCacheFactory.java:56)
              at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:613)
              at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:572)
              at org.infinispan.manager.DefaultCacheManager.access$100(DefaultCacheManager.java:118)
              at org.infinispan.manager.DefaultCacheManager$1.run(DefaultCacheManager.java:474)
            
            • 4. Re: Cannot auto-instantiate factory class BootstrapFactory (unix)
              Gustavo Fernandes Apprentice

              Can you try running with -Dinfinispan.debugDependencies=true to try to obtain more info about the error?

              • 5. Re: Cannot auto-instantiate factory class BootstrapFactory (unix)
                Michael Harray Newbie

                Running with infinispan.debugDependencies=true, doesn't provide much more information, however it does give the debug stack which was previously null:

                 

                Caused by: org.infinispan.commons.CacheConfigurationException: Cannot auto-instantiate factory class org.infinispan.factories.BootstrapFactory as it doesn't implement AutoInstantiableFactory! Debug stack: [org.infinispan.remoting.transport.Transport, org.infinispan.persistence.factory.CacheStoreFactoryRegistry, org.infinispan.configuration.cache.Configuration]

                 

                Does that provide any clues?

                • 6. Re: Cannot auto-instantiate factory class BootstrapFactory (unix)
                  Gustavo Fernandes Apprentice

                  Yes, it points to an initialization error in the Transport component. Looking at your config, you should remove the "/" from your jgroups stack config and keep it as:

                   

                  <stack-file name="default-jgroups-ec2" path="default-configs/default-jgroups-ec2.xml"/>

                   

                  Unfortunately the error message is not very good on 8.1, but it was already improved on 8.2, where you'd get

                   

                  Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000365: Could not find the specified JGroups configuration file '/default-configs/default-jgroups-udp.xml'
                  
                  • 7. Re: Cannot auto-instantiate factory class BootstrapFactory (unix)
                    Michael Harray Newbie

                    Brilliant that solved the issue, and it all seems to be working well now. Thank you for your help!