java.lang.ExceptionInInitializerError

Stack Overflow | Sergio Sanchez | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.ExceptionInInitializerError

    No message provided

    at org.apache.lucene.codecs.PostingsFormat.forName()
  2. Lucene
    Lucene40Codec.<init>
    1. org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:112)
    2. org.apache.lucene.codecs.lucene40.Lucene40Codec.<init>(Lucene40Codec.java:115)
    2 frames
  3. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    5. java.lang.Class.newInstance(Class.java:442)
    5 frames
  4. Lucene
    IndexWriterConfig.<init>
    1. org.apache.lucene.util.NamedSPILoader.reload(NamedSPILoader.java:67)
    2. org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:45)
    3. org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:37)
    4. org.apache.lucene.codecs.Codec$Holder.<clinit>(Codec.java:47)
    5. org.apache.lucene.codecs.Codec.getDefault(Codec.java:140)
    6. org.apache.lucene.index.LiveIndexWriterConfig.<init>(LiveIndexWriterConfig.java:120)
    7. org.apache.lucene.index.IndexWriterConfig.<init>(IndexWriterConfig.java:140)
    7 frames
  5. org.hibernate.search
    DirectoryHelper.initializeIndexIfNeeded
    1. org.hibernate.search.store.spi.DirectoryHelper.initializeIndexIfNeeded(DirectoryHelper.java:54)
    1 frame
  6. Hibernate Search Engine
    FSDirectoryProvider.initialize
    1. org.hibernate.search.store.impl.DirectoryProviderHelper.createFSIndex(DirectoryProviderHelper.java:128)
    2. org.hibernate.search.store.impl.FSDirectoryProvider.initialize(FSDirectoryProvider.java:53)
    2 frames
  7. org.hibernate.search
    BaseDirectoryProviderService.create
    1. org.hibernate.search.store.spi.BaseDirectoryProviderService.initialize(BaseDirectoryProviderService.java:64)
    2. org.hibernate.search.store.spi.BaseDirectoryProviderService.create(BaseDirectoryProviderService.java:52)
    2 frames
  8. Hibernate Search Engine
    SearchIntegratorBuilder.buildSearchIntegrator
    1. org.hibernate.search.indexes.spi.DirectoryBasedIndexManager.createDirectoryProvider(DirectoryBasedIndexManager.java:230)
    2. org.hibernate.search.indexes.spi.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:90)
    3. org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:256)
    4. org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:513)
    5. org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManagers(IndexManagerHolder.java:482)
    6. org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:91)
    7. org.hibernate.search.spi.SearchIntegratorBuilder.initDocumentBuilders(SearchIntegratorBuilder.java:358)
    8. org.hibernate.search.spi.SearchIntegratorBuilder.buildNewSearchFactory(SearchIntegratorBuilder.java:199)
    9. org.hibernate.search.spi.SearchIntegratorBuilder.buildSearchIntegrator(SearchIntegratorBuilder.java:117)
    9 frames
  9. Hibernate Search ORM
    HibernateSearchSessionFactoryObserver.sessionFactoryCreated
    1. org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:75)
    1 frame
  10. Hibernate
    SessionFactoryImpl.<init>
    1. org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:35)
    2. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:364)
    2 frames
  11. org.hibernate.boot
    SessionFactoryBuilderImpl.build
    1. org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:490)
    1 frame
  12. org.hibernate.jpa
    HibernatePersistenceProvider.createContainerEntityManagerFactory
    1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:878)
    2. org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:151)
    2 frames
  13. Embedded GlassFish Web
    JPADeployer.prepare
    1. org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:199)
    2. org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:107)
    3. org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:223)
    4. org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:510)
    5. org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:230)
    6. org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:168)
    6 frames
  14. Kernel Classes
    ApplicationLifecycle.prepareModule
    1. com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:925)
    1 frame