[play-akka.actor.default-dispatcher-31] ERROR be.objectify.deadbolt.java.utils.RequestUtils - Error getting subject: No EntityManager bound to this thread. Try to annotate your action method with @play.db.jpa.Transactional
java.lang.RuntimeException: No EntityManager bound to this thread. Try to annotate your action method with @play.db.jpa.Transactional
at play.db.jpa.JPA.em(JPA.java:51)
at dao.AbstractDAO.<init>(AbstractDAO.java:28)
at dao.UserDAO.<init>(UserDAO.java:16)
at models.User.authenticate(User.java:141)
at controllers.Application.getLoggedOnUser(Application.java:45)
at auth.MyDeadBoltHandler$1.apply(MyDeadBoltHandler.java:36)
at auth.MyDeadBoltHandler$1.apply(MyDeadBoltHandler.java:33)
at play.core.j.FPromiseHelper$$anonfun$promise$2.apply(FPromiseHelper.scala:36)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
at play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:40)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)