Wil*_*ung 5 java google-app-engine http
我正在使用以下JAVA代码发出URL请求
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 );
}
Run Code Online (Sandbox Code Playgroud)
它在Google App Engine上运行,在appengine sdk 1.9.49中没有任何问题.但是当我升级到1.9.50时,它会返回以下警告
[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.
Run Code Online (Sandbox Code Playgroud)
我需要采取什么行动或者忽略它?谢谢
| 归档时间: |
|
| 查看次数: |
764 次 |
| 最近记录: |