java.net.SocketException

tip

It's possible you're trying to write to a connection that's already closed. Another cause for this is that you closed the socket with unread data in the socket receive buffer.


rafaelrafael
tip

This might be caused by unmatching versions of SSL. Java starts normally with SSLv2 and your server might not be able to negotiate. You have to force Java to use SSLv3. See this comment: https://goo.gl/hx0YB3


rafaelrafael

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

  • 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}
    via by Mark Thomas,
  • Connection reset
    via GitHub by skodape
    ,
    • java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:196) 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:121) at com.mirth.connect.connectors.tcp.TcpReceiver$TcpReader.call(TcpReceiver.java:554) at com.mirth.connect.connectors.tcp.TcpReceiver$TcpReader.call(TcpReceiver.java:458) 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)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Nikolay RybakNikolay Rybak
    1 times, last one,
    mauritiusmauritius
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    195 more bugmates