Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActivityExample - Error - Secret can't be null #95

Closed
rmaskey opened this issue Jul 17, 2014 · 2 comments
Closed

ActivityExample - Error - Secret can't be null #95

rmaskey opened this issue Jul 17, 2014 · 2 comments

Comments

@rmaskey
Copy link

rmaskey commented Jul 17, 2014

java.lang.IllegalArgumentException: Secret can't be null
at org.scribe.utils.Preconditions.check(Preconditions.java:84)
at org.scribe.utils.Preconditions.checkNotNull(Preconditions.java:31)
at org.scribe.model.Token.(Token.java:33)
at org.scribe.model.Token.(Token.java:27)
at com.flickr4java.flickr.REST.get(REST.java:159)
at com.flickr4java.flickr.activity.ActivityInterface.userComments(ActivityInterface.java:63)
at com.mphony.feed.util.ActivityExample.showActivity(ActivityExample.java:71)
at com.mphony.feed.util.ActivityExample.main(ActivityExample.java:111)

@gym3000
Copy link

gym3000 commented Sep 11, 2014

I got similar problem before and found that it is because I didn't get token and tokensecrect in OAuth step correctly. Please check following example for details.
https://github.com/callmeal/Flickr4Java/blob/master/Flickr4Java/src/examples/java/AuthExample.java

@boncey
Copy link
Owner

boncey commented Nov 9, 2014

Hi, it's because tokensecret wasn't being set.
I've updated the example now.

@boncey boncey closed this as completed Nov 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants