NoSuchMethodError:google common ImmutableSet.copyOf(..) [英] NoSuchMethodError : google common ImmutableSet.copyOf(..)
问题描述
我从1.7版升级了我的Google应用引擎应用。到1.8。 + Java 7和我将所有API库保持最新。我在GAE容器的应用程序中遇到奇怪的异常:
构造函数抛出异常;嵌套异常是java.lang.NoSuchMethodError:
java.lang.NoClassDefFoundError:无法初始化com.google.gdata.client类.contacts.ContactsService
。
,这个例外如下:
。
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库:
即使没有番石榴图书馆也有同样的错误。什么导致这种不兼容?我没有找到更新版本的gdata-contact API(1.47.1)。有任何想法吗 ?
我删除了最新的番石榴库,并使用了一些rc05版本。
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 ?
i removed latest guava library and used some rc05 version which works fine.
这篇关于NoSuchMethodError:google common ImmutableSet.copyOf(..)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!