2017-03-11 36 views
5

使用下面的Java代碼平臺方法在谷歌的AppEngine JAVA創建一個HTTP請求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); 
} 

它在谷歌應用程序引擎運行工作在AppEngine上SDK我想提出一個URL請求沒有任何問題缺少警告49年9月1日。 但是,當我升級到50年9月1日將其返回下面的警告

[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. 

什麼樣的行動,我需要採取或只是忽略它? Thx

+0

在版本49和50中發生在我身上。它顯示404錯誤沒有在響應中找到。 – flashsnake

回答

1

當前版本爲1.9.52。你應該檢查問題是否在1.9.52中持續存在,如果存在,你應該提交一份Public Issue Tracker報告供我們看一看。你已經注意到了軟件中所謂的迴歸,在以前工作的某些版本發佈之間的功能變更不再適用。