org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.mrobson.example.search.datamodel.Person

Hibernate JIRA | Matt Robson | 2 years ago
  1. 0

    Using the JMS backend, if your app is deployed during server start / restart, it fails to start as it can not look up the JMS queue yet. Once it fails, there is no retry and the app must be re-deployed. The queue is not fully deployed until after the hornetq server is started. {code} 00:58:08,678 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 66) MSC000001: Failed to start service jboss.persistenceunit."dss-slave-sync-1.0-SNAPSHOT.war#testappdb": org.jboss.msc.service.StartException in service jboss.persistenceunit."dss-slave-sync-1.0-SNAPSHOT.war#testappdb": org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.search.User at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:103) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60] at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final-redhat-1.jar:2.1.1.Final-redhat-1] Caused by: org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.search.User at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:265) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:528) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManagers(IndexManagerHolder.java:495) at org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:104) at org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:365) at org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:219) at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:143) at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:74) at org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:52) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:572) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1794) at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:96) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:76) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99) ... 4 more Caused by: org.hibernate.search.SearchException: HSEARCH000164: Unable to lookup Search queue '/queue/indexupdates' and connection factory 'java:/RemoteConnectionFactory' for index 'com.search.User' at org.hibernate.search.backend.impl.jms.JndiJMSBackendQueueProcessor.initializeJMSQueue(JndiJMSBackendQueueProcessor.java:67) at org.hibernate.search.backend.impl.jms.JmsBackendQueueProcessor.initialize(JmsBackendQueueProcessor.java:79) at org.hibernate.search.backend.BackendFactory.createBackend(BackendFactory.java:85) at org.hibernate.search.backend.BackendFactory.createBackend(BackendFactory.java:53) at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.createBackend(DirectoryBasedIndexManager.java:204) at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:102) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:261) ... 21 more Caused by: javax.naming.NameNotFoundException: queue/indexupdates -- service jboss.naming.context.java.queue.indexupdates at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:103) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:197) at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:120) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179) at javax.naming.InitialContext.lookup(InitialContext.java:411) [rt.jar:1.7.0_60] at org.hibernate.search.backend.impl.jms.JndiJMSBackendQueueProcessor.initializeJMSQueue(JndiJMSBackendQueueProcessor.java:64) ... 27 more 00:58:17,497 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 67) HQ221003: trying to deploy queue jms.queue.IndexingQueue 00:58:17,503 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 67) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/queue/indexupdates 00:58:17,503 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 67) JBAS011601: Bound messaging object to jndi name java:/queue/indexupdates 00:58:17,833 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report JBAS014777: Services which failed to start: service jboss.persistenceunit."dss-slave-sync-1.0-SNAPSHOT.war#testappdb": org.jboss.msc.service.StartException in service jboss.persistenceunit."dss-slave-sync-1.0-SNAPSHOT.war#testappdb": org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.search.User {code}

    Hibernate JIRA | 2 years ago | Matt Robson
    org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.mrobson.example.search.datamodel.Person
  2. 0

    Hibernate search index location issue

    Stack Overflow | 1 year ago | user1689757
    org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.ab.irh.model.Publication
  3. 0

    Several tests are failing for this same cause: {noformat}Caused by: org.hibernate.search.SearchException: Unable to create index directory: E:\workspace\hibernate-search-master-windows\backends\jgroups\file:\E:\workspace\hibernate-search-master-windows\orm\target\indextemp\DefaultTestResourceManager-265fc020\master\copy for index org.hibernate.search.test.jgroups.master.TShirt at org.hibernate.search.store.impl.DirectoryProviderHelper.makeSanityCheckedDirectory(DirectoryProviderHelper.java:245) at org.hibernate.search.store.impl.DirectoryProviderHelper.getSourceDirectory(DirectoryProviderHelper.java:114) at org.hibernate.search.store.impl.FSMasterDirectoryProvider.initialize(FSMasterDirectoryProvider.java:90) at org.hibernate.search.store.impl.DirectoryProviderFactory.createDirectoryProvider(DirectoryProviderFactory.java:88) at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.createDirectoryProvider(DirectoryBasedIndexManager.java:213) at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:100) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:264) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:531) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManagers(IndexManagerHolder.java:498) at org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:107) at org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:362) at org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:218) at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:143) at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:74) at org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:52) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:587) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1928) at org.hibernate.search.test.DefaultTestResourceManager.openSessionFactory(DefaultTestResourceManager.java:85) at org.hibernate.search.test.SearchTestCaseJUnit4.setUp(SearchTestCaseJUnit4.java:55) at org.hibernate.search.test.jgroups.common.MultipleSessionsSearchTestCase.setUp(MultipleSessionsSearchTestCase.java:87) at org.hibernate.search.test.jgroups.common.MuxChannelTest.setUp(MuxChannelTest.java:63){noformat}

    Hibernate JIRA | 3 years ago | Sanne Grinovero
    org.hibernate.search.SearchException: Unable to create index directory: E:\workspace\hibernate-search-master-windows\backends\jgroups\file:\E:\workspace\hibernate-search-master-windows\orm\target\indextemp\DefaultTestResourceManager-265fc020\master\copy for index org.hibernate.search.test.jgroups.master.TShirt
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Several tests are failing for this same cause: {noformat}Caused by: org.hibernate.search.SearchException: Unable to create index directory: E:\workspace\hibernate-search-master-windows\backends\jgroups\file:\E:\workspace\hibernate-search-master-windows\orm\target\indextemp\DefaultTestResourceManager-265fc020\master\copy for index org.hibernate.search.test.jgroups.master.TShirt at org.hibernate.search.store.impl.DirectoryProviderHelper.makeSanityCheckedDirectory(DirectoryProviderHelper.java:245) at org.hibernate.search.store.impl.DirectoryProviderHelper.getSourceDirectory(DirectoryProviderHelper.java:114) at org.hibernate.search.store.impl.FSMasterDirectoryProvider.initialize(FSMasterDirectoryProvider.java:90) at org.hibernate.search.store.impl.DirectoryProviderFactory.createDirectoryProvider(DirectoryProviderFactory.java:88) at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.createDirectoryProvider(DirectoryBasedIndexManager.java:213) at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:100) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:264) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:531) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManagers(IndexManagerHolder.java:498) at org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:107) at org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:362) at org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:218) at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:143) at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:74) at org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:52) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:587) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1928) at org.hibernate.search.test.DefaultTestResourceManager.openSessionFactory(DefaultTestResourceManager.java:85) at org.hibernate.search.test.SearchTestCaseJUnit4.setUp(SearchTestCaseJUnit4.java:55) at org.hibernate.search.test.jgroups.common.MultipleSessionsSearchTestCase.setUp(MultipleSessionsSearchTestCase.java:87) at org.hibernate.search.test.jgroups.common.MuxChannelTest.setUp(MuxChannelTest.java:63){noformat}

    Hibernate JIRA | 3 years ago | Sanne Grinovero
    org.hibernate.search.SearchException: Unable to create index directory: E:\workspace\hibernate-search-master-windows\backends\jgroups\file:\E:\workspace\hibernate-search-master-windows\orm\target\indextemp\DefaultTestResourceManager-265fc020\master\copy for index org.hibernate.search.test.jgroups.master.TShirt
  6. 0

    Hibernate 4.2 Infinispan 5.1 directory provider issue

    Stack Overflow | 3 years ago | user2913892
    org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager xx.inov8.domain.innovation.InnovationComponent

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.search.SearchException

      HSEARCH000103: Unable to initialize IndexManager com.mrobson.example.search.datamodel.Person

      at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager()
    2. Hibernate Search Engine
      SearchFactoryBuilder.buildSearchFactory
      1. org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:265)
      2. org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:528)
      3. org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManagers(IndexManagerHolder.java:495)
      4. org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:104)
      5. org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:364)
      6. org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:219)
      7. org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:143)
      7 frames
    3. Hibernate Search ORM
      HibernateSearchSessionFactoryObserver.sessionFactoryCreated
      1. org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:74)
      1 frame
    4. Hibernate
      SessionFactoryObserverChain.sessionFactoryCreated
      1. org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:52)
      1 frame