com.mongodb.MongoTimeoutException

Timeout waiting for a pooled item after 2000 MILLISECONDS

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 web110

  • via Google Groups by Arun Ramaswamy, 11 months ago
    Timeout waiting for a pooled item after 2000 MILLISECONDS
  • Timeout waiting for a pooled item after 2000 MILLISECONDS
  • via Google Groups by Saurabh Sonawane, 1 year ago
    Timeout waiting for a pooled item after 2000 MILLISECONDS
  • Stack trace

    • com.mongodb.MongoTimeoutException: Timeout waiting for a pooled item after 2000 MILLISECONDS at org.springframework.data.mongodb.core.MongoExceptionTranslator.translateExceptionIfPossible(MongoExceptionTranslator.java:71) at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConvertRuntimeException(MongoTemplate.java:1918) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:412) at org.springframework.data.mongodb.core.MongoTemplate.insertDBObject(MongoTemplate.java:895) at org.springframework.data.mongodb.core.MongoTemplate.doInsert(MongoTemplate.java:717) at org.springframework.data.mongodb.core.MongoTemplate.insert(MongoTemplate.java:672) at org.springframework.data.mongodb.core.MongoTemplate.insert(MongoTemplate.java:663) Caused by: com.mongodb.MongoTimeoutException: Timeout waiting for a pooled item after 2000 MILLISECONDS at com.mongodb.ConcurrentPool.get(ConcurrentPool.java:113) at com.mongodb.PooledConnectionProvider.get(PooledConnectionProvider.java:75) at com.mongodb.DefaultServer.getConnection(DefaultServer.java:60) at com.mongodb.BaseCluster$WrappedServer.getConnection(BaseCluster.java:216) at com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:503) at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:451) at com.mongodb.DBTCPConnector.getPrimaryPort(DBTCPConnector.java:409) at com.mongodb.DBCollectionImpl.insert(DBCollectionImpl.java:182) at com.mongodb.DBCollectionImpl.insert(DBCollectionImpl.java:165) at com.mongodb.DBCollection.insert(DBCollection.java:93) at com.mongodb.DBCollection.insert(DBCollection.java:78) at com.mongodb.DBCollection.insert(DBCollection.java:120) at org.springframework.data.mongodb.core.MongoTemplate$8.doInCollection(MongoTemplate.java:900) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:410) ... 7 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

    Once, 4 months ago
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    2 more bugmates