What does your configuration look like? And how do you get the Neo4jService instance?
> Am 21.03.2016 um 15:44 schrieb Radheshyam Verma <[email protected]>: > > Is it possible that Neo4j is not installed properly. > Because I probably Uninstalled neo4j and still server starts properly. > But server shows TransactionFailureException when saving object. > > > * I already have graph.db file, And I have some entries in it. > * When I run neo4jTemplate.count() it returns count of the objects. > * but when I save an object it shows TransactionFailureException and count > still remains same. > * code structure is as above > > Can you check what problem this might be? > How do i check if Neo4j is installed properly? > > OS Version:- Linux ip-172-30-1-76 4.1.10-17.31.amzn1.x86_64 #1 SMP Sat Oct 24 > 01:31:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux > > On Mon, Mar 21, 2016 at 5:16 PM, Radheshyam Verma <[email protected] > <mailto:[email protected]>> wrote: > PS: Thanks For the Quick response. I wasn't ready for this. > > On Mon, Mar 21, 2016 at 5:16 PM, Radheshyam Verma <[email protected] > <mailto:[email protected]>> wrote: > The basic structure of the code is as above though. > > Here is the code that is not working > > @Service > @Transactional > public class Neo4jService > { > @Autowired > private Neo4jTemplate template; > > public User addUser(User user) > { > template.save(user); //No Error Till here > return user; //After This step Error occurs > } > } > > > Can it be because improper neo4j version and Spring data version > > > > -- > 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 [email protected] > <mailto:[email protected]>. > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
