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的主要内容,如果未能解决你的问题,请参考以下文章