-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] ./bin/gremlin-console.sh -- -i scripts/example.groovy 时一直报错 #2472
Comments
嗨,@solower!很高兴再次看到你的问题。希望你一切都好! 您遇到的错误 "No signature of method: org.apache.hugegraph.StandardHugeGraph.serverStarted() is applicable for argument types: (org.apache.hugegraph.backend.id.IdGenerator$StringId, org.apache.hugegraph.type.define.NodeRole) values: [server-tinkerpop, MASTER]" 表明 这可能是由以下几个原因导致的:
要解决此问题,您应该:
没有访问您正在使用的库版本的源代码或文档的权限,这些都是您应该遵循的一般步骤,以解决和排查问题。 在 Apache HugeGraph(incubating) Release 1.2.0 中, public void serverStarted(GlobalMasterInfo nodeInfo) 这意味着您需要传递一个 参考源码: Sources
|
Good catch, this is because there was no corresponding modification to the call to |
Yes, your analysis is correct. The error you're encountering is due to the change in the method signature of This means that the You should change the line: graph.serverStarted(IdGenerator.of("server-tinkerpop"), NodeRole.MASTER) to: graph.serverStarted() This should resolve the issue you're encountering. Please try this solution and let me know if you encounter any further issues. For future reference, when a method's signature is changed, all calls to that method need to be updated to match the new signature. This includes calls in scripts, tests, and any other places where the method is used. You can find more information about the Sources
|
In #2370, what are the parameter changes for |
Bug Type (问题类型)
other exception / error (其他异常报错)
Before submit
Environment (环境信息)
Expected & Actual behavior (期望与实际表现)
预期正常导入测试数据
实际报错
Error in scripts/example.groovy at [29: graph.serverStarted(IdGenerator.of("server-tinkerpop"), NodeRole.MASTER)] - No signature of method: org.apache.hugegraph.StandardHugeGraph.serverStarted() is applicable for argument types: (org.apache.hugegraph.backend.id.IdGenerator$StringId, org.apache.hugegraph.type.define.NodeRole) values: [server-tinkerpop, MASTER]
Possible solutions: serverStarted(org.apache.hugegraph.masterelection.GlobalMasterInfo)
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response
The text was updated successfully, but these errors were encountered: