com.mongodb.MongoSocketOpenException: Exception opening socket

GitHub | jkaa | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0
    samebug tip
    Check if your MongoDB is available.
  2. 0

    GitHub comment 290#247034213

    GitHub | 7 months ago | jkaa
    com.mongodb.MongoSocketOpenException: Exception opening socket
  3. 0

    GitHub comment 2#267483735

    GitHub | 4 months ago | hidetarou2013
    com.mongodb.MongoSocketOpenException: Exception opening socket
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to connect to MongoDB on EC2 using Java driver

    Stack Overflow | 2 years ago | 32cupo
    com.mongodb.MongoSocketOpenException: Exception opening socket

  1. Dunmer 6 times, last 4 days ago
  2. johnxfly 5 times, last 1 month ago
  3. andyglick 3 times, last 2 months ago
  4. rp 5 times, last 5 months ago
  5. osvzs 4 times, last 2 days ago
62 more registered users
33 unregistered visitors
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.ConnectException

    Connection refused: connect

    at java.net.DualStackPlainSocketImpl.waitForConnect()
  2. Java RT
    Socket.connect
    1. java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
    3. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    5. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    6. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    7. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    8. java.net.Socket.connect(Socket.java:589)
    8 frames
  3. MongoDB Java Driver
    DefaultServerMonitor$ServerMonitorRunnable.run
    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.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:128)
    4 frames
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame