# Hibernate Search 6.0 - org.hibernate.search.util.common.AssertionFailure

**URL:** https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073
**Category:** Hibernate Search
**Created:** [February 17, 2021, 4:47pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073 "2021-02-17T16:47:16Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![randheer\_choudhary](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@randheer\_choudhary](https://discourse.hibernate.org/u/randheer_choudhary)
#### Post date: [February 17, 2021, 4:47pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/1 "2021-02-17T16:47:16Z")

</div>

nested exception is org.hibernate.search.util.common.AssertionFailure: Unexpected duplicate key: reSchedulement – this may indicate a bug or a missing test in Hibernate Search. Please report it: [Come and join us! - Hibernate](https://hibernate.org/community/)

I am using hibernate search 6.0.1 with Springboot 2.4.2. This is the exception i’m getting at the time of deployment

---

<div class="post-metadata">

### Author: ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)
#### Post date: [February 17, 2021, 4:50pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/2 "2021-02-17T16:50:09Z")

</div>

Hello,

That’s not enough information. Please at least give the full stack trace. Make sure to format it properly (use the button `</>` in the message editor).

---

<div class="post-metadata">

### Author: ![randheer\_choudhary](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@randheer\_choudhary](https://discourse.hibernate.org/u/randheer_choudhary)
#### Post date: [February 17, 2021, 4:51pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/3 "2021-02-17T16:51:06Z")

</div>

Invocation of init method failed; nested exception is org.hibernate.search.util.common.AssertionFailure: Unexpected duplicate key: reSchedulement – this may indicate a bug or a missing test in Hibernate Search. Please report it: [Come and join us! - Hibernate](https://hibernate.org/community/)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)  
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1415)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:608)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)  
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:923)  
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588)  
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144)  
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767)  
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)  
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426)  
at org.springframework.boot.SpringApplication.run(SpringApplication.java:326)  
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1311)  
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1300)  
at com.phed.Application.main(Application.java:19)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
at java.lang.reflect.Method.invoke(Unknown Source)  
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)`Preformatted text`

---

<div class="post-metadata">

### Author: ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)
#### Post date: [February 17, 2021, 4:54pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/4 "2021-02-17T16:54:54Z")

</div>

That’s just the first part of the stack trace. Please include the **whole** stacktrace, including all the following “Caused by: […]”.

And, again, please format it correctly…

---

<div class="post-metadata">

### Author: ![randheer\_choudhary](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@randheer\_choudhary](https://discourse.hibernate.org/u/randheer_choudhary)
#### Post date: [February 17, 2021, 4:56pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/5 "2021-02-17T16:56:54Z")

</div>

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘EmtServiceImpl’: Unsatisfied dependency expressed through field ‘EmtServiceDAO’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘EmtServiceDAOImpl’: Unsatisfied dependency expressed through field ‘dbSession’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dbSession’ defined in class path resource [com/phed/config/AppConfig.class]: Unsatisfied dependency expressed through method ‘dbSession’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in class path resource [com/ccr/config/AppConfig.class]: Invocation of init method failed; nested exception is org.hibernate.search.util.common.AssertionFailure: Unexpected duplicate key: reSchedulement – this may indicate a bug or a missing test in Hibernate Search. Please report it: [Come and join us! - Hibernate](https://hibernate.org/community/)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)  
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1415)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:608)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)  
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)`Preformatted text`

---

<div class="post-metadata">

### Author: ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)
#### Post date: [February 17, 2021, 4:57pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/6 "2021-02-17T16:57:52Z")

</div>

That’s still not the full stack trace. There are things after that.

---

<div class="post-metadata">

### Author: ![randheer\_choudhary](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@randheer\_choudhary](https://discourse.hibernate.org/u/randheer_choudhary)
#### Post date: [February 17, 2021, 4:59pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/7 "2021-02-17T16:59:19Z")

</div>

do you have hibernate zulipchat account ?  
We can converse there over this issue properly

---

<div class="post-metadata">

### Author: ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)
#### Post date: [February 17, 2021, 4:59pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/8 "2021-02-17T16:59:49Z")

</div>

I do. But I will still need the stacktrace 🙂

---

<div class="post-metadata">

### Author: ![randheer\_choudhary](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@randheer\_choudhary](https://discourse.hibernate.org/u/randheer_choudhary)
#### Post date: [February 17, 2021, 5:02pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/9 "2021-02-17T17:02:10Z")

</div>

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘EMitraKioskRestController’: Unsatisfied dependency expressed through field ‘eMitraKioskService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘EMitraKioskServiceImpl’: Unsatisfied dependency expressed through field ‘kioskControllerServiceDAO’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘kioskControllerServiceDAOImpl’: Unsatisfied dependency expressed through field ‘dbSession’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dbSession’ defined in class path resource [com/phed/config/AppConfig.class]: Unsatisfied dependency expressed through method ‘dbSession’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in class path resource [com/phed/config/AppConfig.class]: Invocation of init method failed; nested exception is org.hibernate.search.util.common.AssertionFailure: Unexpected duplicate key: reSchedulement – this may indicate a bug or a missing test in Hibernate Search. Please report it:  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)  
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1415)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:608)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)  
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:923)  
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588)  
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144)  
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767)  
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)  
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426)  
at org.springframework.boot.SpringApplication.run(SpringApplication.java:326)  
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1311)  
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1300)  
at com.phed.Application.main(Application.java:19)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
at java.lang.reflect.Method.invoke(Unknown Source)  
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)  
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘EMitraKioskServiceImpl’: Unsatisfied dependency expressed through field ‘kioskControllerServiceDAO’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘kioskControllerServiceDAOImpl’: Unsatisfied dependency expressed through field ‘dbSession’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dbSession’ defined in class path resource [com/phed/config/AppConfig.class]: Unsatisfied dependency expressed through method ‘dbSession’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in class path resource [com/phed/config/AppConfig.class]: Invocation of init method failed; nested exception is org.hibernate.search.util.common.AssertionFailure: Unexpected duplicate key: reSchedulement – this may indicate a bug or a missing test in Hibernate Search. Please report it:  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)  
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1415)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:608)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)  
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)  
… 25 common frames omitted  
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘kioskControllerServiceDAOImpl’: Unsatisfied dependency expressed through field ‘dbSession’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dbSession’ defined in class path resource [com/phed/config/AppConfig.class]: Unsatisfied dependency expressed through method ‘dbSession’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in class path resource [com/phed/config/AppConfig.class]: Invocation of init method failed; nested exception is org.hibernate.search.util.common.AssertionFailure: Unexpected duplicate key: reSchedulement – this may indicate a bug or a missing test in Hibernate Search. Please report it:  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)  
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1415)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:608)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)  
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)  
… 38 common frames omitted  
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dbSession’ defined in class path resource [com/phed/config/AppConfig.class]: Unsatisfied dependency expressed through method ‘dbSession’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in class path resource [com/phed/config/AppConfig.class]: Invocation of init method failed; nested exception is org.hibernate.search.util.common.AssertionFailure: Unexpected duplicate key: reSchedulement – this may indicate a bug or a missing test in Hibernate Search. Please report it:  
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)  
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1179)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:571)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)  
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)  
… 51 common frames omitted  
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in class path resource [com/phed/config/AppConfig.class]: Invocation of init method failed; nested exception is org.hibernate.search.util.common.AssertionFailure: Unexpected duplicate key: reSchedulement – this may indicate a bug or a missing test in Hibernate Search. Please report it: [Come and join us! - Hibernate](https://hibernate.org/community/)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:609)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)  
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)  
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)  
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)  
… 64 common frames omitted  
Caused by: org.hibernate.search.util.common.AssertionFailure: Unexpected duplicate key: reSchedulement – this may indicate a bug or a missing test in Hibernate Search. Please report it:  
at org.hibernate.search.util.common.impl.StreamHelper.lambda$throwingMerger$4(StreamHelper.java:64)  
at java.util.Map.merge(Unknown Source)  
at java.util.stream.Collectors.lambda$toMap$58(Unknown Source)  
at java.util.stream.ReduceOps$3ReducingSink.accept(Unknown Source)  
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)  
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)  
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)  
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)  
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)  
at java.util.stream.ReferencePipeline.collect(Unknown Source)  
at org.hibernate.search.mapper.pojo.model.hcann.spi.AbstractPojoHCAnnBootstrapIntrospector.declaredMethodAccessXPropertiesByName(AbstractPojoHCAnnBootstrapIntrospector.java:52)  
at org.hibernate.search.mapper.pojo.model.hcann.spi.AbstractPojoHCAnnRawTypeModel.declaredMethodAccessXPropertiesByName(AbstractPojoHCAnnRawTypeModel.java:73)  
at org.hibernate.search.mapper.pojo.model.hcann.spi.AbstractPojoHCAnnRawTypeModel.declaredPropertyNames(AbstractPojoHCAnnRawTypeModel.java:57)  
at org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel.declaredProperties(AbstractPojoRawTypeModel.java:89)  
at org.hibernate.search.mapper.pojo.mapping.definition.annotation.impl.AnnotationPojoTypeMetadataContributorFactory.processAnnotations(AnnotationPojoTypeMetadataContributorFactory.java:75)  
at org.hibernate.search.mapper.pojo.mapping.definition.annotation.impl.AnnotationPojoTypeMetadataContributorFactory.createIfAnnotated(AnnotationPojoTypeMetadataContributorFactory.java:53)  
at org.hibernate.search.mapper.pojo.mapping.definition.annotation.impl.AnnotationMappingConfigurationContextImpl.configure(AnnotationMappingConfigurationContextImpl.java:83)  
at org.hibernate.search.mapper.pojo.mapping.spi.AbstractPojoMappingInitiator.configure(AbstractPojoMappingInitiator.java:120)  
at org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmMappingInitiator.configure(HibernateOrmMappingInitiator.java:113)  
at org.hibernate.search.engine.common.impl.SearchIntegrationBuilderImpl$MappingBuildingState.collect(SearchIntegrationBuilderImpl.java:342)  
at org.hibernate.search.engine.common.impl.SearchIntegrationBuilderImpl.prepareBuild(SearchIntegrationBuilderImpl.java:217)  
at org.hibernate.search.mapper.orm.bootstrap.impl.HibernateOrmIntegrationBooterImpl.doBootFirstPhase(HibernateOrmIntegrationBooterImpl.java:259)  
at org.hibernate.search.mapper.orm.bootstrap.spi.HibernateOrmIntegrationBooterBehavior.bootFirstPhase(HibernateOrmIntegrationBooterBehavior.java:17)  
at org.hibernate.search.mapper.orm.bootstrap.impl.HibernateOrmIntegrationBooterImpl.lambda$bootNow$7(HibernateOrmIntegrationBooterImpl.java:218)  
at java.util.Optional.orElseGet(Unknown Source)  
at org.hibernate.search.mapper.orm.bootstrap.impl.HibernateOrmIntegrationBooterImpl.bootNow(HibernateOrmIntegrationBooterImpl.java:218)  
at java.util.concurrent.CompletableFuture.uniApply(Unknown Source)  
at java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)  
at java.util.concurrent.CompletableFuture.postComplete(Unknown Source)  
at java.util.concurrent.CompletableFuture.complete(Unknown Source)  
at org.hibernate.search.mapper.orm.bootstrap.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:41)  
at org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:35)  
at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:389)  
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:462)  
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:708)  
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724)  
at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:616)  
at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:600)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1847)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)  
… 75 common frames omitted`Preformatted text`

---

<div class="post-metadata">

### Author: ![randheer\_choudhary](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@randheer\_choudhary](https://discourse.hibernate.org/u/randheer_choudhary)
#### Post date: [February 17, 2021, 5:07pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/10 "2021-02-17T17:07:40Z")

</div>

> [@randheer\_choudhary](#):
>
> bootstrap

you got the full fullstacktrace ? 🙂

---

<div class="post-metadata">

### Author: ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)
#### Post date: [February 17, 2021, 5:13pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/11 "2021-02-17T17:13:13Z")

</div>

I do now, thanks.

This is [HSEARCH-4117](https://hibernate.atlassian.net/browse/HSEARCH-4117), which will be solved in 6.1. I’ll see if I can backport the fix to 6.0.2, but I’m not sure it would be a good idea considering the extent of changes. [**EDIT** : I did backport it to 6.0.2 in the end]

The problem is most likely that you have a method named `isSomething()` and another named `getSomething()` in the same entity. Essentially you have two getters for the same property, and Hibernate Search gets confused.

If you remove either one of the getters, the exception will disappear.

---

<div class="post-metadata">

### Author: ![randheer\_choudhary](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@randheer\_choudhary](https://discourse.hibernate.org/u/randheer_choudhary)
#### Post date: [February 17, 2021, 5:16pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/12 "2021-02-17T17:16:10Z")

</div>

Nope, there is not that kinds of method in service and dao classes.

---

<div class="post-metadata">

### Author: ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)
#### Post date: [February 17, 2021, 5:16pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/13 "2021-02-17T17:16:45Z")

</div>

It’s in your entity classes.

And to be clear, I don’t mean **literally** `isSomething()`/`getSomething()`. It could be `isEnabled()`/`getEnabled()`, `isChecked()`/`getChecked()`, … My point is there are two getters for the same property.

---

<div class="post-metadata">

### Author: ![randheer\_choudhary](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@randheer\_choudhary](https://discourse.hibernate.org/u/randheer_choudhary)
#### Post date: [February 17, 2021, 5:19pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/14 "2021-02-17T17:19:37Z")

</div>

You mean the entity class that i marked with @indexed annotation ?  
Or any entity class ?

Actually after debugging i found that this exception arise before index creating start.

---

<div class="post-metadata">

### Author: ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)
#### Post date: [February 17, 2021, 5:22pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/15 "2021-02-17T17:22:00Z")

</div>

Probably the one annotated with `@Indexed`, but it could be another one, or even an `@Embeddable`, if you use `@IndexedEmbedded` somewhere.

---

<div class="post-metadata">

### Author: ![randheer\_choudhary](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@randheer\_choudhary](https://discourse.hibernate.org/u/randheer_choudhary)
#### Post date: [February 17, 2021, 5:23pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/16 "2021-02-17T17:23:23Z")

</div>

No I am not using @Embeddable . This is simple entity without any joining.

Exception arise before indexing start.

---

<div class="post-metadata">

### Author: ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)
#### Post date: [February 17, 2021, 5:25pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/17 "2021-02-17T17:25:18Z")

</div>

My point still stands.

> [@yrodiere](#):
>
> It’s in your entity classes.

> [@yrodiere](#):
>
> Probably the one annotated with `@Indexed` , but it could be another one

> [@yrodiere](#):
>
> My point is there are two getters for the same property.

---

<div class="post-metadata">

### Author: ![randheer\_choudhary](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@randheer\_choudhary](https://discourse.hibernate.org/u/randheer_choudhary)
#### Post date: [February 17, 2021, 5:27pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/18 "2021-02-17T17:27:10Z")

</div>

okay , i am checking it through my entire project and will revert

---

<div class="post-metadata">

### Author: ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)
#### Post date: [February 17, 2021, 5:40pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/19 "2021-02-17T17:40:05Z")

</div>

By the way, according to the stack trace, the name of the property is `reSchedulement`.

---

<div class="post-metadata">

### Author: ![randheer\_choudhary](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@randheer\_choudhary](https://discourse.hibernate.org/u/randheer_choudhary)
#### Post date: [February 17, 2021, 5:45pm UTC](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073/20 "2021-02-17T17:45:35Z")

</div>

Oh GOD , i found that.

you solved the issue . It’s really great yrodiere.

Thanks a-lot. Everything working fine.  
Thank you sir

[Next page](https://discourse.hibernate.org/t/hibernate-search-6-0-org-hibernate-search-util-common-assertionfailure/5073.md?page=2)
