NoSuchMethodError : google common ImmutableSet.copyOf(..)

前提是你 提交于 2019-12-07 07:33:34

问题


I upgraded my Google app Engine app from 1.7. to 1.8. + Java 7 and i leveled up all API libraries to be up-to-date. I am getting strange exceptions during app inicialization in GAE container :

Constructor threw exception; nested exception is 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)
  • gdata-contacts-3.0.jar
  • gdata-contacts-meta-3.0.jar
  • gdata-core-1.0.jar
  • gdata-client-1.0.jar
  • gdata-base-1.0.jar
  • http client librares version : 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). Any ideas ?


回答1:


i removed latest guava library and used some rc05 version which works fine.



来源:https://stackoverflow.com/questions/16475015/nosuchmethoderror-google-common-immutableset-copyof

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!