com.mongodb.MongoException$Network: can't say something

JIRA | Ryan Nitz | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Should make a config option at the Collection level that doesn't throw an exception if any write fails. OLD------ ----- When the driver is interrupted during a server read/write (via a server shutdown), it throws a MongException. Some people may care about this but others do not (like me :-)). It creates a lot of noise in my log files. I can catch all the exceptions and look at the cause but that would result in a lot of ugly code. It would be handy if you could configure the Mongo object to not throw these. can't say something com.mongodb.MongoException$Network: can't say something at com.mongodb.DBTCP.say(DBTCP.java:133) at com.mongodb.DBMessageLayer.doUpdate(DBMessageLayer.java:42) at com.mongodb.DBApiLayer$MyCollection.update(DBApiLayer.java:461) at lindex.ds.PageDs.updateAttr(PageDs.java:147) at lindex.telemeter.PageBacklinkCountSensor.execute(PageBacklinkCountSensor.java:123) at oemware.core.MultiThread.run(MultiThread.java:164) at java.lang.Thread.run(Thread.java:637) Caused by: java.nio.channels.ClosedByInterruptException at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:184) at sun.nio.ch.SocketChannelImpl.write0(SocketChannelImpl.java:372) at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:388) at java.nio.channels.SocketChannel.write(SocketChannel.java:360) at com.mongodb.DBPort.go(DBPort.java:79) at com.mongodb.DBPort.say(DBPort.java:64) at com.mongodb.DBTCP.say(DBTCP.java:127) ... 6 more

    JIRA | 8 years ago | Ryan Nitz
    com.mongodb.MongoException$Network: can't say something
  2. 0

    RE: Looks like consumer fetchers get stopped we are not getting any data

    apache.org | 2 years ago
    java.nio.channels.ClosedByInterruptException

Root Cause Analysis

  1. java.nio.channels.ClosedByInterruptException

    No message provided

    at java.nio.channels.spi.AbstractInterruptibleChannel.end()
  2. Java RT
    SocketChannel.write
    1. java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:184)
    2. sun.nio.ch.SocketChannelImpl.write0(SocketChannelImpl.java:372)
    3. sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:388)
    4. java.nio.channels.SocketChannel.write(SocketChannel.java:360)
    4 frames
  3. MongoDB Java Driver
    DBApiLayer$MyCollection.update
    1. com.mongodb.DBPort.go(DBPort.java:79)
    2. com.mongodb.DBPort.say(DBPort.java:64)
    3. com.mongodb.DBTCP.say(DBTCP.java:127)
    4. com.mongodb.DBMessageLayer.doUpdate(DBMessageLayer.java:42)
    5. com.mongodb.DBApiLayer$MyCollection.update(DBApiLayer.java:461)
    5 frames
  4. lindex.ds
    PageDs.updateAttr
    1. lindex.ds.PageDs.updateAttr(PageDs.java:147)
    1 frame
  5. lindex.telemeter
    PageBacklinkCountSensor.execute
    1. lindex.telemeter.PageBacklinkCountSensor.execute(PageBacklinkCountSensor.java:123)
    1 frame
  6. oemware.core
    MultiThread.run
    1. oemware.core.MultiThread.run(MultiThread.java:164)
    1 frame
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:637)
    1 frame