Tôi đang thực hiện một yêu cầu URL sử dụng mã JAVA saunền tảng thiếu phương thức cảnh báo trong việc tạo ra một yêu cầu HTTP trong Google AppEngine JAVA SDK1.9.50
URL urlObj = new URL(urlStr);
HttpURLConnection httpConn = (HttpURLConnection)urlObj.openConnection();
httpConn.setDoOutput(true);
httpConn.setRequestMethod("GET");
int statusCode = httpConn.getResponseCode();
if (statusCode != HttpURLConnection.HTTP_OK) {
logger.severe("Error in opening url:" + urlStr);
return;
}
bufferReader = new BufferedReader (new InputStreamReader(httpConn.getInputStream(), "UTF-8"));
String line = null;
while ((line = bufferReader.readLine()) != null) {
logger.info(line);
}
Nó chạy trên Google App Engine hoạt động mà không có vấn đề gì ở appengine sdk 1,9,49. Nhưng khi tôi nâng cấp lên 1.9.50, nó sẽ trả về cảnh báo sau
[INFO] 3月 11, 2017 12:04:51 下午 com.google.appengine.repackaged.com.google.protobuf.UnsafeUtil supportsUnsafeByteBufferOperations
[INFO] 警告: platform method missing - proto runtime falling back to safer methods: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.misc")
[INFO] 3月 11, 2017 12:04:51 下午 com.google.appengine.repackaged.com.google.protobuf.UnsafeUtil.supportsUnsafeArrayOperations
[INFO] 警告: platform method missing - proto runtime falling back to safer methods: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.misc")
[INFO] 3月 11, 2017 12:04:51 下午 com.google.appengine.repackaged.com.google.protobuf.UnsafeUtil.supportsUnsafeCopyMemory
[INFO] 警告: copyMemory is missing from platform - proto runtime falling back to safer methods.
Tôi cần phải làm gì hoặc bỏ qua nó? Thx
Xảy ra cho tôi trong cả hai phiên bản 49 và 50. Và nó cho thấy 404 Lỗi không tìm thấy trong phản hồi. – flashsnake