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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web209

  • via JIRA by liangzhang, 1 year ago
    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
  • via JIRA by liangzhang, 1 year ago
    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
  • Exception opening the socket; nested exception is com.mongodb.MongoException$Network: Exception opening the socket
  • Stack trace

    • 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) ... 3 more

    Write tip

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

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago