initialize mongo database[EAM] connection for ...
log4j:WARN No appenders could be found for logger (org.mongodb.driver.cluster).
log4j:WARN Please initialize the log4j system properly.
mongo database[EAM] connection initialized
Mongo is ready
com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=qllmongo:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoException: java.lang.NoClassDefFoundError: Could not initialize class javax.xml.bind.DatatypeConverterImpl}, caused by {java.lang.NoClassDefFoundError: Could not initialize class javax.xml.bind.DatatypeConverterImpl}}]
at com.mongodb.connection.BaseCluster.createTimeoutException(BaseCluster.java:377)
at com.mongodb.connection.BaseCluster.selectServer(BaseCluster.java:104)
at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.(ClusterBinding.java:75)
at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.(ClusterBinding.java:71)
at com.mongodb.binding.ClusterBinding.getReadConnectionSource(ClusterBinding.java:63)
at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:402)
at com.mongodb.operation.FindOperation.execute(FindOperation.java:510)
at com.mongodb.operation.FindOperation.execute(FindOperation.java:81)
at com.mongodb.Mongo.execute(Mongo.java:836)
at com.mongodb.Mongo$2.execute(Mongo.java:823)
at com.mongodb.OperationIterable.iterator(OperationIterable.java:47)
at com.mongodb.OperationIterable.forEach(OperationIterable.java:70)
at com.mongodb.FindIterableImpl.forEach(FindIterableImpl.java:166)
at com.eohi.yun.cache.dao.MongoDaoImpl.findAllByConditions(MongoDaoImpl.java:247)
at com.eohi.yun.cache.dao.MongoDaoImpl.exist(MongoDaoImpl.java:129)
at com.eohi.yun.cache.dao.MongoDaoImpl.writeKv(MongoDaoImpl.java:390)
at com.eohi.yun.util.BillBarcodeAccessor.saveABarcode(BillBarcodeAccessor.java:53)
at com.eohi.yun.util.BillBarcodeAccessor.main(BillBarcodeAccessor.java:104)
com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches WritableServerSelector. Client view of cluster state is {type=UNKNOWN, servers=[{address=qllmongo:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoException: java.lang.NoClassDefFoundError: Could not initialize class javax.xml.bind.DatatypeConverterImpl}, caused by {java.lang.NoClassDefFoundError: Could not initialize class javax.xml.bind.DatatypeConverterImpl}}]
at com.mongodb.connection.BaseCluster.createTimeoutException(BaseCluster.java:377)
at com.mongodb.connection.BaseCluster.selectServer(BaseCluster.java:104)
at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.(ClusterBinding.java:75)
at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.(ClusterBinding.java:71)
at com.mongodb.binding.ClusterBinding.getWriteConnectionSource(ClusterBinding.java:68)
at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:411)
at com.mongodb.operation.MixedBulkWriteOperation.execute(MixedBulkWriteOperation.java:168)
at com.mongodb.operation.MixedBulkWriteOperation.execute(MixedBulkWriteOperation.java:74)
at com.mongodb.Mongo.execute(Mongo.java:845)
at com.mongodb.Mongo$2.execute(Mongo.java:828)
at com.mongodb.MongoCollectionImpl.executeSingleWriteRequest(MongoCollectionImpl.java:550)
at com.mongodb.MongoCollectionImpl.insertOne(MongoCollectionImpl.java:317)
at com.mongodb.MongoCollectionImpl.insertOne(MongoCollectionImpl.java:307)
at com.eohi.yun.cache.dao.MongoDaoImpl.insertADoc(MongoDaoImpl.java:166)
at com.eohi.yun.cache.dao.MongoDaoImpl.insertKv(MongoDaoImpl.java:152)
at com.eohi.yun.cache.dao.MongoDaoImpl.writeKv(MongoDaoImpl.java:394)
at com.eohi.yun.util.BillBarcodeAccessor.saveABarcode(BillBarcodeAccessor.java:53)
at com.eohi.yun.util.BillBarcodeAccessor.main(BillBarcodeAccessor.java:104)
<3010-EAM-DO-20181011-161,/upload/eam/QRCode/JTK78J81RW4BNA0DO161.png> 已插入
<3010-EAM-DO-20181011-161,/upload/eam/QRCode/JTK78J81RW4BNA0DO161.png> processed!
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。