Created
June 30, 2017 20:36
-
-
Save jducoeur/60a685c9331bb5b3429e44974e98dd4a to your computer and use it in GitHub Desktop.
An error I am getting when trying to do db.run()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm getting the following error when trying to do db.run() on a `+=` insert in Slick. | |
This is happening under play-slick. | |
It is the first database action, so something could be wrong with the connection, *but* play-slick-evolutions is working just fine. So I have reason to believe the credentials are right. | |
``` | |
----> About to do Vector(insert into "email" ("logtime","reqtype","successful","dtlenderid","dtdealerid","dtappid","lenderdealerid","request","transrequest","response","transresponse","errors") values (?,?,?,?,?,?,?,?,?,?,?,?)) | |
----> db.run got error java.lang.IllegalStateException: Cannot initialize ExecutionContext; AsyncExecutor already shut down | |
play.api.libs.Files$DefaultTemporaryFileCreator - deletePath: deleting = /tmp/playtemp8413301446117630367 | |
play.api.libs.concurrent.ActorSystemProvider - Shutdown application default Akka system: application | |
play.shaded.ahc.io.netty.handler.logging.LoggingHandler - [id: 0xccb8c033, L:/127.0.0.1:48481 - R:localhost/127.0.0.1:33222] READ COMPLETE | |
play.shaded.ahc.io.netty.handler.logging.LoggingHandler - [id: 0xccb8c033, L:/127.0.0.1:48481 - R:localhost/127.0.0.1:33222] EXCEPTION: java.io.IOException: Connection reset by peer | |
java.io.IOException: Connection reset by peer | |
at sun.nio.ch.FileDispatcherImpl.read0(Native Method) | |
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) | |
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) | |
at sun.nio.ch.IOUtil.read(IOUtil.java:192) | |
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) | |
at play.shaded.ahc.io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:368) | |
at play.shaded.ahc.io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:899) | |
at play.shaded.ahc.io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:276) | |
at play.shaded.ahc.io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119) | |
at play.shaded.ahc.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) | |
at play.shaded.ahc.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) | |
at play.shaded.ahc.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) | |
at play.shaded.ahc.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) | |
at play.shaded.ahc.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131) | |
at play.shaded.ahc.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) | |
at java.lang.Thread.run(Thread.java:745) | |
play.shaded.ahc.org.asynchttpclient.netty.handler.HttpHandler - Unexpected I/O exception on channel [id: 0xccb8c033, L:/127.0.0.1:48481 - R:localhost/127.0.0.1:33222] | |
java.io.IOException: Connection reset by peer | |
at sun.nio.ch.FileDispatcherImpl.read0(Native Method) | |
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) | |
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) | |
at sun.nio.ch.IOUtil.read(IOUtil.java:192) | |
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) | |
at play.shaded.ahc.io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:368) | |
at play.shaded.ahc.io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:899) | |
at play.shaded.ahc.io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:276) | |
at play.shaded.ahc.io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119) | |
at play.shaded.ahc.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) | |
at play.shaded.ahc.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) | |
at play.shaded.ahc.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) | |
at play.shaded.ahc.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) | |
at play.shaded.ahc.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131) | |
at play.shaded.ahc.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) | |
at java.lang.Thread.run(Thread.java:745) | |
play.shaded.ahc.org.asynchttpclient.netty.channel.ChannelManager - Closing Channel [id: 0xccb8c033, L:/127.0.0.1:48481 - R:localhost/127.0.0.1:33222] | |
play.shaded.ahc.io.netty.handler.logging.LoggingHandler - [id: 0xccb8c033, L:/127.0.0.1:48481 - R:localhost/127.0.0.1:33222] CLOSE() | |
play.shaded.ahc.io.netty.handler.logging.LoggingHandler - [id: 0xccb8c033, L:/127.0.0.1:48481 ! R:localhost/127.0.0.1:33222] INACTIVE | |
play.shaded.ahc.org.asynchttpclient.netty.handler.HttpHandler - Channel Closed: [id: 0xccb8c033, L:/127.0.0.1:48481 ! R:localhost/127.0.0.1:33222] with attribute INSTANCE | |
play.shaded.ahc.io.netty.handler.logging.LoggingHandler - [id: 0xccb8c033, L:/127.0.0.1:48481 ! R:localhost/127.0.0.1:33222] UNREGISTERED | |
[info] - should produce a valid response for Dealertrack when the incoming Dealertrack POST is valid *** FAILED *** | |
[info] java.lang.IllegalStateException: Cannot initialize ExecutionContext; AsyncExecutor already shut down | |
[info] at slick.util.AsyncExecutor$$anon$2.executionContext$lzycompute(AsyncExecutor.scala:61) | |
[info] at slick.util.AsyncExecutor$$anon$2.executionContext(AsyncExecutor.scala:59) | |
[info] at slick.util.AsyncExecutor$$anon$2.executionContext(AsyncExecutor.scala:51) | |
[info] at slick.jdbc.JdbcBackend$DatabaseDef.synchronousExecutionContext(JdbcBackend.scala:63) | |
[info] at slick.basic.BasicBackend$DatabaseDef.runSynchronousDatabaseAction(BasicBackend.scala:233) | |
[info] at slick.basic.BasicBackend$DatabaseDef.runSynchronousDatabaseAction$(BasicBackend.scala:231) | |
[info] at slick.jdbc.JdbcBackend$DatabaseDef.runSynchronousDatabaseAction(JdbcBackend.scala:38) | |
[info] at slick.basic.BasicBackend$DatabaseDef.runInContext(BasicBackend.scala:210) | |
[info] at slick.basic.BasicBackend$DatabaseDef.runInContext$(BasicBackend.scala:142) | |
[info] at slick.jdbc.JdbcBackend$DatabaseDef.runInContext(JdbcBackend.scala:38) | |
[info] ... | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment