Caused by: org.hibernate.search.exception.AssertionFailure: A reference has been accessed before having been initialized

I have upgraded my application to hibernate 5.6.6 for java 7. Now I am not able to create application context.

Hibernate core> 5.1.15
Hibernate Search > 5…6.6
Spring > 4.3.20

For reference attaching stack trace…

2019-04-05 12:34:06,727 DEBUG support.DefaultSingletonBeanRegistry - Retrieved dependent beans for bean 'dataSource': [domainModelSpringConfig]

2019-04-05 12:34:06,727 DEBUG support.DisposableBeanAdapter - Invoking destroy method 'close' on bean with name 'dataSource'

2019-04-05 12:34:06,905 ERROR spring.ApplicationContextFactory - Spring application context failed to initialize

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'configAPIContextRefreshedApplicationListener': Unsatisfied dependency expressed through field 'propertySourcesHierarchyConfigurator'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'propertySourcesHierarchyConfigurator': Unsatisfied dependency expressed through field 'databasePropertySource'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'databasePropertySource': Unsatisfied dependency expressed through field 'configPropertyRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configPropertyRepository': Cannot create inner bean '(inner bean)#c3cff4' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#c3cff4': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [at/telekom/crm/spring/config/domainmodel/DomainModelSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: CdmPU] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.search.exception.AssertionFailure: A reference has been accessed before having been initialized.

            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)

            at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)

            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:364)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)

            at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)

            at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

            at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)

            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)

            at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)

            at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)

            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)

            at at.telekom.crm.global.spring.ApplicationContextFactory.createApplicationContext(ApplicationContextFactory.java:47)

            at at.telekom.crm.global.spring.ApplicationContextFactory.createGlobalApplicationContext(ApplicationContextFactory.java:35)

            at at.telekom.crm.ejb.eventprocessor.ExecuteEventScript.initSpring(ExecuteEventScript.java:41)

            at at.telekom.crm.ejb.eventprocessor.ExecuteEventScript.main(ExecuteEventScript.java:27)

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'propertySourcesHierarchyConfigurator': Unsatisfied dependency expressed through field 'databasePropertySource'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'databasePropertySource': Unsatisfied dependency expressed through field 'configPropertyRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configPropertyRepository': Cannot create inner bean '(inner bean)#c3cff4' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#c3cff4': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [at/telekom/crm/spring/config/domainmodel/DomainModelSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: CdmPU] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.search.exception.AssertionFailure: A reference has been accessed before having been initialized.

            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)

            at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)

            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:364)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)

            at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)

            at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

            at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)

            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)

            at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)

            at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1136)

            at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064)

            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:583)

            ... 16 more

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'databasePropertySource': Unsatisfied dependency expressed through field 'configPropertyRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configPropertyRepository': Cannot create inner bean '(inner bean)#c3cff4' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#c3cff4': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [at/telekom/crm/spring/config/domainmodel/DomainModelSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: CdmPU] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.search.exception.AssertionFailure: A reference has been accessed before having been initialized.

            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)

            at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)

            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:364)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)

            at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)

            at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

            at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)

            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)

            at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)

            at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1136)

            at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064)

            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:583)

            ... 29 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configPropertyRepository': Cannot create inner bean '(inner bean)#c3cff4' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#c3cff4': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [at/telekom/crm/spring/config/domainmodel/DomainModelSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: CdmPU] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.search.exception.AssertionFailure: A reference has been accessed before having been initialized.

            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)

            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1534)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1281)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)

            at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)

            at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

            at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)

            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)

            at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)

            at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1136)

            at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064)

            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:583)

            ... 42 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#c3cff4': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [at/telekom/crm/spring/config/domainmodel/DomainModelSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: CdmPU] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.search.exception.AssertionFailure: A reference has been accessed before having been initialized.

            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)

            at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:634)

            at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:448)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1178)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1072)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)

            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)

            ... 55 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [at/telekom/crm/spring/config/domainmodel/DomainModelSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: CdmPU] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.search.exception.AssertionFailure: A reference has been accessed before having been initialized.

            at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1178)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1072)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)

            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)

            at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)

            at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

            at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)

            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)

            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)

            ... 63 more

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: CdmPU] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.search.exception.AssertionFailure: A reference has been accessed before having been initialized.

            at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)

            at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)

            ... 72 more

Caused by: javax.persistence.PersistenceException: [PersistenceUnit: CdmPU] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.search.exception.AssertionFailure: A reference has been accessed before having been initialized.

            at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:396)

            at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:371)

            at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:336)

            at at.telekom.crm.spring.config.domainmodel.DomainModelSpringConfig.entityManagerFactory(DomainModelSpringConfig.java:53)

            at at.telekom.crm.spring.config.domainmodel.DomainModelSpringConfig$$EnhancerBySpringCGLIB$$6ee40132.CGLIB$entityManagerFactory$2(<generated>)

            at at.telekom.crm.spring.config.domainmodel.DomainModelSpringConfig$$EnhancerBySpringCGLIB$$6ee40132$$FastClassBySpringCGLIB$$72fab691.invoke(<generated>)

            at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)

            at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358)

            at at.telekom.crm.spring.config.domainmodel.DomainModelSpringConfig$$EnhancerBySpringCGLIB$$6ee40132.entityManagerFactory(<generated>)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

            at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)

            ... 73 more

Caused by: org.hibernate.search.exception.AssertionFailure: A reference has been accessed before having been initialized.

            at org.hibernate.search.engine.metadata.impl.BackReference.get(BackReference.java:42)

            at org.hibernate.search.engine.metadata.impl.DocumentFieldMetadata.getSourceType(DocumentFieldMetadata.java:87)

            at org.hibernate.search.engine.metadata.impl.TypeMetadata.buildFieldMetadataMap(TypeMetadata.java:445)

            at org.hibernate.search.engine.metadata.impl.TypeMetadata.<init>(TypeMetadata.java:183)

            at org.hibernate.search.engine.metadata.impl.TypeMetadata$Builder.build(TypeMetadata.java:655)

            at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.doGetTypeMetadataFor(AnnotationMetadataProvider.java:184)

            at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.getTypeMetadataForContainedIn(AnnotationMetadataProvider.java:152)

            at org.hibernate.search.spi.SearchIntegratorBuilder.initDocumentBuilders(SearchIntegratorBuilder.java:346)

            at org.hibernate.search.spi.SearchIntegratorBuilder.buildNewSearchFactory(SearchIntegratorBuilder.java:202)

            at org.hibernate.search.spi.SearchIntegratorBuilder.buildSearchIntegrator(SearchIntegratorBuilder.java:120)

            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:540)

            at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:423)

            at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880)

            at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)

            at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:360)

            at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:384)

            ... 86 more

2019-04-05 12:34:07,441 WARN  cbo.SessionSpy - (J2SE default behaviour ("ß".toUpperCase() = SS) but with AMDOCS Workaround => "ß".toUpperCase() = ß

2019-04-05 12:34:30,819 INFO  expr.CustomizedExprStartupXB - Initializing CoreExpr to use at.telekom.clarify.global.cache.expr.CustomizedExprHandler

<AIF> version : 8.3.0.pb00_hf26

<AWSI> version (deprecating): 8.3.0.0.13

Exception in thread "main" java.lang.IllegalStateException: The Spring Application Context is not properly initialized.

            at at.telekom.crm.global.spring.ApplicationContextProvider.getApplicationContext(ApplicationContextProvider.java:19)

            at at.telekom.crm.global.spring.ApplicationContextProvider.getBean(ApplicationContextProvider.java:30)

            at at.telekom.crm.eventprocessor.impl.EventProcessorServiceFactory.updateEvent(EventProcessorServiceFactory.java:97)

            at at.telekom.crm.ejb.eventprocessor.ExecuteEventScript.executeEvent(ExecuteEventScript.java:54)

            at at.telekom.crm.ejb.eventprocessor.ExecuteEventScript.main(ExecuteEventScript.java:35)

KBosServices::~KBosServices() : ref count 3

Hello,

Sorry for the late answer, I forgot to hit “reply”…

Please use markdown formatting for long stack traces next time; just add a line containing only ``` (three backticks) before your stack trace and another line containing only ``` after your stack trace.

About your problem: the bad news is there seems to be a bug in Hibernate Search. The good news is this bug only happens because Hibernate Search was trying to warn you about a problem in your mapping. So if you fix you mapping, you will get rid of the error.

I do not have enough information to tell you the details, but the problem is that you have two fields with the exact same name, one of which seems to be declared by a class bridge or a class-level @Spatial annotation. Make sure you didn’t apply a class bridge twice, or declared a field within a class bridge with the same name as in a @Field annotation.

If you need the name of that field, you will have to put a breakpoint in org.hibernate.search.engine.metadata.impl.TypeMetadata#buildFieldMetadataMap, inside the if ( oldFieldMetadata != null ): the field name will be in the variable name.

We’ll work on fixing the problem in HSEARCH-3562, which will for sure be part of the next 5.11 release. 5.6 is not maintained anymore, though, so I can’t promise anything.