Problem starting Neo4j outside of console

43 views
Skip to first unread message

Philip Graff

unread,
Nov 20, 2018, 8:44:04 PM11/20/18
to Gremlin-users
Hello all,

I'm developing a small project which will be opening a Neo4j graph through TinkerPop/Gremlin. I have created a Maven project and added Neo4j as a dependency in my pom as specified in the documentation (https://tinkerpop.apache.org/docs/current/reference/#neo4j-gremlin). I build a shaded jar and try to run "java -cp myjar.jar myclass", I get the error below. Any help on what is going wrong would be appreciated. I have been able to run with Neo4j through the Gremlin Console or Server in the past, but this is something I'm trying to run independently if possible.

Exception in thread "main" java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, /tmp/neo4j/graph.db

at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:209)

at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:124)

at org.neo4j.graphdb.factory.GraphDatabaseFactory.newDatabase(GraphDatabaseFactory.java:140)

at org.neo4j.graphdb.factory.GraphDatabaseFactory.newEmbeddedDatabase(GraphDatabaseFactory.java:133)

at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:108)

at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:193)

at org.neo4j.tinkerpop.api.impl.Neo4jFactoryImpl.newGraphDatabase(Neo4jFactoryImpl.java:46)

at org.neo4j.tinkerpop.api.Neo4jFactory$Builder.open(Neo4jFactory.java:32)

at org.apache.tinkerpop.gremlin.neo4j.structure.Neo4jGraph.<init>(Neo4jGraph.java:125)

at org.apache.tinkerpop.gremlin.neo4j.structure.Neo4jGraph.open(Neo4jGraph.java:139)

at edu.jhuapl.dasee.ingesteval.RunIngestVariationsSNAP.main(RunIngestVariationsSNAP.java:97)

Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.NeoStoreDataSource@3fe3b9c1' was successfully initialized, but failed to start. Please see the attached cause exception "No dependency satisfies type class org.neo4j.kernel.api.index.SchemaIndexProvider".

at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444)

at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)

at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:100)

at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)

at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)

at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:205)

... 10 more

Caused by: org.neo4j.kernel.impl.util.UnsatisfiedDependencyException: No dependency satisfies type class org.neo4j.kernel.api.index.SchemaIndexProvider

at org.neo4j.kernel.impl.util.Dependencies.resolveDependency(Dependencies.java:73)

at org.neo4j.kernel.impl.util.Dependencies.resolveDependency(Dependencies.java:68)

at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:403)

at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)

... 15 more



Thanks,
Phil

Robert Dale

unread,
Nov 22, 2018, 2:49:40 PM11/22/18
to gremli...@googlegroups.com
Shading can be a dark art and I'm no expert.  Does it work without shading?

I created a non-shaded project using the two deps in the docs and it worked just fine.

Robert Dale


--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/6ed207f9-1f84-4ad1-8ac6-3a6600a98608%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages