java.lang.NullPointerException

GitHub | tonovation | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    `activator testOnly` does not work as expected

    GitHub | 9 months ago | ShahBinoy
    java.lang.NullPointerException: null, took 2.999 sec [error] at controllers.auth.LoginController.authenticate(LoginController.java:51)

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at data.DefaultExchanger.importData()
    2. data
      DataService.importData
      1. data.DefaultExchanger.importData(DefaultExchanger.java:251)
      2. data.DataService.importData(DataService.java:196)
      2 frames
    3. controllers
      SiteApp.importData
      1. controllers.SiteApp.importData(SiteApp.java:314)
      1 frame
    4. Unknown
      Routes$$anonfun$routes$1$$anonfun$applyOrElse$54$$anonfun$apply$54.apply
      1. Routes$$anonfun$routes$1$$anonfun$applyOrElse$54$$anonfun$apply$54.apply(routes_routing.scala:2058)
      2. Routes$$anonfun$routes$1$$anonfun$applyOrElse$54$$anonfun$apply$54.apply(routes_routing.scala:2058)
      2 frames
    5. Play
      JavaAction$$anon$1.call
      1. play.core.Router$HandlerInvokerFactory$$anon$4.resultCall(Router.scala:264)
      2. play.core.Router$HandlerInvokerFactory$JavaActionInvokerFactory$$anon$15$$anon$1.invocation(Router.scala:255)
      3. play.core.j.JavaAction$$anon$1.call(JavaAction.scala:55)
      3 frames
    6. Unknown
      Global$1.call
      1. Global$1.call(Global.java:190)
      1 frame
    7. actions
      AnonymousCheckAction.call
      1. actions.AnonymousCheckAction.call(AnonymousCheckAction.java:57)
      1 frame
    8. utils
      SiteManagerAuthAction.call
      1. utils.SiteManagerAuthAction.call(SiteManagerAuthAction.java:39)
      1 frame
    9. Play
      JavaAction$$anonfun$11.apply
      1. play.core.j.JavaAction$$anonfun$11.apply(JavaAction.scala:82)
      2. play.core.j.JavaAction$$anonfun$11.apply(JavaAction.scala:82)
      2 frames
    10. Scala
      Future$PromiseCompletingRunnable.run
      1. scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
      2. scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
      2 frames
    11. Play
      HttpExecutionContext$$anon$2.run
      1. play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:40)
      1 frame
    12. Play Iteratees
      Execution$trampoline$.execute
      1. play.api.libs.iteratee.Execution$trampoline$.execute(Execution.scala:46)
      1 frame
    13. Play
      HttpExecutionContext.execute
      1. play.core.j.HttpExecutionContext.execute(HttpExecutionContext.scala:32)
      1 frame
    14. Scala
      Future$.apply
      1. scala.concurrent.impl.Future$.apply(Future.scala:31)
      2. scala.concurrent.Future$.apply(Future.scala:485)
      2 frames
    15. Play
      Action$$anonfun$apply$1$$anonfun$apply$4.apply
      1. play.core.j.JavaAction$class.apply(JavaAction.scala:82)
      2. play.core.Router$HandlerInvokerFactory$JavaActionInvokerFactory$$anon$15$$anon$1.apply(Router.scala:252)
      3. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:130)
      4. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:130)
      5. play.utils.Threads$.withContextClassLoader(Threads.scala:21)
      6. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:129)
      7. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:128)
      7 frames
    16. Scala
      Option.map
      1. scala.Option.map(Option.scala:145)
      1 frame
    17. Play
      Action$$anonfun$apply$1.apply
      1. play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:128)
      2. play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:121)
      2 frames
    18. Play Iteratees
      Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply
      1. play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:483)
      2. play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:483)
      3. play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:519)
      4. play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:519)
      5. play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply(Iteratee.scala:496)
      6. play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply(Iteratee.scala:496)
      6 frames
    19. Scala
      Future$PromiseCompletingRunnable.run
      1. scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
      2. scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
      2 frames
    20. Akka Actor
      ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec
      1. akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41)
      2. akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
      2 frames
    21. Scala
      ForkJoinWorkerThread.run
      1. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
      2. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
      3. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
      4. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
      4 frames