com.mongodb.MongoSocketOpenException: Exception opening socket

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

Samebug tips

,
Expert tip

Check for proxy misconfigurations and AWS issues.

Solutions on the web

via GitHub by schorke
, 1 year ago
Exception opening socket
via GitHub by ZNevzz
, 3 months ago
Exception opening socket
via JIRA by Junwei Zhuge, 1 year ago
Exception opening socket
com.mongodb.MongoSocketOpenException: Exception opening socket
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:50)
at com.mongodb.connection.SocketStream.open(SocketStream.java:58)
at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:114)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 13 hours ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
19 times, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 6 months ago

Write tip

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