diff --git a/api/java/lib/GstoreJavaAPI.jar b/api/java/lib/GstoreJavaAPI.jar index 4d14ebc..f39f1aa 100644 Binary files a/api/java/lib/GstoreJavaAPI.jar and b/api/java/lib/GstoreJavaAPI.jar differ diff --git a/api/java/src/jgsc/GstoreConnector.java b/api/java/src/jgsc/GstoreConnector.java index 990b527..e13d867 100644 --- a/api/java/src/jgsc/GstoreConnector.java +++ b/api/java/src/jgsc/GstoreConnector.java @@ -207,7 +207,7 @@ public class GstoreConnector int context_len = GstoreConnector.byte4ToInt(head); // in Java String, there is no need for terminator '\0' in C. so we should omit '\0' at the end of receiving message. - byte[] data_context = new byte[context_len]; + byte[] data_context = new byte[context_len - 1]; int recv_len = 0; do { @@ -293,7 +293,8 @@ public class GstoreConnector + "?x . " + "}"; - gc.load("db_cdblp"); + boolean flag = gc.load("db_cdblp"); + System.out.println(flag); String answer = gc.query(sparql); System.out.println(answer);