org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'MatchService': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.neo4j.driver.v1.Driver.session(Lorg/neo4j/driver/v1/AccessMode;)Lorg/neo4j/driver/v1/Session;


Solutions on the web295

Solution icon of github
Error creating bean with name 'MatchService': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.neo4j.driver.v1.Driver.session(Lorg/neo4j/driver/v1/AccessMode;)Lorg/neo4j/driver/v1/Session;

Solution icon of github
via GitHub by fhureau
, 11 months ago
Error creating bean with name 'timeTreeProcedures': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.neo4j.kernel.api.proc.ProcedureSi gnature.procedureName([Ljava/lang/String;)Lorg/neo4j/kernel/api/proc/ProcedureSignature$ProcedureName;

Solution icon of github
Error creating bean with name 'timeTreeProcedures': Invocation of init method failed; nested excepti on is java.lang.NoSuchMethodError: org.neo4j.kernel.api.proc.ProcedureSignature.procedureName([Ljava/lang/String;)Lorg/neo4j/kernel/api/proc/ProcedureSignature$Procedur eName;

Solution icon of web
via com.br by Unknown author, 1 year ago
Error creating bean with name 'sessionCreator': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;

Solution icon of web
via com.br by Unknown author, 1 year ago
Error creating bean with name 'sessionCreator': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;

Solution icon of stackoverflow
Error creating bean with name 'scheduleJobInit': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.quartz.Scheduler.getTrigger(Lorg/quartz/TriggerKey;)Lorg/quartz/Trigger;

Solution icon of github
Error creating bean with name 'org.springframework.cloud.client.discovery.noop.NoopDiscoveryClientAutoConfiguration': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainer()Lorg/springframework/boot/context/embedded/EmbeddedServletContainer;

Solution icon of github
via GitHub by wilkinsona
, 10 months ago
Error creating bean with name 'mongoSessionRepository': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.IndexOperations.ensureIndex(Lorg/springframework/data/mongodb/core/index/IndexDefinition;)V

Solution icon of github
via GitHub by rwinch
, 9 months ago
Error creating bean with name 'mongoSessionRepository': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.IndexOperations.ensureIndex(Lorg/springframework/data/mongodb/core/index/IndexDefinition;)V

Solution icon of stackoverflow
Error creating bean with name 'org.springframework.boot.autoconfigure.hateoas. HypermediaAutoConfiguration$HypermediaConfiguration$HalObjectMapperConfiguration': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.hateoas.hal.Jackson2HalModule$HalHandlerInstantiator.<init> (Lorg/springframework/hateoas/RelProvider;Lorg/springframework/hateoas/hal/CurieProvider;)V

Stack trace

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'MatchService': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.neo4j.driver.v1.Driver.session(Lorgeo4j/driver/v1/AccessMode;)Lorgeo4j/driver/v1/Session;
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:137)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:409)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1581)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:554)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 13 hours ago
2 times, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
37 times, 3 months ago
246 more bugmates