I am using Scala Version "2.11.8" and trying to create user defined
procedure with this.
AFAIK procedure takes Only static fields and @Context-annotated fields are
allowed in Procedure classes, so I have created punlic variable as @Context
in Java and extend that file in Scala file and create jar with sbt. But
when I am trying to restart the server I am getting this error.
2016-08-02 12:31:12.419+0000 ERROR Failed to start Neo4j: Starting Neo4j
failed: Component
'org.neo4j.server.database.LifecycleManagingDatabase@77ce1a25' was
successfully initialized, but failed to start. Please see attached cause
exception. Starting Neo4j failed: Component
'org.neo4j.server.database.LifecycleManagingDatabase@77ce1a25' 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@77ce1a25' 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:87)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:66)
at
org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:28)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component
'org.neo4j.server.database.LifecycleManagingDatabase@77ce1a25' 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/anurag/Software/neo4j-community-3.0.2/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$31(CommunityNeoServer.java:55)
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@22b516e9' 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)
... 10 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, with public non-final fields defining the fields in the
record.
If you''d like your procedure to return `Stream`, you could define a record
class like:
public class Output '{'
public Stream out;
'}'
And then define your procedure as returning `Stream<Output>`.
at
org.neo4j.kernel.impl.proc.OutputMappers.invalidReturnType(OutputMappers.java:239)
at
org.neo4j.kernel.impl.proc.OutputMappers.mapper(OutputMappers.java:147)
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)
... 12 more
Any Suggestion?
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.