org.springframework.data.mongodb.UncategorizedMongoDbException: Exception opening socket; nested exception is com.mongodb.MongoSocketOpenException: Exception opening socket

Stack Overflow | user1221612 | 6 months 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

    mongodb java client disconnect in threading environment

    Stack Overflow | 6 months ago | user1221612
    org.springframework.data.mongodb.UncategorizedMongoDbException: Exception opening socket; nested exception is com.mongodb.MongoSocketOpenException: Exception opening socket
  2. 0

    GitHub comment 20#188187186

    GitHub | 1 year ago | ringtail
    com.github.kostyasha.yad.docker_java.javax.ws.rs.ProcessingException: com.github.kostyasha.yad.docker_java.org.apache.http.conn.ConnectTimeoutException: Connect to master1.cs-cn-hangzhou.aliyun.com:14805 [master1.cs-cn-hangzhou.aliyun.com/120.55.248.185] failed: connect timed out
  3. 0

    GitHub comment 52#191503462

    GitHub | 12 months ago | ashdsouza
    java.io.IOException: Connect to 54.86.251.172:13000 [/54.86.251.172] failed: connect timed out: http://www.google.com/
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 435#192330204

    GitHub | 12 months ago | Mwea
    java.lang.IllegalStateException: Failed to execute CommandLineRunner
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketTimeoutException

    connect timed out

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:589)
    6 frames
  3. MongoDB Java Driver
    DBCollection.save
    1. com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:50)
    2. com.mongodb.connection.SocketStream.open(SocketStream.java:58)
    3. com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:114)
    4. com.mongodb.connection.UsageTrackingInternalConnection.open(UsageTrackingInternalConnection.java:46)
    5. com.mongodb.connection.DefaultConnectionPool$PooledConnection.open(DefaultConnectionPool.java:362)
    6. com.mongodb.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:93)
    7. com.mongodb.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:80)
    8. com.mongodb.connection.DefaultServer.getConnection(DefaultServer.java:69)
    9. com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.getConnection(ClusterBinding.java:86)
    10. com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:184)
    11. com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:177)
    12. com.mongodb.operation.BaseWriteOperation.execute(BaseWriteOperation.java:106)
    13. com.mongodb.operation.BaseWriteOperation.execute(BaseWriteOperation.java:58)
    14. com.mongodb.Mongo.execute(Mongo.java:747)
    15. com.mongodb.Mongo$2.execute(Mongo.java:730)
    16. com.mongodb.DBCollection.executeWriteOperation(DBCollection.java:327)
    17. com.mongodb.DBCollection.insert(DBCollection.java:323)
    18. com.mongodb.DBCollection.insert(DBCollection.java:314)
    19. com.mongodb.DBCollection.insert(DBCollection.java:284)
    20. com.mongodb.DBCollection.insert(DBCollection.java:250)
    21. com.mongodb.DBCollection.insert(DBCollection.java:172)
    22. com.mongodb.DBCollection.save(DBCollection.java:392)
    23. com.mongodb.DBCollection.save(DBCollection.java:367)
    23 frames
  4. Spring Data MongoDB - Core
    MongoTemplate.save
    1. org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:1039)
    2. org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:461)
    3. org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(MongoTemplate.java:1034)
    4. org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:974)
    5. org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:920)
    5 frames
  5. com.appseleon.platform
    SendSMSAsyncTask$$FastClassBySpringCGLIB$$a955f5fa.invoke
    1. com.appseleon.platform.data.repository.AbstractMongoRepository.saveWithoutIndexing(AbstractMongoRepository.java:164)
    2. com.appseleon.platform.corpsms.SendSMSAsyncTask.sendMsgAsyncTask(SendSMSAsyncTask.java:55)
    3. com.appseleon.platform.corpsms.SendSMSAsyncTask$$FastClassBySpringCGLIB$$a955f5fa.invoke(<generated>)
    3 frames
  6. Spring Core
    MethodProxy.invoke
    1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
    1 frame
  7. Spring AOP
    AsyncExecutionInterceptor$1.call
    1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
    3. org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:115)
    3 frames
  8. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames