欢迎您来到腾讯云!积分商城

腾讯云腾讯云论坛

 找回密码
 立即注册
忘了密码?

扫一扫,访问微社区

快捷导航
搜索
查看: 2012|回复: 1

[已解决] 读Mongo出现异常

[复制链接]

1

主题

0

好友

35

积分

小白[LV1]

Rank: 1

云币
15
威望
15
发表于 2016-7-18 15:51:12 |显示全部楼层
最近在使用Mongo DB, 但是经常在程序中出现: 请问怎么破解??
Caused by: com.mongodb.MongoSocketReadException: Prematurely reached end of stream
909     at com.mongodb.connection.SocketStream.read(SocketStream.java:88)
910     at com.mongodb.connection.InternalStreamConnection.receiveResponseBuffers(InternalStreamConnection.java:491)
911     at com.mongodb.connection.InternalStreamConnection.receiveMessage(InternalStreamConnection.java:221)
912     at com.mongodb.connection.UsageTrackingInternalConnection.receiveMessage(UsageTrackingInternalConnection.java:102)
913     at com.mongodb.connection.DefaultConnectionPool$PooledConnection.receiveMessage(DefaultConnectionPool.java:420)
914     at com.mongodb.connection.WriteCommandProtocol.receiveMessage(WriteCommandProtocol.java:184)
915     at com.mongodb.connection.WriteCommandProtocol.execute(WriteCommandProtocol.java:76)
916     at com.mongodb.connection.InsertCommandProtocol.execute(InsertCommandProtocol.java:66)
917     at com.mongodb.connection.InsertCommandProtocol.execute(InsertCommandProtocol.java:37)
918     at com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:155)
919     at com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:219)
920     at com.mongodb.connection.DefaultServerConnection.insertCommand(DefaultServerConnection.java:108)
921     at com.mongodb.operation.InsertOperation.executeCommandProtocol(InsertOperation.java:76)
922     at com.mongodb.operation.BaseWriteOperation$1.call(BaseWriteOperation.java:111)
923     at com.mongodb.operation.BaseWriteOperation$1.call(BaseWriteOperation.java:106)
924     at com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:186)
925     at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:177)
926     at com.mongodb.operation.BaseWriteOperation.execute(BaseWriteOperation.java:106)
927     at com.mongodb.operation.BaseWriteOperation.execute(BaseWriteOperation.java:58)
928     at com.mongodb.Mongo.execute(Mongo.java:747)
929     at com.mongodb.Mongo$2.execute(Mongo.java:730)
930     at com.mongodb.DBCollection.executeWriteOperation(DBCollection.java:327)
931     at com.mongodb.DBCollection.insert(DBCollection.java:323)
          at com.mongodb.DBCollection.insert(DBCollection.java:314) 933     at com.mongodb.DBCollection.insert(DBCollection.java:284)
934     at com.mongodb.DBCollection.insert(DBCollection.java:250)
935     at com.mongodb.DBCollection.insert(DBCollection.java:172)
936     at com.mongodb.DBCollection.save(DBCollection.java:392)
937     at com.mongodb.DBCollection.save(DBCollection.java:367)
938     at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:1052)
939     at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:462)


2

主题

0

好友

380

积分

腾讯云专家团

Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15

云币
1100
威望
380
发表于 2016-7-25 14:35:36 |显示全部楼层
楼主您好。出现这个情况得检查下是否是在执行一个非常耗时的操作。如需更多帮助信息,请提工单并附上实例ID,我们协助您看看。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册
您需要登录后才可以发帖 QQ登录

联系我们|腾讯云平台|积分商城|腾讯云官方论坛    

GMT+8, 2018-2-18 07:08 , Processed in 1.169634 second(s), 28 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部