简体   繁体   English

NoSuchMethodError:谷歌通用的ImmutableSet.copyOf(..)

[英]NoSuchMethodError : google common ImmutableSet.copyOf(..)

I upgraded my Google app Engine app from 1.7. 我将Google App Engine应用程序从1.7升级了。 to 1.8. 到1.8。 + Java 7 and i leveled up all API libraries to be up-to-date. + Java 7和i升级了所有API库,使其保持最新状态。 I am getting strange exceptions during app inicialization in GAE container : 我在GAE容器中的应用程序初始化过程中遇到了奇怪的异常:

Constructor threw exception; 构造函数抛出异常; nested exception is java.lang.NoSuchMethodError: 嵌套的异常是java.lang.NoSuchMethodError:

java.lang.NoClassDefFoundError: Could not initialize class com.google.gdata.client.contacts.ContactsService    
.
 and this exception follows :
.
java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;:
.
.
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:219)

"suspicious" Libraries : “可疑”库:

  • guava 11.0.2 (because it`s dependency for actual gdata project 1.47.1) 番石榴11.0.2(因为它对实际gdata项目1.47.1的依赖性)
  • gdata-contacts-3.0.jar gdata-contacts-3.0.jar
  • gdata-contacts-meta-3.0.jar gdata-contacts-meta-3.0.jar
  • gdata-core-1.0.jar gdata-core-1.0.jar
  • gdata-client-1.0.jar gdata-client-1.0.jar
  • gdata-base-1.0.jar gdata-base-1.0.jar
  • http client librares version : 1.14.1 http客户端librares版本:1.14.1
  • (and bunch of others nonrelated to this issue) (以及与该问题无关的其他一堆)

Even without guava library there`s the same error. 即使没有番石榴库也有同样的错误。 What causes this incompatibility ? 是什么原因导致这种不兼容? I did not found newer version of gdata-contact API (1.47.1). 我没有找到较新版本的gdata-contact API(1.47.1)。 Any ideas ? 有任何想法吗 ?

我删除了最新的番石榴库,并使用了一些rc05版本,​​效果很好。

暂无
暂无

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

相关问题 google appengine issue - java.lang.NoSuchMethodError:com.google.common.collect.ImmutableList.copyOf(Ljava / util / Collection - google appengine issue - java.lang.NoSuchMethodError: com.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection NoSuchMethodError:com.google.common.base.Platform.systemNanoTime()在GWT项目中 - NoSuchMethodError: com.google.common.base.Platform.systemNanoTime() In GWT project App Engine Java部署错误:java.lang.NoSuchMethodError:com.google.common.reflect.TypeToken.isSubtypeOf - App Engine Java Deployment Error: java.lang.NoSuchMethodError: com.google.common.reflect.TypeToken.isSubtypeOf Google App Engine — NoSuchMethodError - Google App Engine — NoSuchMethodError 使用Google端点的NoSuchMethodError - NoSuchMethodError using Google Endpoints Google App Engine上的NoSuchMethodError - NoSuchMethodError on google app engine 创建Google Storage(Java)的存储对象时发生NoSuchMethodError - NoSuchMethodError while creating Storage object of Google Storage (Java) 杰克逊NoSuchMethodError要求在运行时与Google App Engine项目一起使用PropertyOrdering Maven - Jackson NoSuchMethodError requiresPropertyOrdering maven with google app engine project at runtime Stackdriver 在使用“google-api-services-compute”时监控 nosuchmethoderror - Stackdriver monitoring nosuchmethoderror when having a 'google-api-services-compute' AppengineDeploy 后 com.google.api.Service.hasQuota 的 NoSuchMethodError - NoSuchMethodError for com.google.api.Service.hasQuota after appengineDeploy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM