Mongodb: com.mongodb.MongoSocketReadException: Prematurely reached end of stream

Posted brant

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mongodb: com.mongodb.MongoSocketReadException: Prematurely reached end of stream相关的知识,希望对你有一定的参考价值。

saveLocationInfo error
com.mongodb.MongoSocketReadException: Prematurely reached end of stream
at com.mongodb.connection.SocketStream.read(SocketStream.java:88)
at com.mongodb.connection.InternalStreamConnection.receiveResponseBuffers(InternalStreamConnection.java:494)
at com.mongodb.connection.InternalStreamConnection.receiveMessage(InternalStreamConnection.java:224)
at com.mongodb.connection.CommandHelper.receiveReply(CommandHelper.java:134)
at com.mongodb.connection.CommandHelper.receiveCommandResult(CommandHelper.java:121)
at com.mongodb.connection.CommandHelper.executeCommand(CommandHelper.java:32)
at com.mongodb.connection.InternalStreamConnectionInitializer.initializeConnectionDescription(InternalStreamConnectionInitializer.java:85)

经检查发现maxConnectionIdleTime设置的时间太短,导致连接被关闭了。

以上是关于Mongodb: com.mongodb.MongoSocketReadException: Prematurely reached end of stream的主要内容,如果未能解决你的问题,请参考以下文章

win7 安装mongodb 怎么创建mongodb.log

MongoDB——MongoDB安装+增删改查操作

MongoDB——MongoDB安装+增删改查操作

window怎么安装mongodb

java怎么导出mongodb数据

如何配置mongodb 3.0.3