我正在尝试将文件上传到Google Bucket。当我在本地服务器中运行应用程序时,一切正常。我在谷歌计算引擎中有一个tomcat实例。如果我将war文件部署到tomcat实例,我会收到以下错误:
HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.directExecutor()Ljava/util/concurrent/Executor;
这是根本原因:
java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.directExecutor()Ljava/util/concurrent/Executor;
com.google.api.gax.retrying.BasicRetryingFuture.<init>(BasicRetryingFuture.java:77)
com.google.api.gax.retrying.DirectRetryingExecutor.createFuture(DirectRetryingExecutor.java:75)
com.google.cloud.RetryHelper.runWithRetries(RetryHelper.java:53)
com.google.cloud.storage.StorageImpl.create(StorageImpl.java:148)
com.google.cloud.storage.StorageImpl.create(StorageImpl.java:141)
我不知道发生了什么。任何帮助将不胜感激。