I updated the Google Engine app from 1.7. up to 1.8. + Java 7 and I aligned all the API libraries to be relevant. I get weird exceptions when applying inicialization in a GAE container:
The constructor threw an exception; The 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 (as it depends on the actual gdata 1.47.1 project)
- 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 many others not related to this issue)
Even without the guava library, the same error exists. What causes this incompatibility? I did not find a new version of the gdata-contact API (1.47.1). Any ideas?
source share