Rob
Rob

Reputation: 885

neo4j plugin method signature mismatch

In my Neo4j plugin I have a method:

@Procedure("myworld.implement")
public static Stream<MyItem> implement() {
    ...

When I invoke it in the browser:

call myworld.implement()

I get the response:

Failed to invoke procedure `myworld.implement`: Caused by: 
java.lang.invoke.WrongMethodTypeException: cannot convert 
MethodHandle()Stream to (Object)Object

How is there a mismatch between my method declaration and my method invocation?

(Neo4j 3.0.1 Community Edition)

Upvotes: 1

Views: 43

Answers (1)

Rob
Rob

Reputation: 885

I should not have declared the method as static

correct:

@Procedure("myworld.implement")
public Stream<MyItem> implement() {
    ...

Upvotes: 1

Related Questions