Migrate unmanaged extentions to Neo4J 3.0

114 views
Skip to first unread message

Artur W

unread,
Apr 27, 2016, 12:59:57 PM4/27/16
to Neo4j
Hi,

I try to migrate my unmaneged extention from  Neo4j 2.3.2 (Comunity Edition)  to Neo4J 3.0 (CE) . So I updated the Neo4j version in my pom.xml file and rebuild the plugin.
After that I copied it into the plugin directory and edited the neo4j.conf as following:

dbms.unmanaged_extension_classes=package.path.to.my.resource=/graph/

When I try to start neo4j I get the following stacktracke:

2016-04-26 12:52:54.297+0000 INFO  Starting...
2016-04-26 12:52:54.784+0000 INFO  Bolt enabled on localhost:7687.
2016-04-26 12:52:56.589+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@5384a166' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@5384a166' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@5384a166' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:217)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:81)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:60)
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:28)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@5384a166' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:189)
... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.CommunityFacadeFactory, /home/artur/apps/neo4j-community-3.0.0/data/databases/graph.db
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:144)
at org.neo4j.kernel.impl.factory.CommunityFacadeFactory.newFacade(CommunityFacadeFactory.java:40)
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:108)
at org.neo4j.server.CommunityNeoServer.lambda$static$32(CommunityNeoServer.java:55)
at org.neo4j.server.CommunityNeoServer$$Lambda$43/1393931310.newGraphDatabase(Unknown Source)
at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.proc.Procedures@4e6bcab1' was successfully initialized, but failed to start. Please see attached cause exception.
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.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:140)
... 11 more
Caused by: org.neo4j.kernel.api.exceptions.ProcedureException: Procedures must return a Stream of records, where a record is a concrete class
that you define and not a Stream<?>.
at org.neo4j.kernel.impl.proc.OutputMappers.mapper(OutputMappers.java:162)
at org.neo4j.kernel.impl.proc.ReflectiveProcedureCompiler.compileProcedure(ReflectiveProcedureCompiler.java:106)
at org.neo4j.kernel.impl.proc.ReflectiveProcedureCompiler.compile(ReflectiveProcedureCompiler.java:84)
at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProcedures(ProcedureJarLoader.java:88)
at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProceduresFromDir(ProcedureJarLoader.java:77)
at org.neo4j.kernel.impl.proc.Procedures.start(Procedures.java:125)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
... 13 more


Using the same in 2.3.2 via org.neo4j.server.thirdparty_jaxrs_classes=package.path.to.my.resources=/graph in neo4j-server.properties works fine.

Thanks.

Regards Artur.




Sotiris Beis

unread,
Aug 23, 2016, 12:16:11 PM8/23/16
to Neo4j
Any update on this issue? I have the exact same problem.

Cheers,
Sotiris

Max De Marzi Jr.

unread,
Aug 23, 2016, 4:58:17 PM8/23/16
to Neo4j
I did one of mine recently, it was pretty painless. See:


Are you trying to go from Extension to Procedure or keeping it an extension? Got code up anywhere we can take a look?

Sotiris Beis

unread,
Aug 24, 2016, 5:13:23 AM8/24/16
to Neo4j
I am going from extension to extension. The only thing that I had to change in the code was the neo4j version in the pom file.
Reply all
Reply to author
Forward
0 new messages