It might be my bad that in the testing that one class slipped.

Sorry for that, I'll see how we can fix it.

Michael

> Am 21.07.2015 um 17:51 schrieb Mark Findlater <mark.findla...@googlemail.com>:
> 
> Hey Bhupesh, 
> 
> I haven't looked at the code, but I was getting this same exception. I 
> believe it is supposed to be fixed in the 3.3.1 release, but I didn't have 
> any luck working out why it was failing. I did have luck by using the 
> 3.4.0.M1 SDN release but that's not something you'd want to push live and may 
> have other issues.
> 
> Good luck,
> 
> M
> 
> On Wednesday, 15 July 2015 21:45:52 UTC+1, Bhupesh Goel wrote:
> Hi,
> 
> I tried to modify spring-data-neo4j example project provided at 
> https://github.com/spring-projects/spring-data-neo4j/tree/master/spring-data-neo4j-examples/hello-worlds-aspects
>  
> <https://github.com/spring-projects/spring-data-neo4j/tree/master/spring-data-neo4j-examples/hello-worlds-aspects>
>  to use spring-data-neo4j v3.3.1.RELEASE and Neo4j v2.2.2. But when i execute 
> the Main method (please see attached Main.java file) i get following 
> NotInTransactionException exception :-
> 
> Exception in thread "main" 
> org.springframework.dao.InvalidDataAccessApiUsageException: nested exception 
> is org.neo4j.graphdb.NotInTransactionException
>       at 
> org.springframework.data.neo4j.support.Neo4jExceptionTranslator.translateExceptionIfPossible(Neo4jExceptionTranslator.java:51)
>       at 
> org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:59)
>       at 
> org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)
>       at 
> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:147)
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>       at 
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
>       at com.sun.proxy.$Proxy62.save(Unknown Source)
>       at 
> org.springframework.data.neo4j.examples.hellograph.GalaxyService.makeSomeWorlds(GalaxyService.java:64)
>       at org.springframework.data.neo4j.example.Main.main(Main.java:26)
> Caused by: org.neo4j.graphdb.NotInTransactionException
>       at 
> org.neo4j.kernel.impl.core.ThreadToStatementContextBridge.assertInUnterminatedTransaction(ThreadToStatementContextBridge.java:71)
>       at 
> org.neo4j.kernel.impl.core.ThreadToStatementContextBridge.getTopLevelTransactionBoundToThisThread(ThreadToStatementContextBridge.java:104)
>       at 
> org.neo4j.kernel.impl.core.ThreadToStatementContextBridge.getKernelTransactionBoundToThisThread(ThreadToStatementContextBridge.java:111)
>       at 
> org.neo4j.kernel.impl.core.ThreadToStatementContextBridge.instance(ThreadToStatementContextBridge.java:64)
>       at 
> org.neo4j.kernel.InternalAbstractGraphDatabase.createNode(InternalAbstractGraphDatabase.java:1035)
>       at 
> org.springframework.data.neo4j.support.DelegatingGraphDatabase.createNode(DelegatingGraphDatabase.java:100)
>       at 
> org.springframework.data.neo4j.support.mapping.EntityStateHandler.createNode(EntityStateHandler.java:151)
>       at 
> org.springframework.data.neo4j.support.mapping.EntityStateHandler.useOrCreateState(EntityStateHandler.java:142)
>       at 
> org.springframework.data.neo4j.support.mapping.Neo4jEntityConverterImpl.write(Neo4jEntityConverterImpl.java:166)
>       at 
> org.springframework.data.neo4j.support.mapping.Neo4jEntityPersister$CachedConverter.write(Neo4jEntityPersister.java:179)
>       at 
> org.springframework.data.neo4j.support.mapping.Neo4jEntityPersister.persist(Neo4jEntityPersister.java:247)
>       at 
> org.springframework.data.neo4j.support.mapping.Neo4jEntityPersister.persist(Neo4jEntityPersister.java:235)
>       at 
> org.springframework.data.neo4j.support.Neo4jTemplate.save(Neo4jTemplate.java:365)
>       at 
> org.springframework.data.neo4j.support.Neo4jTemplate.save(Neo4jTemplate.java:354)
>       at 
> org.springframework.data.neo4j.repository.AbstractGraphRepository.save(AbstractGraphRepository.java:91)
>       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.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:434)
>       at 
> org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:419)
>       at 
> org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>       at 
> org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)
>       at 
> org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)
>       at 
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>       at 
> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
>       ... 5 more
> 
> 
> I am launching the Main method from Eclipse. All code and configuration files 
> are provided as attached files. Please do let me know i can i use 
> spring-data-neo4j v3.3.1.RELEASE with Neo4j V2.2.2. 
> 
> What configuration changes i need to do in helloWorldContext.xml or do i need 
> to add more dependencies in pom.xml file? Please reply back with how can i 
> resolve this issue.
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to neo4j+unsubscr...@googlegroups.com 
> <mailto:neo4j+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to