gpt4 book ai didi

java - ApiProxy$ApplicationException : ApplicationError: 8 after created the API Access in google Cloud Storage

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:10:44 25 4
gpt4 key购买 nike

我创建了一个“可以编辑”的服务帐户名称来访问谷歌云存储。我使用了 Complete sample Application 中提供的示例应用程序用于 java 并部署在 App Engine 中。当在浏览器中调用 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)

谁能建议我解决这个问题。

提前致谢!

最佳答案

您是否按照文档 [1] -> 5 中的说明授予了访问权限。为您的存储桶或对象授予权限。)?

您使用哪个版本的 SDK?可能是旧的 SDK 版本导致了这个异常。

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

关于java - ApiProxy$ApplicationException : ApplicationError: 8 after created the API Access in google Cloud Storage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13953032/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com