java.net.SocketException: socket closed

Mirth Project | Isidore Leclerc | 3 years ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0
  3. 0

    Periodically, the Database Writer will get stuck in the 'Reading' state. When this happens all new messages are queued indefinitely. The only way to start processing again is to pause/start the channel or re-deploy the channel. When this happens the database is alive and well but Mirth gets stuck. Here is the relevant stack trace(s) from the mirth log: {noformat} ERROR 2014-09-16 12:11:28,372 [pool-6-thread-1] com.mirth.connect.connectors.tcp.TcpReceiver: Error receiving message (TCP Listener "Source" on channel 6641f092-f6aa-40bd-87dd-9bf8ff9f0493). java.net.SocketException: Socket closed >---at java.net.SocketInputStream.socketRead0(Native Method) >---at java.net.SocketInputStream.read(SocketInputStream.java:152) >---at java.net.SocketInputStream.read(SocketInputStream.java:122) >---at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) >---at java.io.BufferedInputStream.read(BufferedInputStream.java:254) >---at com.mirth.connect.model.transmission.framemode.FrameStreamHandler.read(FrameStreamHandler.java:120) >---at com.mirth.connect.connectors.tcp.TcpReceiver$TcpReader.call(TcpReceiver.java:560) >---at com.mirth.connect.connectors.tcp.TcpReceiver$TcpReader.call(TcpReceiver.java:462) >---at java.util.concurrent.FutureTask.run(FutureTask.java:262) >---at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >---at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >---at java.lang.Thread.run(Thread.java:744) ERROR 2014-09-16 12:11:28,949 [Thread-37] com.mirth.connect.donkey.server.channel.DestinationChain: Error processing destination BoxView Database Cluster. java.lang.IllegalStateException: Pool closed >---at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1135) >---at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106) >---at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) >---at com.mirth.connect.connectors.jdbc.DatabaseDispatcherQuery.getConnection(DatabaseDispatcherQuery.java:156) >---at com.mirth.connect.connectors.jdbc.DatabaseDispatcherQuery.send(DatabaseDispatcherQuery.java:89) >---at com.mirth.connect.connectors.jdbc.DatabaseDispatcherQuery.send(DatabaseDispatcherQuery.java:127) >---at com.mirth.connect.connectors.jdbc.DatabaseDispatcherQuery.send(DatabaseDispatcherQuery.java:81) >---at com.mirth.connect.connectors.jdbc.DatabaseDispatcher.send(DatabaseDispatcher.java:107) >---at com.mirth.connect.donkey.server.channel.DestinationConnector.handleSend(DestinationConnector.java:599) >---at com.mirth.connect.donkey.server.channel.DestinationConnector.process(DestinationConnector.java:336) >---at com.mirth.connect.donkey.server.channel.DestinationChain.call(DestinationChain.java:224) >---at com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1428) >---at com.mirth.connect.donkey.server.channel.Channel.processSourceQueue(Channel.java:1530) >---at com.mirth.connect.donkey.server.channel.Channel.run(Channel.java:1517) >---at java.lang.Thread.run(Thread.java:744) {noformat}

    Mirth Project | 2 years ago | Mark Thomas
    java.net.SocketException: Socket closed

  1. Andreas Häber 4 times, last 2 months ago
  2. sriharshakiran 1 times, last 7 months ago
14 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketException

    socket closed

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    BufferedInputStream.read
    1. java.net.SocketInputStream.socketRead0(Native Method)
    2. java.net.SocketInputStream.read(Unknown Source)
    3. java.net.SocketInputStream.read(Unknown Source)
    4. java.io.BufferedInputStream.fill(Unknown Source)
    5. java.io.BufferedInputStream.read(Unknown Source)
    5 frames
  3. com.mirth.connect
    TcpReceiver$TcpReader.call
    1. com.mirth.connect.model.transmission.framemode.FrameStreamHandler.read(FrameStreamHandler.java:120)
    2. com.mirth.connect.connectors.tcp.TcpReceiver$TcpReader.call(TcpReceiver.java:560)
    3. com.mirth.connect.connectors.tcp.TcpReceiver$TcpReader.call(TcpReceiver.java:462)
    3 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    4. java.lang.Thread.run(Unknown Source)
    4 frames