java.lang.NoSuchMethodError:com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx。<init>,同时调用getNoTx方法

时间:2019-07-31 15:49:36

标签: orientdb2.2

OrientGraphFactory factory = new OrientGraphFactory(dbUrl+"/"+dbName,userName, password).setupPool(minConnections, maxConnections);
OrientGraphNoTx noTxGraph = orientGraphFactory.getNoTx();

上述对getNoTx()的方法调用引发以下错误:

  

java.lang.NoSuchMethodError:   com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx。(Lcom / orientechnologies / orient / core / db / OPartitionedDatabasePool; Lcom / tinkerpop / blueprints / impls / orient / OrientConfigurableGraph $ Settings;)V     在   com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getNoTx(OrientGraphFactory.java:138)   〜[orientdb-graphdb-2.2.8.jar:2.2.8]在   com.mycomp.one.platform.my.controller.MyController.saveOrganization(MyController.java:110)   〜[classes /:na]在sun.reflect.NativeMethodAccessorImpl.invoke0(本机   方法)〜[na:1.8.0_141]在   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)   〜[na:1.8.0_141]在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)   〜[na:1.8.0_141]在java.lang.reflect.Method.invoke(Method.java:498)   〜[na:1.8.0_141]在   org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)   〜[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)   〜[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)   〜[spring-webmvc-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)   〜[spring-webmvc-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)   〜[spring-webmvc-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)   〜[spring-webmvc-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)   〜[spring-webmvc-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)   〜[spring-webmvc-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)   〜[spring-webmvc-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)   〜[spring-webmvc-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   javax.servlet.http.HttpServlet.service(HttpServlet.java:661)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)   〜[spring-webmvc-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   javax.servlet.http.HttpServlet.service(HttpServlet.java:742)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)   〜[tomcat-embed-websocket-8.5.23.jar:8.5.23]在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)   〜[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)   〜[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)   〜[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)   〜[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)   〜[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)   〜[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)   〜[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)   〜[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)   〜[tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)   [tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)   [tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)   [tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)   [tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)   [tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)   [tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)   [tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)   [tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.coyote.AbstractProtocol $ ConnectionHandler.process(AbstractProtocol.java:868)   [tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1459)   [tomcat-embed-core-8.5.23.jar:8.5.23]在   org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)   [tomcat-embed-core-8.5.23.jar:8.5.23]在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)   [na:1.8.0_141]在   java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)   [na:1.8.0_141]在   org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)   [tomcat-embed-core-8.5.23.jar:8.5.23]在   java.lang.Thread.run(Thread.java:748)[na:1.8.0_141]

有人遇到过吗?

看了orient-graph-2.2.8的开源代码,我可以在源代码中看到这种方法

OrientGraphFactory factory = new OrientGraphFactory(dbUrl+"/"+dbName,userName, password).setupPool(minConnections, maxConnections);
OrientGraphNoTx noTxGraph = orientGraphFactory.getNoTx();

获取OrientGraphNoTx object

0 个答案:

没有答案