[http-bio-8080-exec-3] ERROR facebook.DefaultFacebookAuthDao - Can't update token
Message: null
Line | Method
->> 27 | toString in com.the6hours.grails.springsecurity.facebook.FacebookAuthToken
| 292 | doCall in com.the6hours.grails.springsecurity.facebook.DefaultFacebookAuthDao$_updateToken_closure9
| 815 | withTransaction . . . in org.grails.datastore.gorm.GormStaticApi
| 715 | withTransaction in ''
| 271 | updateToken . . . . . in com.the6hours.grails.springsecurity.facebook.DefaultFacebookAuthDao
| 85 | authenticate in com.the6hours.grails.springsecurity.facebook.FacebookAuthProvider
| 58 | attemptAuthentication in com.the6hours.grails.springsecurity.facebook.FacebookAuthRedirectFilter
| 46 | doFilter in ''
| 82 | doFilter . . . . . . in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
In this part:
if (!equalDates(facebookUser.getProperty('accessTokenExpires') , token.accessToken.expireAt)) {
if (token.accessToken.expireAt || !token.accessToken.accessToken) { //allow null only if both expireAt and accessToken are null
updated = true
facebookUser.setProperty('accessTokenExpires', token.accessToken.expireAt)
} else {
log.warn("Provided accessToken.expiresAt value is null. Skip update")
}
} else {
log.warn("A new accessToken have same token but different expires: $token")
}
[http-bio-8080-exec-3] ERROR facebook.DefaultFacebookAuthDao - Can't update token
Message: null
Line | Method
->> 27 | toString in com.the6hours.grails.springsecurity.facebook.FacebookAuthToken
| 292 | doCall in com.the6hours.grails.springsecurity.facebook.DefaultFacebookAuthDao$_updateToken_closure9
| 815 | withTransaction . . . in org.grails.datastore.gorm.GormStaticApi
| 715 | withTransaction in ''
| 271 | updateToken . . . . . in com.the6hours.grails.springsecurity.facebook.DefaultFacebookAuthDao
| 85 | authenticate in com.the6hours.grails.springsecurity.facebook.FacebookAuthProvider
| 58 | attemptAuthentication in com.the6hours.grails.springsecurity.facebook.FacebookAuthRedirectFilter
| 46 | doFilter in ''
| 82 | doFilter . . . . . . in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
In this part:
if (!equalDates(facebookUser.getProperty('accessTokenExpires') , token.accessToken.expireAt)) {
if (token.accessToken.expireAt || !token.accessToken.accessToken) { //allow null only if both expireAt and accessToken are null
updated = true
facebookUser.setProperty('accessTokenExpires', token.accessToken.expireAt)
} else {
log.warn("Provided accessToken.expiresAt value is null. Skip update")
}
} else {
log.warn("A new accessToken have same token but different expires: $token")
}