apoc.custom.asProcedure

Hi,

I am using neo4j-community-4.0.4 with apoc-4.0.0.18-all plugin.

When I am trying to register a custom procedure CALL apoc.custom.asProcedure('answer','RETURN 42 as answer') the system is throwing following error:

Failed to invoke procedure apoc.custom.asProcedure: Caused by: java.lang.NoSuchMethodError: 'void org.neo4j.internal.kernel.api.procs.ProcedureSignature.(org.neo4j.internal.kernel.api.procs.QualifiedName, java.util.List, java.util.List, org.neo4j.procedure.Mode, boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, boolean, boolean, boolean)'

Thanks