com.mongodb.MongoException$Network

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • exception mongo driver
    via by nyc,
  • mongos's log: {noformat} 2015-04-07T19:20:42.844+0800 [conn1418] warning: Failed to connect to xxx.xxx.xxx.xxx:xxxx, reason: errno:106 Transport endpoint is already connected 2015-04-07T19:20:44.561+0800 [conn2562] warning: Failed to connect to xxx.xxx.xxx.xxx:xxxx, reason: errno:106 Transport endpoint is already connected 2015-04-07T19:20:44.563+0800 [conn2692] warning: Failed to connect to xxx.xxx.xxx.xxx:xxxx, reason: errno:106 Transport endpoint is already connected 2015-04-07T19:20:44.564+0800 [conn2971] warning: Failed to connect to xxx.xxx.xxx.xxx:xxxx, reason: errno:106 Transport endpoint is already connected 2015-04-07T19:20:44.569+0800 [conn2656] warning: Failed to connect to xxx.xxx.xxx.xxx:xxxx, reason: errno:106 Transport endpoint is already connected 2015-04-07T19:20:44.570+0800 [conn2376] warning: Failed to connect to xxx.xxx.xxx.xxx:xxxx, reason: errno:106 Transport endpoint is already connected 2015-04-07T19:20:44.574+0800 [conn2957] warning: Failed to connect to xxx.xxx.xxx.xxx:xxxx, reason: errno:106 Transport endpoint is already connected 2015-04-07T19:20:44.575+0800 [conn2860] warning: Primary for shard1/xxx.xxx.xxx.xxx:xxxx was down before, bypassing setShardVersio n. The local replica set view and targeting may be stale. 2015-04-07T19:20:44.578+0800 [conn347] warning: Failed to connect to xxx.xxx.xxx.xxx:xxxx, reason: errno:106 Transport endpoint is already connected 2015-04-07T19:20:44.579+0800 [conn1177] warning: Failed to connect to xxx.xxx.xxx.xxx:xxxx, reason: errno:106 Transport endpoint is already connected 2015-04-07T19:20:44.589+0800 [conn2669] warning: Primary for shard3/xxx.xxx.xxx.xxx:xxxx was down before, bypassing setShardVersio n. The local replica set view and targeting may be stale. 2015-04-07T19:20:44.591+0800 [conn82] warning: Primary for shard3/xxx.xxx.xxx.xxx:xxxx was down before, bypassing setShardVersion. The local replica set view and targeting may be stale. 2015-04-07T19:20:44.600+0800 [conn2860] warning: Primary for shard1/xxx.xxx.xxx.xxx:xxxx was down before, bypassing setShardVersio n. The local replica set view and targeting may be stale. {noformat} java's log: {noformat} 2015-04-07T19:20:36+08:00 xxxx xxxxx [ERROR] {c.a.d.r.filter.ExceptionFilter} - [DUBBO] Got unchecked and undeclared exception which called by xxx.xxx.xxx.xxx. service: , exception: org.springframework.dao.DataAccessResourceFailureException: Exception opening the socket; nested exception is com.mongodb.MongoException$Network: Exception opening the socket, dubbo version: 2.4.9_ZIBO_1.0.1, current host: xxx.xxx.xxx.xxx org.springframework.dao.DataAccessResourceFailureException: Exception opening the socket; nested exception is com.mongodb.MongoException$Network: Exception opening the socket at org.springframework.data.mongodb.core.MongoExceptionTranslator.translateExceptionIfPossible(MongoExceptionTranslator.java:56) at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConvertRuntimeException(MongoTemplate.java:1828) at org.springframework.data.mongodb.core.MongoTemplate.executeFindMultiInternal(MongoTemplate.java:1711) at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1522) at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1506) at org.springframework.data.mongodb.core.MongoTemplate.find(MongoTemplate.java:532) Caused by: com.mongodb.MongoException$Network: Exception opening the socket at com.mongodb.DBPort.<init>(DBPort.java:117) at com.mongodb.DBPort.<init>(DBPort.java:95) at com.mongodb.DBPortFactory.create(DBPortFactory.java:28) at com.mongodb.PooledConnectionProvider$ConnectionItemFactory.create(PooledConnectionProvider.java:186) at com.mongodb.PooledConnectionProvider$ConnectionItemFactory.create(PooledConnectionProvider.java:183) at com.mongodb.ConcurrentPool.createNewAndReleasePermitIfFailure(ConcurrentPool.java:150) at com.mongodb.ConcurrentPool.get(ConcurrentPool.java:118) at com.mongodb.PooledConnectionProvider.get(PooledConnectionProvider.java:75) at com.mongodb.DefaultServer.getConnection(DefaultServer.java:61) at com.mongodb.BaseCluster$WrappedServer.getConnection(BaseCluster.java:254) at com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:505) at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:448) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:284) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:269) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84) at com.mongodb.TickableDBCollectionImpl.find(TickableDBCollectionImpl.java:78) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66) at com.mongodb.DBCursor._check(DBCursor.java:498) at com.mongodb.DBCursor._hasNext(DBCursor.java:621) at com.mongodb.DBCursor.hasNext(DBCursor.java:657) at org.springframework.data.mongodb.core.MongoTemplate.executeFindMultiInternal(MongoTemplate.java:1697) at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1522) at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1506) at org.springframework.data.mongodb.core.MongoTemplate.find(MongoTemplate.java:532) at com.mongodb.DBPort.ensureOpen(DBPort.java:287) at com.mongodb.DBPort.<init>(DBPort.java:113) at com.mongodb.DBPort.<init>(DBPort.java:95) at com.mongodb.DBPortFactory.create(DBPortFactory.java:28) at com.mongodb.PooledConnectionProvider$ConnectionItemFactory.create(PooledConnectionProvider.java:186) at com.mongodb.PooledConnectionProvider$ConnectionItemFactory.create(PooledConnectionProvider.java:183) at com.mongodb.ConcurrentPool.createNewAndReleasePermitIfFailure(ConcurrentPool.java:150) at com.mongodb.ConcurrentPool.get(ConcurrentPool.java:118) at com.mongodb.PooledConnectionProvider.get(PooledConnectionProvider.java:75) at com.mongodb.DefaultServer.getConnection(DefaultServer.java:61) at com.mongodb.BaseCluster$WrappedServer.getConnection(BaseCluster.java:254) at com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:505) at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:448) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:284) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:269) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84) at com.mongodb.TickableDBCollectionImpl.find(TickableDBCollectionImpl.java:78) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66) at com.mongodb.DBCursor._check(DBCursor.java:498) at com.mongodb.DBCursor._hasNext(DBCursor.java:621) at com.mongodb.DBCursor.hasNext(DBCursor.java:657) at org.springframework.data.mongodb.core.MongoTemplate.executeFindMultiInternal(MongoTemplate.java:1697) at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1522) at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1506) at org.springframework.data.mongodb.core.MongoTemplate.find(MongoTemplate.java:532) java.lang.RuntimeException: org.springframework.dao.DataAccessResourceFailureException: Exception opening the socket; nested exception is com.mongodb.MongoException$Network: Exception opening the socket org.springframework.dao.DataAccessResourceFailureException: Exception opening the socket; nested exception is com.mongodb.MongoException$Network: Exception opening the socket at org.springframework.data.mongodb.core.MongoExceptionTranslator.translateExceptionIfPossible(MongoExceptionTranslator.java:56) at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConvertRuntimeException(MongoTemplate.java:1828) at org.springframework.data.mongodb.core.MongoTemplate.executeFindMultiInternal(MongoTemplate.java:1711) at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1522) at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1506) at org.springframework.data.mongodb.core.MongoTemplate.find(MongoTemplate.java:532) Caused by: com.mongodb.MongoException$Network: Exception opening the socket at com.mongodb.DBPort.<init>(DBPort.java:117) at com.mongodb.DBPort.<init>(DBPort.java:95) at com.mongodb.DBPortFactory.create(DBPortFactory.java:28) at com.mongodb.PooledConnectionProvider$ConnectionItemFactory.create(PooledConnectionProvider.java:186) at com.mongodb.PooledConnectionProvider$ConnectionItemFactory.create(PooledConnectionProvider.java:183) at com.mongodb.ConcurrentPool.createNewAndReleasePermitIfFailure(ConcurrentPool.java:150) at com.mongodb.ConcurrentPool.get(ConcurrentPool.java:118) at com.mongodb.PooledConnectionProvider.get(PooledConnectionProvider.java:75) at com.mongodb.DefaultServer.getConnection(DefaultServer.java:61) at com.mongodb.BaseCluster$WrappedServer.getConnection(BaseCluster.java:254) at com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:505) at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:448) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:284) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:269) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84) at com.mongodb.TickableDBCollectionImpl.find(TickableDBCollectionImpl.java:78) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66) at com.mongodb.DBCursor._check(DBCursor.java:498) at com.mongodb.DBCursor._hasNext(DBCursor.java:621) at com.mongodb.DBCursor.hasNext(DBCursor.java:657) at org.springframework.data.mongodb.core.MongoTemplate.executeFindMultiInternal(MongoTemplate.java:1697) at com.mongodb.DBPort.ensureOpen(DBPort.java:287) at com.mongodb.DBPort.<init>(DBPort.java:113) java.lang.RuntimeException: org.springframework.dao.DataAccessResourceFailureException: Exception opening the socket; nested exception is com. mongodb.MongoException$Network: Exception opening the socket org.springframework.dao.DataAccessResourceFailureException: Exception opening the socket; nested exception is com.mongodb.MongoException$Network: Exception opening the socket at org.springframework.data.mongodb.core.MongoExceptionTranslator.translateExceptionIfPossible(MongoExceptionTranslator.java:56) at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConvertRuntimeException(MongoTemplate.java:1828) at org.springframework.data.mongodb.core.MongoTemplate.executeFindOneInternal(MongoTemplate.java:1658) at org.springframework.data.mongodb.core.MongoTemplate.doFindAndModify(MongoTemplate.java:1586) at org.springframework.data.mongodb.core.MongoTemplate.findAndModify(MongoTemplate.java:615) at org.springframework.data.mongodb.core.MongoTemplate.findAndModify(MongoTemplate.java:610) at com.voxlearning.utopia.dao.mongo.support.AbstractMongoDao.updateById(AbstractMongoDao.java:272) at com.voxlearning.utopia.dao.mongo.support.AbstractMongoDao.updateById(AbstractMongoDao.java:246) Caused by: com.mongodb.MongoException$Network: Exception opening the socket at com.mongodb.DBPort.<init>(DBPort.java:117) at com.mongodb.DBPort.<init>(DBPort.java:95) at com.mongodb.DBPortFactory.create(DBPortFactory.java:28) at com.mongodb.PooledConnectionProvider$ConnectionItemFactory.create(PooledConnectionProvider.java:186) at com.mongodb.PooledConnectionProvider$ConnectionItemFactory.create(PooledConnectionProvider.java:183) at com.mongodb.ConcurrentPool.createNewAndReleasePermitIfFailure(ConcurrentPool.java:150) at com.mongodb.ConcurrentPool.get(ConcurrentPool.java:118) at com.mongodb.PooledConnectionProvider.get(PooledConnectionProvider.java:75) at com.mongodb.DefaultServer.getConnection(DefaultServer.java:61) at com.mongodb.BaseCluster$WrappedServer.getConnection(BaseCluster.java:254) at com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:505) at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:448) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:284) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:269) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84) at com.mongodb.TickableDBCollectionImpl.find(TickableDBCollectionImpl.java:78) at com.mongodb.DB.command(DB.java:320) at com.mongodb.TickableDBApiLayer.command(TickableDBApiLayer.java:56) at com.mongodb.DB.command(DB.java:299) at com.mongodb.DB.command(DB.java:374) at com.mongodb.DB.command(DB.java:246) at com.mongodb.DBCollection.findAndModify(DBCollection.java:480) at com.mongodb.DBCollection.findAndModify(DBCollection.java:424) at org.springframework.data.mongodb.core.MongoTemplate$FindAndModifyCallback.doInCollection(MongoTemplate.java:1967) at org.springframework.data.mongodb.core.MongoTemplate$FindAndModifyCallback.doInCollection(MongoTemplate.java:1949) at org.springframework.data.mongodb.core.MongoTemplate.executeFindOneInternal(MongoTemplate.java:1654) at com.mongodb.DBPort.ensureOpen(DBPort.java:287) at com.mongodb.DBPort.<init>(DBPort.java:113) {noformat}
    via by liangzhang,
    • com.mongodb.MongoException$Network: Read operation to server "ip:port" failed on database cloud_1 at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:302) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:273) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66) at com.mongodb.DBCursor._check(DBCursor.java:498) at com.mongodb.DBCursor._hasNext(DBCursor.java:621) at com.mongodb.DBCursor.hasNext(DBCursor.java:657) at org.mongodb.morphia.query.MorphiaIterator.hasNext(MorphiaIterator.java:57) at org.mongodb.morphia.query.QueryImpl.asList(QueryImpl.java:323) at oa.repository.SaleTransactionRepository.getListSaleTransactionByIdsAndEntityIds(SaleTransactionRepository.java:76) at oa.service.impl.LiveCampaignServiceImpl.detailChartPromoteYourProduct(LiveCampaignServiceImpl.java:161) at oa.service.impl.LiveCampaignServiceImpl.getCampaignDetailChart(LiveCampaignServiceImpl.java:124) at oa.controller.campaign.LiveCampaignController.getCampaignDetailChart(LiveCampaignController.java:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    nasimknasimk
    1 times, last one,