neo4j-contrib / neo4j-elasticsearch

Neo4j ElasticSearch Integration
Apache License 2.0
210 stars 79 forks source link

unable to start neo4j after jars are copied to plugins folder #49

Open torandneo opened 6 years ago

torandneo commented 6 years ago

Hi I am using Neo4J version 3.4.1 and elastic 6.3.0. Elastic is up and running. i am also using neo4j-contrib/neo4j-elasticsearch from github latest version. After building the jars i copy them all to plugins folder and when i start neo4J i get below error/Exception. Any help with this.

2018-07-11 09:31:11.601+0000 INFO ======== Neo4j 3.4.1 ======== 2018-07-11 09:31:11.638+0000 INFO Starting... SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2018-07-11 09:31:27.915+0000 INFO Bolt enabled on 127.0.0.1:7687. 2018-07-11 09:31:40.901+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@23d030b1' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.proc.ReflectiveProcedureTest$PrivateConstructorProcedure.()". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@23d030b1' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.proc.ReflectiveProcedureTest$PrivateConstructorProcedure.()". org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@23d030b1' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.proc.ReflectiveProcedureTest$PrivateConstructorProcedure.()". at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:220) at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:111) at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:79) at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@23d030b1' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.proc.ReflectiveProcedureTest$PrivateConstructorProcedure.()". at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:212) ... 3 more Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, D:\POC\ELASTICNEO4J\neo4j-community-3.4.1\data\databases\graph.db at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:212) at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:125) at org.neo4j.server.CommunityNeoServer.lambda$static$0(CommunityNeoServer.java:58) at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:88) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445) ... 5 more Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.proc.Procedures@1c38d025' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.proc.ReflectiveProcedureTest$PrivateConstructorProcedure.()". at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:208) ... 9 more Caused by: org.neo4j.internal.kernel.api.exceptions.ProcedureException: Unable to find a usable public no-argument constructor in the class PrivateConstructorProcedure. Please add a valid, public constructor, recompile the class and try again. at org.neo4j.kernel.impl.proc.ReflectiveProcedureCompiler.constructor(ReflectiveProcedureCompiler.java:511) at org.neo4j.kernel.impl.proc.ReflectiveProcedureCompiler.compileProcedure(ReflectiveProcedureCompiler.java:232) at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProcedures(ProcedureJarLoader.java:90) at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProceduresFromDir(ProcedureJarLoader.java:78) at org.neo4j.kernel.impl.proc.Procedures.start(Procedures.java:323) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445) ... 11 more Caused by: java.lang.NoSuchMethodException: org.neo4j.kernel.impl.proc.ReflectiveProcedureTest$PrivateConstructorProcedure.() at java.lang.Class.getConstructor0(Class.java:3082) at java.lang.Class.getConstructor(Class.java:1825) at org.neo4j.kernel.impl.proc.ReflectiveProcedureCompiler.constructor(ReflectiveProcedureCompiler.java:504) ... 16 more 2018-07-11 09:31:40.909+0000 INFO Neo4j Server shutdown initiated by request

jexp commented 5 years ago

Which version of the plugin do you use? The 3.4.x version?

jexp commented 5 years ago

this one: https://github.com/neo4j-contrib/neo4j-elasticsearch/releases/tag/3.4.5

mvid commented 5 years ago

Also seeing this issue. Using plugin 3.4.5, against multiple version of ES, from 6.1.2 to 6.4.5. Running inside docker. It seemed to go away after switching up to Neo 3.4.9

jexp commented 5 years ago

Thanks for reporting that.