我尝试从Neo4j 3.3.0 docker image添加APOC到我的Neo4j实例,但在启动期间,我收到以下错误:
neo4j-database> 2017-12-11 19:57:01.189+0000 ERROR [c.g.r.b.RuntimeKernelExtension] Could not start GraphAware Runtime because the database didn't get to a usable state within 5 minutes.
neo4j-database> 2017-12-11 19:57:01.192+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@498f5728' was successfully initialized, but failed to start. Please see the attached cause exception "Cannot inherit from final class". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@498f5728' was successfully initialized, but failed to start. Please see the attached cause exception "Cannot inherit from final class".
neo4j-database> org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@498f5728' was successfully initialized, but failed to start. Please see the attached cause exception "Cannot inherit from final class".
neo4j-database> at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
neo4j-database> at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:218)
neo4j-database> at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:111)
neo4j-database> at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:79)
neo4j-database> at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32)
neo4j-database> Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@498f5728' was successfully initialized, but failed to start. Please see the attached cause exception "Cannot inherit from final class".
neo4j-database> at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466)
neo4j-database> at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
neo4j-database> at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:210)
neo4j-database> ... 3 more
neo4j-database> Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, /var/lib/neo4j/data/databases/graph.db
neo4j-database> at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:211)
neo4j-database> at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:126)
neo4j-database> at org.neo4j.server.CommunityNeoServer.lambda$static$0(CommunityNeoServer.java:58)
neo4j-database> at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:88)
neo4j-database> at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
neo4j-database> ... 5 more
neo4j-database> Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.proc.Procedures@6af29394' was successfully initialized, but failed to start. Please see the attached cause exception "Cannot inherit from final class".
neo4j-database> at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466)
neo4j-database> at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
neo4j-database> at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:207)
neo4j-database> ... 9 more
neo4j-database> Caused by: java.lang.VerifyError: Cannot inherit from final class
neo4j-database> at java.lang.ClassLoader.defineClass1(Native Method)
neo4j-database> at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
neo4j-database> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
neo4j-database> at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
neo4j-database> at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
neo4j-database> at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
neo4j-database> at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
neo4j-database> at java.security.AccessController.doPrivileged(Native Method)
neo4j-database> at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
neo4j-database> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
neo4j-database> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
neo4j-database> at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
neo4j-database> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
neo4j-database> at org.neo4j.kernel.impl.proc.ProcedureJarLoader$1.fetchNextOrNull(ProcedureJarLoader.java:141)
neo4j-database> at org.neo4j.kernel.impl.proc.ProcedureJarLoader$1.fetchNextOrNull(ProcedureJarLoader.java:118)
neo4j-database> at org.neo4j.collection.PrefetchingRawIterator.peek(PrefetchingRawIterator.java:50)
neo4j-database> at org.neo4j.collection.PrefetchingRawIterator.hasNext(PrefetchingRawIterator.java:36)
neo4j-database> at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProcedures(ProcedureJarLoader.java:91)
neo4j-database> at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProceduresFromDir(ProcedureJarLoader.java:82)
neo4j-database> at org.neo4j.kernel.impl.proc.Procedures.start(Procedures.java:275)
neo4j-database> at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
neo4j-database> ... 11 more
neo4j
我使用以下插件:
apoc-3.3.0.1-all.jar
graphaware-neo4j-to-elasticsearch-3.3.0.51.7.jar
graphaware-server-community-all-3.3.0.51.jar
没有apoc-3.3.0.1-all.jar
插件,一切都很好。此外,只有apoc-3.3.0.1-all.jar
插件没有graphaware插件,它才能正常运行。
这个问题可能是什么原因?