------------------------------------------------------Code--------------------------------
String query = "get vertex(Person) ";
try (java.sql.PreparedStatement pstmt = con.prepareStatement(query)) {
try (java.sql.ResultSet rs = pstmt.executeQuery()) {
printResultSet(rs);
}
} catch (SQLException e) {
System.out.println("Failed to createStatement: " + e);
}
-------------------------------------------------ERROR-------------------------------------------------
Failed to execute query: request: GET http://ipaddress:9000/restpp/graph/Social/vertices/Person HTTP/1.1, payload size: 0
java.sql.SQLException: Failed to send request: 404 - Not Found. REST-1000: Endpoint is not found from url = /restpp/graph/Social/vertices/Person, please use GET /endpoints to list all valid endpoints.
at com.tigergraph.jdbc.restpp.driver.RestppResponse.(RestppResponse.java:81)
at com.tigergraph.jdbc.restpp.RestppConnection.executeQuery(RestppConnection.java:651)
at com.tigergraph.jdbc.restpp.RestppPreparedStatement.execute(RestppPreparedStatement.java:94)
at com.tigergraph.jdbc.restpp.RestppPreparedStatement.executeQuery(RestppPreparedStatement.java:69)
at com.tigergraph.jdbc.examples.RunQuery2.main(RunQuery2.java:106)
e[0m
Failed to createStatement: java.sql.SQLException: Failed to execute query: request: GET http://ipaddress:9000/restpp/graph/Social/vertices/Person HTTP/1.1, payload size: 0