java - Google Storage API: Could not get access token -
i trying migrate google app engine standard environment application google endpoints 2.0 , facing following issue on local development server testing:
i using gae sdk version 1.9.54 , endpoint framework version 2.0.7, , endpoint management version 1.0.4. google-cloud-storage 1.2.0
i have set application default credentials:
gcloud auth application-default login
[info] gcloud: severe: exception occurred while calling backend method **[info] gcloud: com.google.cloud.storage.storageexception: not access token.** [info] gcloud: @ com.google.cloud.storage.spi.v1.httpstoragerpc.translate(httpstoragerpc.java:189) [info] gcloud: @ com.google.cloud.storage.spi.v1.httpstoragerpc.get(httpstoragerpc.java:335) [info] gcloud: @ com.google.cloud.storage.storageimpl$5.call(storageimpl.java:191) [info] gcloud: @ com.google.cloud.storage.storageimpl$5.call(storageimpl.java:188) [info] gcloud: @ com.google.api.gax.retrying.directretryingexecutor.submit(directretryingexecutor.java:93) [info] gcloud: @ com.google.cloud.retryhelper.runwithretries(retryhelper.java:49) [info] gcloud: @ com.google.cloud.storage.storageimpl.get(storageimpl.java:188) [info] gcloud: @ com.google.cloud.storage.storageimpl.get(storageimpl.java:180)
... code ....
[info] gcloud: @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) [info] gcloud: @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) [info] gcloud: @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) [info] gcloud: @ java.lang.reflect.method.invoke(method.java:498) [info] gcloud: @ com.google.appengine.tools.development.agent.runtime.runtime.invoke(runtime.java:128) [info] gcloud: @ com.google.api.server.spi.systemservice.invokeservicemethod(systemservice.java:351) [info] gcloud: @ com.google.api.server.spi.handlers.endpointsmethodhandler$resthandler.handle(endpointsmethodhandler.java:119) [info] gcloud: @ com.google.api.server.spi.handlers.endpointsmethodhandler$resthandler.handle(endpointsmethodhandler.java:102) [info] gcloud: @ com.google.api.server.spi.dispatcher.pathdispatcher.dispatch(pathdispatcher.java:49) [info] gcloud: @ com.google.api.server.spi.endpointsservlet.service(endpointsservlet.java:71) [info] gcloud: @ javax.servlet.http.httpservlet.service(httpservlet.java:717) [info] gcloud: @ org.mortbay.jetty.servlet.servletholder.handle(servletholder.java:511) [info] gcloud: @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1166) [info] gcloud: @ com.slb.swt.data.oauth.authenticationfilter.dofilter(authenticationfilter.java:26) [info] gcloud: @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) [info] gcloud: @ com.google.appengine.api.socket.dev.devsocketfilter.dofilter(devsocketfilter.java:74) [info] gcloud: @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) [info] gcloud: @ com.google.appengine.tools.development.responserewriterfilter.dofilter(responserewriterfilter.java:134) [info] gcloud: @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) [info] gcloud: @ com.google.appengine.tools.development.headerverificationfilter.dofilter(headerverificationfilter.java:34) [info] gcloud: @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) [info] gcloud: @ com.google.appengine.api.blobstore.dev.serveblobfilter.dofilter(serveblobfilter.java:63) [info] gcloud: @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) [info] gcloud: @ com.google.apphosting.utils.servlet.transactioncleanupfilter.dofilter(transactioncleanupfilter.java:48) [info] gcloud: @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) [info] gcloud: @ com.google.appengine.tools.development.staticfilefilter.dofilter(staticfilefilter.java:122) [info] gcloud: @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) [info] gcloud: @ com.google.appengine.tools.development.devappservermodulesfilter.dodirectrequest(devappservermodulesfilter.java:366) [info] gcloud: @ com.google.appengine.tools.development.devappservermodulesfilter.dodirectmodulerequest(devappservermodulesfilter.java:349) [info] gcloud: @ com.google.appengine.tools.development.devappservermodulesfilter.dofilter(devappservermodulesfilter.java:116) [info] gcloud: @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) [info] gcloud: @ org.mortbay.jetty.servlet.servlethandler.handle(servlethandler.java:388) [info] gcloud: @ org.mortbay.jetty.security.securityhandler.handle(securityhandler.java:216) [info] gcloud: @ org.mortbay.jetty.servlet.sessionhandler.handle(sessionhandler.java:182) [info] gcloud: @ org.mortbay.jetty.handler.contexthandler.handle(contexthandler.java:765) [info] gcloud: @ org.mortbay.jetty.webapp.webappcontext.handle(webappcontext.java:418) [info] gcloud: @ com.google.appengine.tools.development.devappenginewebappcontext.handle(devappenginewebappcontext.java:95) [info] gcloud: @ org.mortbay.jetty.handler.handlerwrapper.handle(handlerwrapper.java:152) [info] gcloud: @ com.google.appengine.tools.development.jettycontainerservice$apiproxyhandler.handle(jettycontainerservice.java:508) [info] gcloud: @ org.mortbay.jetty.handler.handlerwrapper.handle(handlerwrapper.java:152) [info] gcloud: @ org.mortbay.jetty.server.handle(server.java:326) [info] gcloud: @ org.mortbay.jetty.httpconnection.handlerequest(httpconnection.java:542) [info] gcloud: @ org.mortbay.jetty.httpconnection$requesthandler.content(httpconnection.java:938) [info] gcloud: @ org.mortbay.jetty.httpparser.parsenext(httpparser.java:755) [info] gcloud: @ org.mortbay.jetty.httpparser.parseavailable(httpparser.java:218) [info] gcloud: @ org.mortbay.jetty.httpconnection.handle(httpconnection.java:404) [info] gcloud: @ org.mortbay.io.nio.selectchannelendpoint.run(selectchannelendpoint.java:409) [info] gcloud: @ org.mortbay.thread.queuedthreadpool$poolthread.run(queuedthreadpool.java:582) [info] gcloud: caused by: java.io.ioexception: not access token. [info] gcloud: @ com.google.auth.oauth2.appenginecredentials.refreshaccesstoken(appenginecredentials.java:136) [info] gcloud: @ com.google.auth.oauth2.oauth2credentials.refresh(oauth2credentials.java:149) [info] gcloud: @ com.google.auth.oauth2.oauth2credentials.getrequestmetadata(oauth2credentials.java:135) [info] gcloud: @ com.google.auth.http.httpcredentialsadapter.initialize(httpcredentialsadapter.java:96) [info] gcloud: @ com.google.cloud.http.httptransportoptions$1.initialize(httptransportoptions.java:156) [info] gcloud: @ com.google.api.client.http.httprequestfactory.buildrequest(httprequestfactory.java:93) [info] gcloud: @ com.google.api.client.googleapis.services.abstractgoogleclientrequest.buildhttprequest(abstractgoogleclientrequest.java:300) [info] gcloud: @ com.google.api.client.googleapis.services.abstractgoogleclientrequest.executeunparsed(abstractgoogleclientrequest.java:419) [info] gcloud: @ com.google.api.client.googleapis.services.abstractgoogleclientrequest.executeunparsed(abstractgoogleclientrequest.java:352) [info] gcloud: @ com.google.api.client.googleapis.services.abstractgoogleclientrequest.execute(abstractgoogleclientrequest.java:469) [info] gcloud: @ com.google.cloud.storage.spi.v1.httpstoragerpc.get(httpstoragerpc.java:333) [info] gcloud: ... 57 more [info] gcloud: caused by: java.lang.reflect.invocationtargetexception [info] gcloud: @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) [info] gcloud: @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) [info] gcloud: @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) [info] gcloud: @ java.lang.reflect.method.invoke(method.java:498) [info] gcloud: @ com.google.appengine.tools.development.agent.runtime.runtime.invoke(runtime.java:128) [info] gcloud: @ com.google.auth.oauth2.appenginecredentials.refreshaccesstoken(appenginecredentials.java:131) [info] gcloud: ... 67 more [info] gcloud: caused by: java.lang.illegalaccesserror: com/google/appengine/repackaged/com/google/common/base/platform [info] gcloud: @ com.google.appengine.repackaged.com.google.common.base.ticker$1.read(ticker.java:69) [info] gcloud: @ com.google.appengine.repackaged.com.google.common.base.stopwatch.elapsednanos(stopwatch.java:181) [info] gcloud: @ com.google.appengine.repackaged.com.google.common.base.stopwatch.elapsed(stopwatch.java:194) [info] gcloud: @ com.google.appengine.repackaged.com.google.common.cache.localcache$loadingvaluereference.elapsednanos(localcache.java:3665) [info] gcloud: @ com.google.appengine.repackaged.com.google.common.cache.localcache$segment.getandrecordstats(localcache.java:2381) [info] gcloud: @ com.google.appengine.repackaged.com.google.common.cache.localcache$segment.loadsync(localcache.java:2336) [info] gcloud: @ com.google.appengine.repackaged.com.google.common.cache.localcache$segment.lockedgetorload(localcache.java:2294) [info] gcloud: @ com.google.appengine.repackaged.com.google.common.cache.localcache$segment.get(localcache.java:2207) [info] gcloud: @ com.google.appengine.repackaged.com.google.common.cache.localcache.get(localcache.java:4062) [info] gcloud: @ com.google.appengine.repackaged.com.google.common.cache.localcache.getorload(localcache.java:4066) [info] gcloud: @ com.google.appengine.repackaged.com.google.common.cache.localcache$localloadingcache.get(localcache.java:4995) [info] gcloud: @ com.google.appengine.repackaged.com.google.common.cache.localcache$localloadingcache.getunchecked(localcache.java:5001) [info] gcloud: @ com.google.appengine.api.appidentity.appidentityserviceimpl.getaccesstoken(appidentityserviceimpl.java:272) [info] gcloud: ... 73 more [info] gcloud:
Comments
Post a Comment