java.lang.NullPointerException: null

GitHub | michaeloa | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    `activator testOnly` does not work as expected

    GitHub | 8 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

      null

      at play.modules.swagger.ApiListingCache$$anonfun$listing$1.apply()
    2. play.modules.swagger
      ApiListingCache$$anonfun$listing$1.apply
      1. play.modules.swagger.ApiListingCache$$anonfun$listing$1.apply(ApiListingCache.scala:15)[io.swagger.swagger-play2_2.11-1.5.2.jar:1.5.2]
      2. play.modules.swagger.ApiListingCache$$anonfun$listing$1.apply(ApiListingCache.scala:11)[io.swagger.swagger-play2_2.11-1.5.2.jar:1.5.2]
      2 frames
    3. Scala
      Option.orElse
      1. scala.Option.orElse(Option.scala:289)[org.scala-lang.scala-library-2.11.8.jar:na]
      1 frame
    4. play.modules.swagger
      ApiListingCache$.listing
      1. play.modules.swagger.ApiListingCache$.listing(ApiListingCache.scala:11)[io.swagger.swagger-play2_2.11-1.5.2.jar:1.5.2]
      1 frame
    5. controllers
      ApiHelpController$$anonfun$getResources$1.apply
      1. controllers.SwaggerBaseApiController.getResourceListing(ApiHelpController.scala:128)[io.swagger.swagger-play2_2.11-1.5.2.jar:2.4.8]
      2. controllers.ApiHelpController$$anonfun$getResources$1.apply(ApiHelpController.scala:74)[io.swagger.swagger-play2_2.11-1.5.2.jar:2.4.8]
      3. controllers.ApiHelpController$$anonfun$getResources$1.apply(ApiHelpController.scala:71)[io.swagger.swagger-play2_2.11-1.5.2.jar:2.4.8]
      3 frames
    6. Play
      Action$$anonfun$apply$1$$anonfun$apply$4.apply
      1. play.api.mvc.ActionBuilder$$anonfun$apply$16.apply(Action.scala:408)[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
      2. play.api.mvc.ActionBuilder$$anonfun$apply$16.apply(Action.scala:407)[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
      3. play.api.mvc.Action$.invokeBlock(Action.scala:533)[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
      4. play.api.mvc.Action$.invokeBlock(Action.scala:530)[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
      5. play.api.mvc.ActionBuilder$$anon$1.apply(Action.scala:493)[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
      6. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:105)[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
      7. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:105)[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
      8. play.utils.Threads$.withContextClassLoader(Threads.scala:21)[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
      9. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:104)[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
      10. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:103)[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
      10 frames
    7. Scala
      Option.map
      1. scala.Option.map(Option.scala:146)[org.scala-lang.scala-library-2.11.8.jar:na]
      1 frame
    8. Play
      Action$$anonfun$apply$1.apply
      1. play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:103)[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
      2. play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:96)[com.typesafe.play.play_2.11-2.4.8.jar:2.4.8]
      2 frames
    9. Play Iteratees
      DoneIteratee$$anonfun$mapM$2.apply
      1. play.api.libs.iteratee.DoneIteratee$$anonfun$mapM$2.apply(Iteratee.scala:741)[com.typesafe.play.play-iteratees_2.11-2.4.8.jar:2.4.8]
      2. play.api.libs.iteratee.DoneIteratee$$anonfun$mapM$2.apply(Iteratee.scala:741)[com.typesafe.play.play-iteratees_2.11-2.4.8.jar:2.4.8]
      2 frames
    10. Scala
      Future$PromiseCompletingRunnable.run
      1. scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)[org.scala-lang.scala-library-2.11.8.jar:na]
      2. scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)[org.scala-lang.scala-library-2.11.8.jar:na]
      2 frames
    11. Akka Actor
      ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec
      1. akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)[com.typesafe.akka.akka-actor_2.11-2.3.13.jar:na]
      2. akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)[com.typesafe.akka.akka-actor_2.11-2.3.13.jar:na]
      2 frames
    12. Scala
      ForkJoinWorkerThread.run
      1. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)[org.scala-lang.scala-library-2.11.8.jar:na]
      2. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)[org.scala-lang.scala-library-2.11.8.jar:na]
      3. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)[org.scala-lang.scala-library-2.11.8.jar:na]
      4. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)[org.scala-lang.scala-library-2.11.8.jar:na]
      4 frames