Matthew Markus
unread,Jun 11, 2012, 3:30:14 PM6/11/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Signpost users
I'm developing on Android (API Level 8) with javac 1.6.0_31, signpost-
core-1.2.1.2.jar, and signpost-commonshttp4-1.2.1.2.jar. For some
reason, my final APK fails on some phones due to a NoSuchMethodError
involving the retrieveRequestToken() method. This is very bizarre and
I wonder if it has something to do with the varargs in the method
signature or some kind of incompatibility between the two signpost jar
files. The strangest thing is that the dex processing seems to be
marking the retrieveRequestToken() method as deprecated at the
bytecode level as can be seen from the following decompilation of
AbstractOAuthProvider (using jd-gui):
/** @deprecated */
public String retrieveRequestToken(OAuthConsumer paramOAuthConsumer,
String paramString, String[] paramArrayOfString)
throws OAuthMessageSignerException, OAuthNotAuthorizedException,
OAuthExpectationFailedException, OAuthCommunicationException
{
monitorenter;
try
{
paramOAuthConsumer.setTokenWithSecret(null, null);
HttpParameters localHttpParameters = new HttpParameters();
...
I do not see this "/** @deprecated */" annotation when I build with
signpost-core-1.2.1.1.jar and signpost-commonshttp4-1.2.1.1.jar:
public String retrieveRequestToken(OAuthConsumer paramOAuthConsumer,
String paramString)
throws OAuthMessageSignerException, OAuthNotAuthorizedException,
OAuthExpectationFailedException, OAuthCommunicationException
{
paramOAuthConsumer.setTokenWithSecret(null, null);
String str1 = this.requestTokenEndpointUrl;
...
I am probably going to roll back to those files for now. Does anyone
have any additional insight into this problem?