码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2019-05-31 11:45:04      阅读:531      评论:0      收藏:0      [点我收藏+]

标签:error   exce   esc   mongodb   ali   res   god   cut   max   

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

标签:error   exce   esc   mongodb   ali   res   god   cut   max   

原文地址:https://www.cnblogs.com/brant/p/10954303.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!