【发布时间】:2020-03-13 08:03:22
【问题描述】:
我正在从 Lambda 访问海王星数据库实例,我已使用以下命令成功配置了从 lambda 中连接海王星数据库
Cluster.Builder builder = Cluster.build();
builder.addContactPoint("endpoint");
builder.port(8182);
builder.enableSsl(true);
builder.keyCertChainFile("SFSRootCAG2.pem");
我什至使用
向数据库发送了更新和插入语句GraphTraversalSource g = traversal().withRemote(DriverRemoteConnection.using(cluster));
g.addV("Custom Label").property(T.id, "CustomId1").property("name", "Custom id vertex 1").next();
但是当我尝试检索顶点的属性时
Vertex vertex = g.V().has(T.id, "CustomId1").next(); System.out.println((String) vertex.value("name"));
我收到属性名称在该顶点上不存在的错误:
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalStateException: The property does not exist as the key has no associated value for the provided element: v[CustomId1]:name
有人可以告诉我这是我在这里犯的错误吗?
【问题讨论】:
标签: java amazon-web-services aws-lambda gremlin amazon-neptune