jaliss / securesocial

A module that provides OAuth, OAuth2 and OpenID authentication for Play Framework applications
http://www.securesocial.ws
Apache License 2.0
1.19k stars 510 forks source link

Getting weird issue with email sending #606

Closed praveeny1986 closed 7 years ago

praveeny1986 commented 7 years ago

Hi,

We are using securesocial 3.0-M5, and play version 2.4.3. And we get the following exception(weird that it occurs only sometimes not always). Any guidance/resolution will be much appreciated.

play.api.UnexpectedException: Unexpected exception[IllegalStateException: cannot enqueue after timer shutdown] at play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:261) ~[com.typesafe.play.play_2.11-2.4.6.jar:2.4.6] at play.api.http.DefaultHttpErrorHandler.onServerError(HttpErrorHandler.scala:191) ~[com.typesafe.play.play_2.11-2.4.6.jar:2.4.6] at play.api.GlobalSettings$class.onError(GlobalSettings.scala:179) [com.typesafe.play.play_2.11-2.4.6.jar:2.4.6] at play.core.j.JavaGlobalSettingsAdapter.play$core$j$JavaGlobalSettingsAdapter$$super$onError(JavaGlobalSettingsAdapter.scala:36) [com.typesafe.play.play_2.11-2.4.6.jar:2.4.6] at play.core.j.JavaGlobalSettingsAdapter$$anonfun$onError$2.apply(JavaGlobalSettingsAdapter.scala:36) [com.typesafe.play.play_2.11-2.4.6.jar:2.4.6] Caused by: java.lang.IllegalStateException: cannot enqueue after timer shutdown at akka.actor.LightArrayRevolverScheduler.scheduleOnce(Scheduler.scala:277) ~[com.typesafe.akka.akka-actor_2.11-2.3.13.jar:na] at akka.actor.Scheduler$class.scheduleOnce(Scheduler.scala:117) ~[com.typesafe.akka.akka-actor_2.11-2.3.13.jar:na] at akka.actor.LightArrayRevolverScheduler.scheduleOnce(Scheduler.scala:182) ~[com.typesafe.akka.akka-actor_2.11-2.3.13.jar:na] at securesocial.core.providers.utils.Mailer$Default.sendEmail(Mailer.scala:98) ~[ws.securesocial.securesocial_2.11-3.0-M5.jar:3.0-M5] at securesocial.core.providers.utils.Mailer$Default.sendAlreadyRegisteredEmail(Mailer.scala:60) ~[ws.securesocial.securesocial_2.11-3.0-M5.jar:3.0-M5] [[[31merror[[0m] application -