简体   繁体   English

在Google云端存储中创建API访问后,ApiProxy $ ApplicationException:ApplicationError:8

[英]ApiProxy$ApplicationException: ApplicationError: 8 after created the API Access in google Cloud Storage

I had created a service account name with "can edit" to access the Google cloud storage. 我创建了一个服务帐户名称,可以“编辑”以访问Google云端存储。 I used the sample application provided in Complete sample Application for java and deployed in app engine. 我使用了Complete示例Application for java中提供的示例应用程序并部署在app引擎中。 when call the servlet in browser am getting error like this, 在浏览器中调用servlet时会出现这样的错误,

Uncaught exception from servlet
java.io.IOException
    at com.google.appengine.api.files.FileServiceImpl.translateException(FileServiceImpl.java:615)
    at com.google.appengine.api.files.FileServiceImpl.makeSyncCall(FileServiceImpl.java:588)
    at com.google.appengine.api.files.FileServiceImpl.create(FileServiceImpl.java:506)
    at com.google.appengine.api.files.FileServiceImpl.createNewGSFile(FileServiceImpl.java:153)
    at com.audioapp.ListpeopleServlet.doGet(ListpeopleServlet.java:36)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251)
    at java.lang.Thread.run(Thread.java:679)

Caused by: com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 8: 
    at java.lang.Thread.getStackTrace(Thread.java:1495)
    at com.google.apphosting.runtime.ApiProxyImpl.doSyncCall(ApiProxyImpl.java:240)
    at com.google.apphosting.runtime.ApiProxyImpl.access$000(ApiProxyImpl.java:66)
    at com.google.apphosting.runtime.ApiProxyImpl$1.run(ApiProxyImpl.java:183)
    at com.google.apphosting.runtime.ApiProxyImpl$1.run(ApiProxyImpl.java:180)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.google.apphosting.runtime.ApiProxyImpl.makeSyncCall(ApiProxyImpl.java:180)
    at com.google.apphosting.runtime.ApiProxyImpl.makeSyncCall(ApiProxyImpl.java:66)
    at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:107)
    at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:56)
    at com.google.appengine.api.files.FileServiceImpl.makeSyncCall(FileServiceImpl.java:584)

can anyone suggest me to solve this. 任何人都可以建议我解决这个问题。

Thanks in advance! 提前致谢!

Did you grant access as explained in the docs [1] -> under 5. Give permissions to your bucket or objects. 您是否按照文档[1] - > 5中的说明授予访问权限。为您的存储桶或对象授予权限。 )? )?

Which SDK version do you use? 您使用的是哪个SDK版本? Maybe it's an old SDK version that is causing this exception. 也许这是一个旧的SDK版本导致此异常。

[1] https://developers.google.com/appengine/docs/java/googlestorage/overview [1] https://developers.google.com/appengine/docs/java/googlestorage/overview

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ApplicationError:使用App Engine中的Java远程API将文件发送到Google Cloud Storage时出现10 - ApplicationError: 10 on sending files to Google Cloud Storage using the Java remote API from App Engine 如何获取Google Cloud Storage的访问代码? - How to get Access Code for Google Cloud Storage? 从Google Cloud Storage API Java迁移 - Migrating from the Google Cloud Storage API java 向 Google Cloud Storage API 提供凭据 - Providing Credentials to Google Cloud Storage API openPrefetchingReadChannel无法在Google云端存储客户端API中使用 - openPrefetchingReadChannel is not working in Google Cloud Storage Client API Google Cloud Storage Java API-删除文件 - Google Cloud Storage Java API - Deleting a file 如何访问在谷歌云平台上创建的虚拟机 - How to access VM created on google cloud platform 使用Java中的Cloud Storage JSON API在Google Cloud中恢复可上传的文本文件,面临禁止访问的问题,并显示403错误代码 - Resumable upload text file in Google cloud using Cloud Storage JSON API in java, facing issue of access forbidden with 403 error code 无法访问 Cloud 中的 Google Cloud Storage 服务帐户密钥文件 - Unable to access Google Cloud Storage service account key file in Cloud 线程“ main” com.google.apphosting.api.ApiProxy $ CallNotFoundException中的异常:未找到API包“ mail”或调用“ Send()” - Exception in thread “main” com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package 'mail' or call 'Send()' was not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM