e.printStackTrace();
}
}
- System.out.println(uri);
+ //System.out.println(uri);
try {
String strJSONString = sbResponse.toString();
Class[][] cr = new Class[1][];
} catch (JSONException ex) {
ex.printStackTrace();
- //throw new Error("IoTRemoteCall: Exiting");
logger.log(Level.WARNING, "package format error", ex.getMessage());
return null;
}
return retval;
} catch (JSONException ex) {
ex.printStackTrace();
- //throw new Error("IoTRemoteCall: Exiting");
logger.log(Level.WARNING, "package format error", ex.getMessage());
return null;
}
e.printStackTrace();
logger.log(Level.WARNING, "package format errors", e.getMessage());
return null;
- //throw new Error("IoTRemoteCall: Exiting");
}
}
/**
* Decode object from JSON
*/
- private static Object decodeObject(JSONObject jsonObj, Class[] tarr) {
+ private static Object decodeObject(JSONObject jsonObj, Class[] tarr) {
try {
String type = jsonObj.getString("type");
e.printStackTrace();
logger.log(Level.WARNING, "package format error", e.getMessage());
return null;
- //throw new Error("IoTRemoteCall: Exiting");
}
}
-
+
+
+ /**
+ * foo and Fooimpl are test class and interface
+ */
interface foo {
int add(int a, int b);
int setRoomID(Integer id);