I dont know why but same configuration works on my local.
But not on remote server.

I even uninstalled Neo4j on my local still it was working on local server.
I deploy same '.war' file on server and it wont save objects.

On Mon, Mar 21, 2016 at 8:48 PM, Radheshyam Verma <radhe2...@gmail.com>
wrote:

> and Neo4jService is an Autowired field
>
> On Mon, Mar 21, 2016 at 8:48 PM, Radheshyam Verma <radhe2...@gmail.com>
> wrote:
>
>> Neo4jService is a class created by me
>>
>>
>> On Mon, Mar 21, 2016 at 8:42 PM, Michael Hunger <
>> michael.hun...@neotechnology.com> wrote:
>>
>>> What does your configuration look like? And how do you get the Neo4jService
>>> instance?
>>>
>>> Am 21.03.2016 um 15:44 schrieb Radheshyam Verma <radhe2...@gmail.com>:
>>>
>>> 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 <radhe2...@gmail.com>
>>> wrote:
>>>
>>>> PS: Thanks For the Quick response. I wasn't ready for this.
>>>>
>>>> On Mon, Mar 21, 2016 at 5:16 PM, Radheshyam Verma <radhe2...@gmail.com>
>>>> 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 neo4j+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Neo4j" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/neo4j/2A1QiEOwofU/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> neo4j+unsubscr...@googlegroups.com.
>>> For more options, visit 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