Closed unterstein closed 8 years ago
Since the current version i get the following exception during shutdown in production:
[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
^C[warn] play - Error stopping plugin
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationCheck' defined in class neo4jplugin.EmbbededNeo4jConfig: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.data.neo4j.config.ConfigurationCheck org.springframework.data.neo4j.config.Neo4jConfiguration.configurationCheck() throws java.lang.Exception] threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:592) ~[org.springframework.spring-beans-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[org.springframework.spring-beans-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[org.springframework.spring-beans-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[org.springframework.spring-beans-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[org.springframework.spring-beans-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[org.springframework.spring-beans-4.0.1.RELEASE.jar:4.0.1.RELEASE]
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.data.neo4j.config.ConfigurationCheck org.springframework.data.neo4j.config.Neo4jConfiguration.configurationCheck() throws java.lang.Exception] threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:188) ~[org.springframework.spring-beans-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581) ~[org.springframework.spring-beans-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[org.springframework.spring-beans-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[org.springframework.spring-beans-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[org.springframework.spring-beans-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[org.springframework.spring-beans-4.0.1.RELEASE.jar:4.0.1.RELEASE]
Caused by: java.lang.NullPointerException: null
at org.springframework.data.neo4j.support.Neo4jTemplate.getDefaultConverter(Neo4jTemplate.java:509) ~[org.springframework.data.spring-data-neo4j-3.0.0.RC1.jar:na]
at org.springframework.data.neo4j.support.Neo4jTemplate.updateDependencies(Neo4jTemplate.java:124) ~[org.springframework.data.spring-data-neo4j-3.0.0.RC1.jar:na]
at org.springframework.data.neo4j.support.Neo4jTemplate.
obsolete in current version
Hi Sepp,
i get the following exception during shutdown in production:
[warn] play - Error stopping plugin org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'neo4JServiceProvider': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:210) ~[org.springframework.spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) ~[org.springframework.spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198) ~[org.springframework.spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:273) ~[org.springframework.spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1125) ~[org.springframework.spring-context-3.2.2.RELEASE.jar:3.2.2.RELEASE] at neo4jplugin.Neo4JPlugin.get(Neo4JPlugin.java:105) ~[com.github.tuxBurner.play-neo4jplugin_2.10-1.1.1.jar:1.1.1]
and you posted me the following link:
http://stackoverflow.com/questions/5891032/in-a-spring-bean-is-it-possible-to-have-a-shutdown-method-which-can-use-transact
Have a lot of fun ;-) Jo