Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2292

Integrated with Spring Boot - automatic connection localhost:27017

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Works as Designed
    • Affects Version/s: 3.3.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Spring Boot

      Description

      It will automatic recursive connect to localhost:27017
      Just add the jar to environment. (no any code)

      Here is the stack

      2016-08-30 17:22:50 [cluster-ClusterId{value='57c5502ab2a8e01738289ab0', description='null'}-localhost:27017] INFO  org.mongodb.driver.cluster -Exception in monitor thread while connecting to server localhost:27017
      com.mongodb.MongoSocketOpenException: Exception opening socket
      	at com.mongodb.connection.SocketStream.open(SocketStream.java:63)
      	at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)
      	at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:116)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: java.net.ConnectException: Connection refused: connect
      	at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
      	at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
      	at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
      	at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
      	at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
      	at java.net.PlainSocketImpl.connect(Unknown Source)
      	at java.net.SocksSocketImpl.connect(Unknown Source)
      	at java.net.Socket.connect(Unknown Source)
      	at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:50)
      	at com.mongodb.connection.SocketStream.open(SocketStream.java:58)
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            shengyao15 shengyao
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: