MongoDB查询报错:class com.mongodb.MongoSecurityException: Exception authenticating MongoCredential...

  异常日志:

2019-05-30 10:10:24,252 [http-nio-8080-exec-1] DEBUG [java.sql.Connection] - ooo Connection Opened
2019-05-30 10:10:24,258 [http-nio-8080-exec-1] DEBUG [java.sql.PreparedStatement] - ==>  Executing: insert into client_config ( appid, uid, config, created_time, creater, client_type, status ) values ( ?, ?, ?, now(), ?, ?, ? ) 
2019-05-30 10:10:24,259 [http-nio-8080-exec-1] DEBUG [java.sql.PreparedStatement] - ==> Parameters: 1234(String), wulinfeng(String), By continuing to use our website, you agree with our use of cookies in accordance with our Cookie Policy.You can reject cookies by changing your browser settings.(String), 系统管理员(String), 1(String), 1(String)
key=business:businessclientconfig:1:1234:wulinfeng
2019-05-30 10:10:24,960 [http-nio-8080-exec-1] DEBUG [java.sql.Connection] - ooo Connection Opened
2019-05-30 10:10:24,961 [http-nio-8080-exec-1] DEBUG [java.sql.PreparedStatement] - ==>  Executing: select id,data_key,description,valid_time,status,created_time from cache_memcache_data where data_key like 'business:businessclientconfig:1:1234:wulinfeng%' 
2019-05-30 10:10:24,961 [http-nio-8080-exec-1] DEBUG [java.sql.PreparedStatement] - ==> Parameters: 
2019-05-30 10:12:02,921 [http-nio-8080-exec-1] INFO  [org.mongodb.driver.connection] - Closed connection [connectionId{localValue:10}] to localhost:27017 because there was a socket exception raised by this connection.
2019-05-30 10:12:45,796 [http-nio-8080-exec-1] DEBUG [java.sql.Connection] - ooo Connection Opened
2019-05-30 10:12:45,799 [http-nio-8080-exec-1] DEBUG [java.sql.PreparedStatement] - ==>  Executing: INSERT INTO log_web_exception ( op_user, op_user_name, error_level, page_name, class_name, method, input_params, log_desc, log_stack, create_time,source_type) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, now(),'1'); 
2019-05-30 10:12:45,800 [http-nio-8080-exec-1] DEBUG [java.sql.PreparedStatement] - ==> Parameters: 系统管理员(String), admin(String), 1(String), 客户端配置(String), com.wlf.musicbox.business.controller.ClientConfigController(String), saveClientConfig(String), {
    "id":0,"appid":"1234","config":"By continuing to use our website, you agree with our use of cookies in accordance with our Cookie Policy.You can reject cookies by changing your browser settings.","creater":"系统管理员","status":"1","uid":"wulinfeng","clientType":"1"}(String), 保存客户端配置信息异常(String), class com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='', source='admin', password=<hidden>, mechanismProperties={}}
类名: com.mongodb.internal.connection.SaslAuthenticator, 方法名: wrapException,行数: 173 
类名: com.mongodb.internal.connection.SaslAuthenticator, 方法名: access$300,行数: 40 
类名: com.mongodb.internal.connection.SaslAuthenticator$1, 方法名: run,行数: 70 
类名: com.mongodb.internal.connection.SaslAuthenticator$1, 方法名: run,行数: 47 
类名: com.mongodb.internal.connection.SaslAuthenticator, 方法名: doAsSubject,行数: 179 
类名: com.mongodb.internal.connection.SaslAuthenticator, 方法名: authenticate,行数: 47 
类名: com.mongodb.internal.connection.InternalStreamConnectionInitializer, 方法名: authenticateAll,行数: 151 
类名: com.mongodb.internal.connection.InternalStreamConnectionInitializer, 方法名: initialize,行数: 64 
类名: com.mongodb.internal.connection.InternalStreamConnection, 方法名: open,行数: 127 
类名: com.mongodb.internal.connection.UsageTrackingInternalConnection, 方法名: open,行数: 50 
类名: com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection, 方法名: open,行数: 390 
类名: com.mongodb.internal.connection.DefaultConnectionPool, 方法名: get,行数: 106 
类名: com.mongodb.internal.connection.DefaultConnectionPool, 方法名: get,行数: 92 
类名: com.mongodb.internal.connection.DefaultServer, 方法名: getConnection,行数: 85 
类名: com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource, 方法名: getConnection,行数: 115 
类名: com.mongodb.operation.OperationHelper, 方法名: withConnectionSource,行数: 460 
com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='', source='admin', password=<hidden>, mechanismProperties={}}
类名: com.mongodb.operation.OperationHelper, 方法名: withConnection,行数: 406 
类名: com.mongodb.operation.FindOperation, 方法名: execute,行数: 696 
类名: com.mongodb.operation.FindOperation, 方法名: execute,行数: 83 
类名: com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor, 方法名: execute,行数: 179 
类名: com.mongodb.client.internal.MongoIterableImpl, 方法名: execute,行数: 132 
类名: com.mongodb.client.internal.MongoIterableImpl, 方法名: iterator,行数: 86 
类名: com.ll.musicbox.commonlibmongo.MongoDBUtil, 方法名: findAllCommonRecordsWithFiled,行数: 539 
类名: com.ll.musicbox.commonlibmongo.MongoDBUtil, 方法名: findAllCommonRecords,行数: 519 
类名: com.wlf.musicbox.system.service.MemCacheService, 方法名: getMemFromMongoForBlur,行数: 287 
类名: com.wlf.musicbox.business.service.CommonService, 方法名: delMemFromMongoForBlur,行数: 1025 
类名: com.wlf.musicbox.business.service.CommonService, 方法名: delMemByKeyValue,行数: 1284 
类名: com.wlf.musicbox.business.controller.ClientConfigController, 方法名: saveClientConfig,行数: 238 
类名: sun.reflect.NativeMethodAccessorImpl, 方法名: invoke0,行数: -2 
类名: sun.reflect.NativeMethodAccessorImpl, 方法名: invoke,行数: 62 
类名: sun.reflect.DelegatingMethodAccessorImpl, 方法名: invoke,行数: 43 
类名: java.lang.reflect.Method, 方法名: invoke,行数: 498 
    at com.mongodb.internal.connection.SaslAuthenticator.wrapException(SaslAuthenticator.java:173)
类名: org.springframework.web.method.support.InvocableHandlerMethod, 方法名: invoke,行数: 212 
    at com.mongodb.internal.connection.SaslAuthenticator.access$300(SaslAuthenticator.java:40)
类名: org.springframework.web.method.support.InvocableHandlerMethod, 方法名: invokeForRequest,行数: 126 
    at com.mongodb.internal.connection.SaslAuthenticator$1.run(SaslAuthenticator.java:70)
    at com.mongodb.internal.connection.SaslAuthenticator$1.run(SaslAuthenti
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值