Deemoore / oauth-signpost

Automatically exported from code.google.com/p/oauth-signpost
0 stars 0 forks source link

null pointer while talking to api.login.yahoo.com/oauth while on an android phone #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use 1.2.1.1 of oauth and do some setup using the api.login.yahoo.com 
oauth server
create consumer and provider
2. Get the request auth url
provider.retrieveRequestToken(...)
3. Run code on an android phone

What is the expected output? What do you see instead?
I was expecting the auth url (the code works on my laptop), but I get this 
error

E/VerificationActivity( 1357): 
oauth.signpost.exception.OAuthCommunicationException: Communication with 
the service provider failed: null
...
E/VerificationActivity( 1357): Caused by: java.lang.NullPointerException
E/VerificationActivity( 1357):  at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.re
adln(HttpURLConnection.java:1178)...

What version of the product are you using? On what operating system?
1.2.1.1  The code works on Redhat, windows, and Ubuntu, but failed me when 
I ran on ether an android emulator or an android phone

Please provide any additional information below.

The problem seems to be an issue with what yahoo returns though i dont know 
whats happening.  other sites work alright.

Thanks for taking the time to look at this issue.

Original issue reported on code.google.com by ekaqu1...@gmail.com on 8 May 2010 at 5:55

Attachments:

GoogleCodeExporter commented 8 years ago
DON'T use DefaultOAuthConsumer/DefaultOAuthProvider on Android, it won't work.

Original comment by m.kaepp...@gmail.com on 2 Jun 2010 at 7:56

GoogleCodeExporter commented 8 years ago
Also, always post an executable piece of code that reproduces this issues or I 
feel
inclined to automatically reject it. Moreover, before opening
bug reports, post your problem on the mailing list, so we can rule out the 
chance that
the problem is with your code rather than with Signpost.

Original comment by m.kaepp...@gmail.com on 2 Jun 2010 at 7:57

GoogleCodeExporter commented 8 years ago
So I switched to the CommonsClientOAuthConsumer|Provider and everything started 
working.

What would be nice is if the documentation got updated to say to not to use the 
URLConnection method for android.  

Original comment by ekaqu1...@gmail.com on 6 Jun 2010 at 8:09

GoogleCodeExporter commented 8 years ago
Issue is coming for me for yahoo. i can't it please help me. u

Original comment by anil.cho...@gmail.com on 24 May 2011 at 11:34