I tried configuring SDN in a test application that already has hibernate in it. But i get the following exception.
Code:Caused by: java.lang.IllegalStateException: Singleton 'nodeEntityStateFactory' isn't currently in creation at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.afterSingletonCreation(DefaultSingletonBeanRegistry.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:239) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:292) at org.springframework.data.neo4j.cross_store.config.CrossStoreNeo4jConfiguration$$EnhancerByCGLIB$$43422e3d.nodeEntityStateFactory(<generated>) at org.springframework.data.neo4j.config.Neo4jConfiguration.mappingContext(Neo4jConfiguration.java:199) at org.springframework.data.neo4j.cross_store.config.CrossStoreNeo4jConfiguration$$EnhancerByCGLIB$$43422e3d.CGLIB$mappingContext$11(<generated>) at org.springframework.data.neo4j.cross_store.config.CrossStoreNeo4jConfiguration$$EnhancerByCGLIB$$43422e3d$$FastClassByCGLIB$$1abce23b.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:280) at org.springframework.data.neo4j.cross_store.config.CrossStoreNeo4jConfiguration$$EnhancerByCGLIB$$43422e3d.mappingContext(<generated>) 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.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:149)
My application context has following configurations:
I have entityManagerFactory defined. I couldn't find any help from the docs or Google.Code:<neo4j:repositories base-package="com.Neuverd.repo*" neo4j-template-ref="template"/> <neo4j:config storeDirectory="c:/neo4j/data" entityManagerFactory="entityManagerFactory"/> <beans:bean id="template" class="org.springframework.data.neo4j.support.Neo4jTemplate" > <beans:constructor-arg ref="graphDatabase"/> </beans:bean> <beans:bean id="graphDatabase" class="org.springframework.data.neo4j.support.DelegatingGraphDatabase"> <constructor-arg ref="graphDatabaseService"/> </beans:bean> <beans:bean id="graphDatabaseService" class="org.neo4j.kernel.EmbeddedGraphDatabase" destroy-method="shutdown"> <constructor-arg index="0" value="c:/neo4j/data" /> </beans:bean>
If someone could help![]()


Reply With Quote
)
