hugegraph增加顶点或边遇到The label of vertex can‘t be null的问题
The of be 遇到 增加 null can Label
2023-09-11 14:16:24 时间
1. 问题描述
基于hugegraph提供的client api增加图的顶点或边,遇到The label of vertex can't be null 或 The label of edge can't be null的错误,如下:
Exception in thread "main" class java.lang.IllegalArgumentException: The label of vertex can't be null
at com.baidu.hugegraph.exception.ServerException.fromResponse(ServerException.java:47)
at com.baidu.hugegraph.client.RestClient.checkStatus(RestClient.java:93)
at com.baidu.hugegraph.rest.AbstractRestClient.post(AbstractRestClient.java:198)
at com.baidu.hugegraph.rest.AbstractRestClient.post(AbstractRestClient.java:178)
at com.baidu.hugegraph.api.graph.VertexAPI.create(VertexAPI.java:58)
at com.baidu.hugegraph.driver.GraphManager.addVertices(GraphManager.java:96)
at com.tech.graph.tools.mock.MockData.addData(MockData.java:78)
at com.tech.graph.tools.mock.MockData.main(MockData.java:35)
代码如下:
相关文章
- Neor Profile SQL is the solution for developers wanting to profile the MySQL queries. This software allows the tracking of all queries to MySQL server from your application or website.
- 解决Jenkins的错误“The Server rejected the connection: None of the protocols were accepted”
- Understanding the Impact of NOLOCK and WITH NOLOCK Table Hints in SQL Server
- NEW SECRET “???” ACHIEVEMENT AND CARD BACK FROM BARRENS – MYSTERIES OF THE PHOENIX – FULL SOLUTION INSIDE!
- The Mathematics of the Rubik’s Cube
- get the request body of all quests before handle it
- Found conflicts between different versions of the same dependent assembly that could not be resolved
- 存在隐患 : 3 racks are required for the erasure coding policies: RS-6-3-1024k. The number of racks is on
- BZOJ3808 : Neerc2012 Labyrinth of the Minotaur
- The Future Of the Software Development
- nrm ls报错:The "path" argument must be of type string. Received undefined
- The last access date is not changed even after reading the file on Windows 7
- The reference to entity "characterEncoding" must end with the ';' delimiter
- js detect the type of device
- 【解决方案】ERROR: lib/bridge_generated.dart:837:9: Error: The parameter ‘ptr‘ of the method ‘FlutterRustB
- Correct the classpath of your application so that it contains a single, compatible version of…
- The features of Swift
- No enclosing instance of type JDStudent is acAcessible. Must qualify the allocation with an enclosin
- 【RefactoringCode】The description of the refactoring book
- Last 2 dimensions of the array must be square
- The total number of locks exceeds the lock table size,mysql update报错
- suseoj The wheat of the prime minister
- The number of object passed must be even but was [1]
- The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet- mapping*,session-config?,mime-map
- The type name 'IComponentConnector' could not be found in the namespace 'System.Windows.Markup'