play-authenticate icon indicating copy to clipboard operation
play-authenticate copied to clipboard

[0.5.2-SNAPSHOT] NPE in OAuth1AuthProvider.authenticate() (LinkedIn)

Open jtammen opened this issue 9 years ago • 3 comments

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 avatar Sep 19 '14 09:09 jtammen

@jtammen can you write a test that shows this error?

joscha avatar Oct 29 '14 01:10 joscha

@jtammen It's a caching problem - do you use multiple machines by any chance?

joscha avatar Nov 05 '14 18:11 joscha

@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?

jtammen avatar Nov 06 '14 14:11 jtammen