com.mongodb.MongoTimeoutException: Timeout waiting for a pooled item after 2000 MILLISECONDS

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Saurabh Sonawane, 1 year ago
Timeout waiting for a pooled item after 2000 MILLISECONDS
via Google Groups by Arun Ramaswamy, 1 year ago
Timeout waiting for a pooled item after 2000 MILLISECONDS
via Stack Overflow by Sam
, 1 year ago
Timed out after 10000 ms while waiting for a server that matches AnyServerSelector{}. Client view of cluster state is {type=Unknown, servers=[{address=104.196.32.97:27017, type=Unknown, state=Connecting}]
via Google Groups by Branky Shao, 1 year ago
Timed out while waiting for a server that matches AnyServerSelector{} after 10000 ms
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)
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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.