title: MongoSocketOpenException when using spring-boot-starter-parent 2.0.0
body: <p>I am trying to build spring boot MongoDB project provided at <a href="https://spring.io/guides/gs/accessing-data-mongodb/" rel="nofollow noreferrer">https://spring.io/guides/gs/accessing-data-mongodb/</a> which is using spring-boot-starter-parent 2.0.0.RELEASE,
  and getting</p>
  
  <p>stack trace:</p>
  
  <pre><code>com.mongodb.MongoSocketOpenException: Exception opening socket
  at com.mongodb.connection.SocketStream.open(SocketStream.java:62) ~[mongodb-driver-core-3.6.3.jar:na]
  at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:126) ~[mongodb-driver-core-3.6.3.jar:na]
  at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:114) ~[mongodb-driver-core-3.6.3.jar:na]
  at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
  
  Caused by: java.net.SocketException: Socket operation on non-socket (Error setting socket option)
  at java.net.PlainSocketImpl.socketSetOption0(Native Method) ~[na:1.8.0_151]
  at java.net.PlainSocketImpl.socketSetOption(PlainSocketImpl.java:88) ~[na:1.8.0_151]
  at java.net.AbstractPlainSocketImpl.setOption(AbstractPlainSocketImpl.java:275) ~[na:1.8.0_151]
  at java.net.Socket.setTcpNoDelay(Socket.java:980) ~[na:1.8.0_151]
  at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:36) ~[mongodb-driver-core-3.6.3.jar:na]
  at com.mongodb.connection.SocketStream.open(SocketStream.java:57) ~[mongodb-driver-core-3.6.3.jar:na]
  ... 3 common frames omitted
  </code></pre>
  
  <p>When I changed spring-boot-starter-parent version to 1.5.9.RELEASE  or 1.5.10.RELEASE, the same code is working fine. So is there any problem with version 2.0.0.RELEASE when using spring data mongo.</p>
  
  <p>System details:</p>
  
  <p>mongod version: 3.4.13</p>
  
  <p>openjdk version "1.8.0_151"</p>