Исключение ClassNotFound после установки новой библиотеки Data Graph Science - PullRequest
0 голосов
/ 22 апреля 2020

Я следовал руководству по установке здесь , чтобы установить библиотеку neo4j Graph Data Science в мой сервис neo4j 3.5.17, работающий на экземпляре ubuntu AWS.

Следуя полным инструкциям, я также удалил плагин Graph-алгоритмов, как мне сказали, две библиотеки не совместимы и будут вызывать ошибки.

При запуске я получаю следующие ошибки в своих журналах:

Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]: org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@49976824' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.internal.kernel.api.procs.ProcedureCallContext".
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:45)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:184)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:123)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:90)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]: Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@49976824' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.internal.kernel.api.procs.ProcedureCallContext".
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:177)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         ... 3 more
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]: Caused by: java.lang.RuntimeException: Error starting org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory, /var/lib/neo4j/data/databases
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:216)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:135)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.database.CommunityGraphFactory.newGraphDatabase(CommunityGraphFactory.java:40)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:78)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         ... 5 more
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]: Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.proc.Procedures@63019596' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.internal.kernel.api.procs.ProcedureCallContext".
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:211)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         ... 9 more
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]: Caused by: java.lang.NoClassDefFoundError: Lorg/neo4j/internal/kernel/api/procs/ProcedureCallContext;
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at java.lang.Class.getDeclaredFields0(Native Method)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at java.lang.Class.getDeclaredFields(Class.java:1916)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.impl.proc.FieldInjections.setters(FieldInjections.java:90)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.impl.proc.ReflectiveProcedureCompiler.compileProcedure(ReflectiveProcedureCompiler.java:296)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.impl.proc.ReflectiveProcedureCompiler.compileProcedure(ReflectiveProcedureCompiler.java:247)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProcedures(ProcedureJarLoader.java:114)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProceduresFromDir(ProcedureJarLoader.java:85)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.impl.proc.Procedures.start(Procedures.java:323)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         ... 11 more
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]: Caused by: java.lang.ClassNotFoundException: org.neo4j.internal.kernel.api.procs.ProcedureCallContext
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         ... 21 more

Я также попытался обновить версию apo c в моих плагинах до самой последней и получить то же самое ошибка.

...