com.mongodb.DBPortPool gotError 100C

十二月 12, 2015 3:39:34 下午 com.mongodb.DBPortPool gotError
警告: emptying DBPortPool to /120.76.41.109:26530 b/c of error
java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:173)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at org.bson.io.Bits.readFully(Bits.java:46)
at org.bson.io.Bits.readFully(Bits.java:33)
at org.bson.io.Bits.readFully(Bits.java:28)
at com.mongodb.Response.(Response.java:40)
at com.mongodb.DBPort.go(DBPort.java:124)
at com.mongodb.DBPort.call(DBPort.java:74)
at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:286)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:257)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:310)
at com.mongodb.DB.command(DB.java:274)
15:39:34.685 [http-bio-8068-exec-6] DEBUG o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver - Resolving exception from handler [public void com.business.app.mix.MixController.scenePage(org.springframework.ui.Model,java.lang.Integer,java.lang.Integer)]: org.springframework.dao.DataAccessResourceFailureException: can't call something : /120.76.41.109:26530/business; nested exception is com.mongodb.MongoException$Network: can't call something : /120.76.41.109:26530/business
at com.mongodb.DB.command(DB.java:256)
15:39:34.685 [http-bio-8068-exec-6] DEBUG o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver - Resolving exception from handler [public void com.business.app.mix.MixController.scenePage(org.springframework.ui.Model,java.lang.Integer,java.lang.Integer)]: org.springframework.dao.DataAccessResourceFailureException: can't call something : /120.76.41.109:26530/business; nested exception is com.mongodb.MongoException$Network: can't call something : /120.76.41.109:26530/business
at com.mongodb.DBCollection.getCount(DBCollection.java:984)
15:39:34.685 [http-bio-8068-exec-6] DEBUG o.s.w.s.m.a.ResponseStatusExceptionResolver - Resolving exception from handler [public void com.business.app.mix.MixController.scenePage(org.springframework.ui.Model,java.lang.Integer,java.lang.Integer)]: org.springframework.dao.DataAccessResourceFailureException: can't call something : /120.76.41.109:26530/business; nested exception is com.mongodb.MongoException$Network: can't call something : /120.76.41.109:26530/business
at com.mongodb.DBCollection.getCount(DBCollection.java:955)
15:39:34.685 [http-bio-8068-exec-6] DEBUG o.s.w.s.m.a.ResponseStatusExceptionResolver - Resolving exception from handler [public void com.business.app.mix.MixController.scenePage(org.springframework.ui.Model,java.lang.Integer,java.lang.Integer)]: org.springframework.dao.DataAccessResourceFailureException: can't call something : /120.76.41.109:26530/business; nested exception is com.mongodb.MongoException$Network: can't call something : /120.76.41.109:26530/business
at com.mongodb.DBCollection.getCount(DBCollection.java:930)
15:39:34.685 [http-bio-8068-exec-6] DEBUG o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolving exception from handler [public void com.business.app.mix.MixController.scenePage(org.springframework.ui.Model,java.lang.Integer,java.lang.Integer)]: org.springframework.dao.DataAccessResourceFailureException: can't call something : /120.76.41.109:26530/business; nested exception is com.mongodb.MongoException$Network: can't call something : /120.76.41.109:26530/business
at com.mongodb.DBCollection.count(DBCollection.java:877)
15:39:34.685 [http-bio-8068-exec-6] DEBUG o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolving exception from handler [public void com.business.app.mix.MixController.scenePage(org.springframework.ui.Model,java.lang.Integer,java.lang.Integer)]: org.springframework.dao.DataAccessResourceFailureException: can't call something : /120.76.41.109:26530/business; nested exception is com.mongodb.MongoException$Network: can't call something : /120.76.41.109:26530/business
at org.springframework.data.mongodb.core.MongoTemplate$7.doInCollection(MongoTemplate.java:611)
15:39:34.687 [http-bio-8068-exec-6] DEBUG o.s.web.servlet.DispatcherServlet - Could not complete request
at org.springframework.data.mongodb.core.MongoTemplate$7.doInCollection(MongoTemplate.java:609)
at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:388)
org.springframework.dao.DataAccessResourceFailureException: can't call something : /120.76.41.109:26530/business; nested exception is com.mongodb.MongoException$Network: can't call something : /120.76.41.109:26530/business
at org.springframework.data.mongodb.core.MongoTemplate.count(MongoTemplate.java:609)
at org.springframework.data.mongodb.core.MongoExceptionTranslator.translateExceptionIfPossible(MongoExceptionTranslator.java:56) ~[spring-data-mongodb-1.2.4.RELEASE.jar:na]
at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConvertRuntimeException(MongoTemplate.java:1679) ~[spring-data-mongodb-1.2.4.RELEASE.jar:na]
at org.springframework.data.mongodb.core.MongoTemplate.count(MongoTemplate.java:596)
at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:390) ~[spring-data-mongodb-1.2.4.RELEASE.jar:na]
at com.business.core.mongo.RoutingMongoOperations.count(RoutingMongoOperations.java:199)
at org.springframework.data.mongodb.core.MongoTemplate.count(MongoTemplate.java:609) ~[spring-data-mongodb-1.2.4.RELEASE.jar:na]
at com.business.core.mongo.BaseMongoDaoSupport.findEntityPage(BaseMongoDaoSupport.java:358)
at org.springframework.data.mongodb.core.MongoTemplate.count(MongoTemplate.java:596) ~[spring-data-mongodb-1.2.4.RELEASE.jar:na]
at com.business.core.mongo.BaseMongoDaoSupport.findEntityPage(BaseMongoDaoSupport.java:333)
at com.business.core.mongo.RoutingMongoOperations.count(RoutingMongoOperations.java:199) ~[core-1.0-SNAPSHOT.jar:na]
at com.business.app.mix.MixDao.findByScenePage(MixDao.java:86)
at com.business.core.mongo.BaseMongoDaoSupport.findEntityPage(BaseMongoDaoSupport.java:358) ~[core-1.0-SNAPSHOT.jar:na]
at com.business.app.mix.MixService.scenePage(MixService.java:182)

3个回答

一直没解决这个问题。求大神啊

u011530757
CherishSion 部署一段时间,就会出现这个异常
大约 4 年之前 回复
u011530757
CherishSion 这个我看过了,就一直没找到解决方法
大约 4 年之前 回复

你查询mongodb的语句是否有问题 通过shell方式查看是否也会出错 这样来排除问题

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问