org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager com.search.User

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.search.User
  2. 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.search.User
  3. 0

    hawtio-web security-enabled by default

    GitHub | 2 years ago | jcordes73
    javax.naming.NameNotFoundException: comp/env -- service jboss.naming.context.java.comp.env
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RestComm Getting Started

    Google Groups | 2 years ago | DaveS
    javax.naming.NameNotFoundException: com.sun.enterprise.container.common.spi.util.InjectionManager -- service jboss.naming.context.java."com.sun.enterprise.container.common.spi.util.InjectionManager"

  1. Andreas Häber 4 times, last 1 month ago
20 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. javax.naming.NameNotFoundException

    queue/indexupdates -- service jboss.naming.context.java.queue.indexupdates

    at org.jboss.as.naming.ServiceBasedNamingStore.lookup()
  2. JBoss Application Server: Naming Subsystem
    NamingContext.lookup
    1. org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:103)
    2. org.jboss.as.naming.NamingContext.lookup(NamingContext.java:197)
    3. org.jboss.as.naming.InitialContext.lookup(InitialContext.java:120)
    4. org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183)
    5. org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179)
    5 frames
  3. Java RT
    InitialContext.lookup
    1. javax.naming.InitialContext.lookup(InitialContext.java:411)[rt.jar:1.7.0_60]
    1 frame
  4. Hibernate Search Engine
    SearchFactoryBuilder.buildSearchFactory
    1. org.hibernate.search.backend.impl.jms.JndiJMSBackendQueueProcessor.initializeJMSQueue(JndiJMSBackendQueueProcessor.java:64)
    2. org.hibernate.search.backend.impl.jms.JmsBackendQueueProcessor.initialize(JmsBackendQueueProcessor.java:79)
    3. org.hibernate.search.backend.BackendFactory.createBackend(BackendFactory.java:85)
    4. org.hibernate.search.backend.BackendFactory.createBackend(BackendFactory.java:53)
    5. org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.createBackend(DirectoryBasedIndexManager.java:204)
    6. org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:102)
    7. org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:261)
    8. org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:528)
    9. org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManagers(IndexManagerHolder.java:495)
    10. org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:104)
    11. org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:365)
    12. org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:219)
    13. org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:143)
    13 frames
  5. Hibernate Search ORM
    HibernateSearchSessionFactoryObserver.sessionFactoryCreated
    1. org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:74)
    1 frame
  6. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:52)
    2. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:572)
    3. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1794)
    3 frames
  7. Hibernate EJB
    HibernatePersistence.createContainerEntityManagerFactory
    1. org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:96)
    2. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
    3. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
    4. org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:76)
    4 frames
  8. JPA
    PersistenceUnitServiceImpl$1.run
    1. org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200)
    2. org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57)
    3. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99)
    3 frames
  9. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_60]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_60]
    3. java.lang.Thread.run(Thread.java:745)[rt.jar:1.7.0_60]
    3 frames
  10. JBoss Threads
    JBossThread.run
    1. org.jboss.threads.JBossThread.run(JBossThread.java:122)[jboss-threads-2.1.1.Final-redhat-1.jar:2.1.1.Final-redhat-1]
    1 frame