开发者社区 > 物联网 > 正文

物联网平台,MongoException,Could not initialize class javax.xml.bind.DatatypeConverterImpl

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!

展开
收起
lincheng23 2019-02-22 17:18:38 2644 0
1 条回答
写回答
取消 提交回答

物联网领域前沿技术分享与交流

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载