play.api.http.HttpErrorHandlerExceptions$$anon$1

Execution exception[[CompletionException: java.lang.RuntimeException: There is no HTTP Context available from here.]]

Solutions on the web169

  • via Google Groups by Steve Chaloner, 1 year ago
    Execution exception[[CompletionException: java.lang.RuntimeException: There is no HTTP Context available from here.]]
  • Execution exception[[CompletionException: java.lang.RuntimeException: There is no HTTP Context available from here.]]
  • Execution exception[[CompletionException: java.lang.RuntimeException: There is no HTTP Context available from here.]]
  • Stack trace

    • play.api.http.HttpErrorHandlerExceptions$$anon$1: Execution exception[[CompletionException: java.lang.RuntimeException: There is no HTTP Context available from here.]] at play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:268)[play_2.11-2.5.0-M1.jar:2.5.0-M1] at play.api.http.DefaultHttpErrorHandler.onServerError(HttpErrorHandler.scala:194)[play_2.11-2.5.0-M1.jar:2.5.0-M1] at play.api.GlobalSettings$class.onError(GlobalSettings.scala:179)[play_2.11-2.5.0-M1.jar:2.5.0-M1] at play.api.DefaultGlobal$.onError(GlobalSettings.scala:212)[play_2.11-2.5.0-M1.jar:2.5.0-M1] at play.api.http.GlobalSettingsHttpErrorHandler.onServerError(HttpErrorHandler.scala:97)[play_2.11-2.5.0-M1.jar:2.5.0-M1] at play.core.server.netty.NettyServerFlow$$anonfun$2$$anonfun$apply$1.applyOrElse(NettyServerFlow.scala:90)[play-netty-server_2.11-2.5.0-M1.jar:2.5.0-M1] at play.core.server.netty.NettyServerFlow$$anonfun$2$$anonfun$apply$1.applyOrElse(NettyServerFlow.scala:89)[play-netty-server_2.11-2.5.0-M1.jar:2.5.0-M1] at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:344)[scala-library-2.11.7.jar:na] at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:343)[scala-library-2.11.7.jar:na] at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)[scala-library-2.11.7.jar:na] at play.api.libs.iteratee.Execution$trampoline$.executeScheduled(Execution.scala:109)[play-iteratees_2.11-2.5.0-M1.jar:2.5.0-M1] at play.api.libs.iteratee.Execution$trampoline$.execute(Execution.scala:71)[play-iteratees_2.11-2.5.0-M1.jar:2.5.0-M1] at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)[scala-library-2.11.7.jar:na] at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248)[scala-library-2.11.7.jar:na] at scala.concurrent.Promise$class.complete(Promise.scala:55)[scala-library-2.11.7.jar:na] at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153)[scala-library-2.11.7.jar:na] at scala.concurrent.java8.FuturesConvertersImpl$P.accept(FutureConvertersImpl.scala:94)[scala-java8-compat_2.11-0.7.0.jar:na] at scala.concurrent.java8.FuturesConvertersImpl$P.accept(FutureConvertersImpl.scala:89)[scala-java8-compat_2.11-0.7.0.jar:na] at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)[na:1.8.0_45] at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736)[na:1.8.0_45] at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)[na:1.8.0_45] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1587)[na:1.8.0_45] at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1574)[na:1.8.0_45] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)[na:1.8.0_45] at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)[na:1.8.0_45] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689)[na:1.8.0_45] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)[na:1.8.0_45] Caused by: java.util.concurrent.CompletionException: java.lang.RuntimeException: There is no HTTP Context available from here. at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)[na:1.8.0_45] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)[na:1.8.0_45] at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)[na:1.8.0_45] at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)[na:1.8.0_45] ... 7 more Caused by: java.lang.RuntimeException: There is no HTTP Context available from here. at play.mvc.Http$Context.current(Http.java:68)[play_2.11-2.5.0-M1.jar:2.5.0-M1] at play.mvc.Http$Context$Implicit.flash(Http.java:291)[play_2.11-2.5.0-M1.jar:2.5.0-M1] at be.objectify.whale.views.html.main_Scope0$main_Scope1$main.apply(main.template.scala:139)[na:na] at be.objectify.whale.views.html.dashboard_Scope0$dashboard_Scope1$dashboard.apply(dashboard.template.scala:37)[na:na] at be.objectify.whale.views.html.dashboard_Scope0$dashboard_Scope1$dashboard.render(dashboard.template.scala:377)[na:na] at be.objectify.whale.views.html.dashboard.render(dashboard.template.scala)[na:na] at be.objectify.whale.controllers.Application.lambda$null$1(Application.java:27)[na:na]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Once, 2 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    2 more bugmates