a673575727 2017-08-11 08:49 采纳率: 46.2%
浏览 1736

求解下 我用java链接mongo有错误

SEVERE: Expecting a single StandAlone, but found more than one. Removing 192.168.0.81:27017 from client view of cluster.
Aug 11, 2017 4:43:39 PM com.mongodb.MultiServerCluster handleStandAloneChanged
SEVERE: Expecting a single StandAlone, but found more than one. Removing 192.168.0.82:27017 from client view of cluster.
Exception in thread "Thread-5" com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting to connect. Client view of cluster state is {type=Unknown, servers=[]
at com.mongodb.BaseCluster.getDescription(BaseCluster.java:128)
at com.mongodb.DBTCPConnector.getClusterDescription(DBTCPConnector.java:396)
at com.mongodb.DBTCPConnector.getType(DBTCPConnector.java:569)
at com.mongodb.DBTCPConnector.isMongosConnection(DBTCPConnector.java:370)
at com.mongodb.Mongo.isMongosConnection(Mongo.java:645)
at com.mongodb.DBCollection.findOne(DBCollection.java:865)
at com.mongodb.DBCollection.findOne(DBCollection.java:843)
at com.mongodb.DBCollection.findOne(DBCollection.java:789)
at com.gzace.buzz.up.SendThreadTele.isSysUpgrade(SendThreadTele.java:171)
at com.gzace.buzz.up.SendThreadTele.run(SendThreadTele.java:34)
启动jar包时出现这种错误 以前是能正常运行的
而到客户端时
mongo显示
2017-07-14T20:08:03.890+0800 [initandlisten]
2017-07-14T20:08:03.890+0800 [initandlisten] ** WARNING: mongod started without --replSet yet 1 documents are present in local.system.replset
2017-07-14T20:08:03.890+0800 [initandlisten] ** Restart with --replSet unless you are doing maintenance and no other clients are connected.
2017-07-14T20:08:03.890+0800 [initandlisten] ** The TTL collection monitor will not start because of this.
2017-07-14T20:08:03.890+0800 [initandlisten] ** For more info see http://dochub.mongodb.org/core/ttlcollections
2017-07-14T20:08:03.890+0800 [initandlisten]
请问是有什么问题呢

  • 写回答

1条回答 默认 最新

  • Vane11 2017-08-14 05:14
    关注

    应该是mongo的部署方式发生了改变,先查看下mongo的部署方式是否和以前一样吧

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?