我已经在 Mongodb 和 Morphia 上配置了项目。当我尝试从 Mongodb 获取批量数据时,我在控制台上收到以下错误消息;
SEVERE: can't update node: 127.0.0.1:27017
java.lang.NullPointerException
at com.mongodb.OutMessage.reset(OutMessage.java:73)
at com.mongodb.OutMessage.<init>(OutMessage.java:51)
at com.mongodb.OutMessage.query(OutMessage.java:38)
at com.mongodb.DBPort.findOne(DBPort.java:127)
at com.mongodb.DBPort.runCommand(DBPort.java:138)
at com.mongodb.ReplicaSetStatus$Node.update(ReplicaSetStatus.java:149)
at com.mongodb.ReplicaSetStatus.updateAll(ReplicaSetStatus.java:314)
at com.mongodb.ReplicaSetStatus.ensureMaster(ReplicaSetStatus.java:306)
at com.mongodb.DBTCPConnector.checkMaster(DBTCPConnector.java:396)
at com.mongodb.ReplicaSetStatus$Updater.run(ReplicaSetStatus.java:275)
Apr 1, 2013 7:27:40 PM org.apache.coyote.http11.Http11Protocol destroy
并且此错误在后端连续运行,而不会影响我的应用程序流程。我如何才能停止此错误。您的帮助将是可观的,并提前致谢 :)