无法使用VertxMongo clinent连接到Mongo

时间:2018-02-08 16:57:28

标签: mongodb ssl vert.x

您在mongo服务器中启用ssl并尝试从vertx MongoClient连接。 接下来的步骤:配置中的“ssl”:true ,并在初始化clinet之前设置 System.setProperty(“org.mongodb.async.type”,“netty”)。当我尝试运行我的vertx应用程序时,我收到以下错误。有人可以帮忙吗?

com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=testssl@cv.com:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {javax.net.ssl.SSLException: SSLEngine closed already}}]
    at com.mongodb.connection.BaseCluster.createTimeoutException(BaseCluster.java:377)
    at com.mongodb.connection.BaseCluster.handleServerSelectionRequest(BaseCluster.java:292)
    at com.mongodb.connection.BaseCluster.access$800(BaseCluster.java:54)
    at com.mongodb.connection.BaseCluster$WaitQueueHandler.run(BaseCluster.java:458)
    at java.lang.Thread.run(Thread.java:745)

0 个答案:

没有答案