java.lang.IllegalStateException

Tried to remove the EntityManager, but none was set.]]


Solutions on the web21617

Solution icon of googlegroups
via Google Groups by Arash Daneshvar, 5 months ago
Tried to remove the EntityManager, but none was set.

Solution icon of stackoverflow
Tried to remove the EntityManager, but none was set.

Solution icon of github
Tried to remove the EntityManager, but none was set.

Solution icon of web
Tried to remove the EntityManager, but none was set.

Solution icon of googlegroups
via Google Groups by Luiz Ricardo Vicente Rita, 1 year ago
Tried to remove the EntityManager, but none was set.

Solution icon of stackoverflow
Tried to remove the EntityManager, but none was set.

Solution icon of github
via GitHub by arash01
, 3 months ago
Tried to remove the EntityManager, but none was set.

Solution icon of stackoverflow
Tried to remove the EntityManager, but none was set., took 0.091 sec

Solution icon of googlegroups
via Google Groups by Amigo, 10 months ago
Tried to remove the EntityManager, but none was set., took 0.091 sec

Solution icon of web
via nuix.com by Unknown author, 1 year ago
Tried to get 24 workers but none were available

Stack trace

  • java.lang.IllegalStateException: Tried to remove the EntityManager, but none was set.]] at play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:293) at play.api.http.DefaultHttpErrorHandler.onServerError(HttpErrorHandler.scala:220) at play.api.GlobalSettings$class.onError(GlobalSettings.scala:160) at play.api.DefaultGlobal$.onError(GlobalSettings.scala:188) at play.api.http.GlobalSettingsHttpErrorHandler.onServerError(HttpErrorHandler.scala:100) at play.core.server.netty.PlayRequestHandler$$anonfun$2$$anonfun$apply$1.applyOrElse(PlayRequestHandler.scala:100) at play.core.server.netty.PlayRequestHandler$$anonfun$2$$anonfun$apply$1.applyOrElse(PlayRequestHandler.scala:99) at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:346) at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:345) at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) Caused by: java.util.concurrent.CompletionException: java.lang.IllegalStateException: Tried to remove the EntityManager, but none was set. at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292) at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308) at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593) at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:21) at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:18) at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.processBatch$1(BatchingExecutor.scala:63) Caused by: java.lang.IllegalStateException: Tried to remove the EntityManager, but none was set. at play.db.jpa.JPAEntityManagerContext.pop(JPAEntityManagerContext.java:74) at play.db.jpa.DefaultJPAApi.withTransaction(DefaultJPAApi.java:155) at play.db.jpa.DefaultJPAApi.withTransaction(DefaultJPAApi.java:195) at play.db.jpa.TransactionalAction.call(TransactionalAction.java:25) at play.core.j.JavaAction$$anonfun$7.apply(JavaAction.scala:108) at play.core.j.JavaAction$$anonfun$7.apply(JavaAction.scala:108) 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:56) at play.api.libs.iteratee.Execution$trampoline$.execute(Execution.scala:70)

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

Samebug visitor profile picture
Unknown user
Once, 1 year ago