So is it not Installation Error? Or it is mismatch in the dependencies On Mon, Mar 21, 2016 at 9:59 PM, Radheshyam Verma <radhe2...@gmail.com> wrote:
> I dont remember How I ended up using neo4j 2.1.8 > > In maven dependency tree it pulls SDN 3.3.2 and neo4j kernel 2.1.2 > and pulls in neo4j 2.1.7, lucene-index-2.1.7 and some other such jars > > On Mon, Mar 21, 2016 at 9:38 PM, Michael Hunger < > michael.hun...@neotechnology.com> wrote: > >> Why? Why not a more recent version? >> >> Also did you run mvn dependency:tree ? >> >> >> Am 21.03.2016 um 16:57 schrieb Radheshyam Verma <radhe2...@gmail.com>: >> >> I am using SDN 3.3.2 with neo4j version 2.1.8 >> >> On Mon, Mar 21, 2016 at 9:13 PM, Michael Hunger < >> michael.hun...@neotechnology.com> wrote: >> >>> Looks like a version issue. >>> >>> You have two different versions of Neo4j that are pulled in. >>> >>> you should run mvn dependency:tree and check that the neo4j-version >>> that's pulled in is consistent across >>> >>> SDN 3.4.x uses: <neo4j.version>2.2.5</neo4j.version> >>> SDN 3.5.x uses: <neo4j.version>2.3.2</neo4j.version> >>> >>> Am 21.03.2016 um 16:24 schrieb Radheshyam Verma <radhe2...@gmail.com>: >>> >>> THIS IS THE STACK TRACE OF THE ERROR ON REMOTE SERVER >>> >>> threw exception [Request processing failed; nested exception is >>> org.neo4j.graphdb.TransactionFailureException: commit threw exception] with >>> root cause >>> java.lang.NoSuchMethodError: >>> org.neo4j.kernel.impl.api.index.UniquePropertyIndexUpdater: method >>> <init>()V not found >>> at >>> org.neo4j.kernel.api.impl.index.UniqueLuceneIndexAccessor$LuceneUniquePropertyIndexUpdater.<init>(UniqueLuceneIndexAccessor.java:88) >>> at >>> org.neo4j.kernel.api.impl.index.UniqueLuceneIndexAccessor.newUpdater(UniqueLuceneIndexAccessor.java:45) >>> at >>> org.neo4j.kernel.impl.api.index.OnlineIndexProxy.newUpdater(OnlineIndexProxy.java:59) >>> at >>> org.neo4j.kernel.impl.api.index.AbstractDelegatingIndexProxy.newUpdater(AbstractDelegatingIndexProxy.java:50) >>> at >>> org.neo4j.kernel.impl.api.index.ContractCheckingIndexProxy.newUpdater(ContractCheckingIndexProxy.java:98) >>> at >>> org.neo4j.kernel.impl.api.index.IndexUpdaterMap.getUpdater(IndexUpdaterMap.java:68) >>> at >>> org.neo4j.kernel.impl.api.index.IndexingService.storeUpdateIfIndexExists(IndexingService.java:645) >>> at >>> org.neo4j.kernel.impl.api.index.IndexingService.groupUpdatesByIndexDescriptor(IndexingService.java:595) >>> at >>> org.neo4j.kernel.impl.api.index.IndexingService.validate(IndexingService.java:377) >>> at >>> org.neo4j.kernel.impl.nioneo.xa.NeoStoreTransaction.validateIndexUpdates(NeoStoreTransaction.java:342) >>> at >>> org.neo4j.kernel.impl.nioneo.xa.NeoStoreTransaction.doPrepare(NeoStoreTransaction.java:325) >>> at >>> org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.prepare(XaTransaction.java:307) >>> at >>> org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.commitWriteTx(XaResourceManager.java:588) >>> at >>> org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.commit(XaResourceManager.java:533) >>> at >>> org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.commit(XaResourceHelpImpl.java:64) >>> at >>> org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:548) >>> at >>> org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:448) >>> at >>> org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:385) >>> at >>> org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:123) >>> at >>> org.neo4j.kernel.impl.transaction.BaseSpringTransactionImpl.commit(BaseSpringTransactionImpl.java:66) >>> at >>> org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1021) >>> at >>> org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:761) >>> at >>> org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:730) >>> at >>> org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:485) >>> at >>> org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291) >>> at >>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) >>> at >>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) >>> at >>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) >>> at com.sun.proxy.$Proxy94.addFriends(Unknown Source) >>> at >>> com.accolite.carpool.controllers.UserController.createAccount(UserController.java:324) >>> 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.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221) >>> at >>> org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137) >>> at >>> org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:111) >>> at >>> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:806) >>> at >>> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:729) >>> at >>> org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) >>> at >>> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959) >>> at >>> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893) >>> at >>> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) >>> at >>> org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:644) >>> at >>> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) >>> at >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) >>> at >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at >>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) >>> at >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) >>> at >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at >>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) >>> at >>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) >>> at >>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503) >>> at >>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136) >>> at >>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) >>> at >>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) >>> at >>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) >>> at >>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526) >>> at >>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) >>> at >>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655) >>> at >>> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222) >>> at >>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566) >>> at >>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523) >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>> at >>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) >>> at java.lang.Thread.run(Thread.java:745) >>> >>> On Mon, Mar 21, 2016 at 8:51 PM, Radheshyam Verma <radhe2...@gmail.com> >>> wrote: >>> >>>> 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. >>> >>> >>> >>> -- >>> 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. >> >> >> -- >> 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.