play.api.Application$$anon$1

Execution exception[[SQLException: Operation not allowed after ResultSet closed]]

Samebug tips1

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web498

  • via Google Groups by Andrea Raspitzu, 6 months ago
    Execution exception[[SQLException: Operation not allowed after ResultSet closed]]
  • Execution exception[[SQLException: Connection is closed!]]
  • Execution exception[[IOException: Pipe closed]]
  • Stack trace

    • play.api.Application$$anon$1: Execution exception[[SQLException: Operation not allowed after ResultSet closed]] at play.api.Application$class.handleError(Application.scala:293)[play_2.10.jar:2.2.2] at play.api.DefaultApplication.handleError(Application.scala:399)[play_2.10.jar:2.2.2] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:261)[play_2.10.jar:2.2.2] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:261)[play_2.10.jar:2.2.2] at scala.Option.map(Option.scala:145)[scala-library.jar:na] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2.applyOrElse(PlayDefaultUpstreamHandler.scala:261)[play_2.10.jar:2.2.2] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2.applyOrElse(PlayDefaultUpstreamHandler.scala:257)[play_2.10.jar:2.2.2] at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:344)[scala-library.jar:na] at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:343)[scala-library.jar:na] at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)[scala-library.jar:na] at play.api.libs.iteratee.Execution$$anon$1.execute(Execution.scala:43)[play-iteratees_2.10.jar:2.2.2] at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)[scala-library.jar:na] at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248)[scala-library.jar:na] at scala.concurrent.Promise$class.complete(Promise.scala:55)[scala-library.jar:na] at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153)[scala-library.jar:na] at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:23)[scala-library.jar:na] at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(ExecutionContextImpl.scala:107)[scala-library.jar:na] at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)[scala-library.jar:na] at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)[scala-library.jar:na] at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)[scala-library.jar:na] at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)[scala-library.jar:na] Caused by: java.sql.SQLException: Operation not allowed after ResultSet closed at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078)[mysql-connector-java-5.1.26.jar:na] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)[mysql-connector-java-5.1.26.jar:na] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)[mysql-connector-java-5.1.26.jar:na] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)[mysql-connector-java-5.1.26.jar:na] at com.mysql.jdbc.ResultSetImpl.checkClosed(ResultSetImpl.java:804)[mysql-connector-java-5.1.26.jar:na] at com.mysql.jdbc.ResultSetImpl.next(ResultSetImpl.java:6986)[mysql-connector-java-5.1.26.jar:na] at org.squeryl.dsl.AbstractQuery$$anon$1._next(AbstractQuery.scala:182)[squeryl_2.10-0.9.6-RC2.jar:0.9.6-RC2] at org.squeryl.dsl.AbstractQuery$$anon$1.hasNext(AbstractQuery.scala:199)[squeryl_2.10-0.9.6-RC2.jar:0.9.6-RC2] at org.squeryl.internals.IteratorConcatenation._hasNext(Utils.scala:120)[squeryl_2.10-0.9.6-RC2.jar:0.9.6-RC2] at org.squeryl.internals.IteratorConcatenation.hasNext(Utils.scala:123)[squeryl_2.10-0.9.6-RC2.jar:0.9.6-RC2] at scala.collection.Iterator$class.toStream(Iterator.scala:1143)[scala-library.jar:na] at org.squeryl.internals.IteratorConcatenation.toStream(Utils.scala:109)[squeryl_2.10-0.9.6-RC2.jar:0.9.6-RC2] at scala.collection.Iterator$$anonfun$toStream$1.apply(Iterator.scala:1143)[scala-library.jar:na] at scala.collection.Iterator$$anonfun$toStream$1.apply(Iterator.scala:1143)[scala-library.jar:na] at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1085)[scala-library.jar:na] at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1077)[scala-library.jar:na] at scala.collection.immutable.Stream$$anonfun$map$1.apply(Stream.scala:376)[scala-library.jar:na] at scala.collection.immutable.Stream$$anonfun$map$1.apply(Stream.scala:376)[scala-library.jar:na] at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1085)[scala-library.jar:na] at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1077)[scala-library.jar:na] at scala.collection.immutable.Stream$$anonfun$map$1.apply(Stream.scala:376)[scala-library.jar:na] at scala.collection.immutable.Stream$$anonfun$map$1.apply(Stream.scala:376)[scala-library.jar:na] at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1085)[scala-library.jar:na] at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1077)[scala-library.jar:na] at scala.collection.immutable.Stream.reduceLeft(Stream.scala:577)[scala-library.jar:na] at scala.collection.TraversableOnce$class.reduce(TraversableOnce.scala:195)[scala-library.jar:na] at scala.collection.AbstractTraversable.reduce(Traversable.scala:105)[scala-library.jar:na] at jobs.DeusPortfolioRecover$$anonfun$bulkRecover$1.apply(DeusPortfolioRecover.scala:43)[classes/:na] at jobs.DeusPortfolioRecover$$anonfun$bulkRecover$1.apply(DeusPortfolioRecover.scala:43)[classes/:na] at org.squeryl.AbstractSession$class.using(Session.scala:159)[squeryl_2.10-0.9.6-RC2.jar:0.9.6-RC2] at org.squeryl.Session.using(Session.scala:93)[squeryl_2.10-0.9.6-RC2.jar:0.9.6-RC2] at org.squeryl.Session.withinTransaction(Session.scala:110)[squeryl_2.10-0.9.6-RC2.jar:0.9.6-RC2] at org.squeryl.dsl.QueryDsl$class.inTransaction(QueryDsl.scala:126)[squeryl_2.10-0.9.6-RC2.jar:0.9.6-RC2] at models.support.TypeMode$.inTransaction(TypeMode.scala:8)[classes/:na] at jobs.DeusPortfolioRecover$.bulkRecover(DeusPortfolioRecover.scala:41)[classes/:na] at controllers.Job$$anonfun$portfoliosRecover$1$$anonfun$apply$23.apply(Job.scala:208)[classes/:na] at controllers.Job$$anonfun$portfoliosRecover$1$$anonfun$apply$23.apply(Job.scala:200)[classes/:na] at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)[scala-library.jar:na] at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)[scala-library.jar:na] ... 5 more

    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
    4 times, 2 hours ago
    3 times, 21 hours ago
    6 times, 2 days ago
    149 more bugmates