play-authenticate
play-authenticate copied to clipboard
[0.5.2-SNAPSHOT] NPE in OAuth1AuthProvider.authenticate() (LinkedIn)
Hey,
today I came across this in my logs after someone tried authenticating via LinkedIn.
Caused by: java.lang.NullPointerException
at play.api.libs.oauth.OAuth.retrieveAccessToken(OAuth.scala:52)
at com.feth.play.module.pa.providers.oauth1.OAuth1AuthProvider.authenticate(OAuth1AuthProvider.java:118)
at com.feth.play.module.pa.PlayAuthenticate.handleAuthentication(PlayAuthenticate.java:438)
at com.feth.play.module.pa.controllers.Authenticate.authenticate(Authenticate.java:25)
at controllers.Authenticate.authenticate(Authenticate.java:33)
Any hints?
Edit: I am running Play 2.2.4.
@jtammen can you write a test that shows this error?
@jtammen It's a caching problem - do you use multiple machines by any chance?
@joscha Sorry for the late response, I didn't see the notification for your comment.
Neither have I been able to reproduce this issue, nor did the application use multiple nodes... What kind of caching are you referring to?