NoSuchMethodError for ReflectionHelper during app launch

306 views
Skip to first unread message

Garvesh Mehrotra

unread,
Dec 18, 2015, 4:08:36 PM12/18/15
to Google App Engine
Hi,

I am trying to launch my Java based app to Google App Engine.
Every time the launch fails with following error.
java.lang.NoSuchMethodError: com.sun.jersey.core.reflection.ReflectionHelper.getOsgiRegistryInstance()Lcom/sun/jersey/core/osgi/OsgiRegistry;

Though I have added jersey-core-1.17.1.jar in the build path, which contains the above mentioned method. I tried rearranging the JARs through Order and Export in eclipse, but to no avail.
Any help is appreciated.

Thanks
Garvesh
Message has been deleted

Adam (Cloud Platform Support)

unread,
Dec 18, 2015, 8:17:38 PM12/18/15
to Google App Engine
This seems like a question that would be better posted to Stack Overflow, rather than a discussion post. The google-appengine group is intended more for general discussion rather than 1-on-1 support assistance. Please see the main Community Support page for a list of the tags we monitor. This type of question seems to have been asked a few times here, here and here, so one of these answers may be of help. Specifically:

"Most of the issues of kind 'java.lang.NoSuchMethodError' occur when there is a library compatibility issue. So you might have jersey-core and jersey-server library version mismatch. You need to check and make sure you have both libraries compatible with each other."

Garvesh Mehrotra

unread,
Dec 20, 2015, 12:36:29 AM12/20/15
to Google App Engine
Thanks Adam.
Sorry for posting my query here.
Reply all
Reply to author
Forward
0 new messages