未解决mongo安全漏洞 设置用户名密码 连接失败

发布问题 回首页

未解决mongo安全漏洞 设置用户名密码 连接失败

★ 0 成为第一个关注这个问题的人

4E: 未捕获到 service() 异常的根本原因 springmvc:org.springframework.web.util.NestedServletException: Request proc essing failed; nested exception is org.springframework.dao.DataAccessResourceFailureException: Timed out after 300 00 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=secondaryPreferred}. Cli ent view of cluster state is {type=UNKNOWN, servers=[{address=100.100.96.78:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName= 'mydcmongo', source='mydc_config', password=, mechanismProperties={}}}, caused by {com.mongodb.MongoComman dException: Command failed with error 18: 'Authentication failed.' on server 100.100.96.78:27017. The full respons e is { "ok" : 0.0, "code" : 18, "errmsg" : "Authentication failed." }}}]; nested exception is com.mongodb.MongoTim eoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readP reference=secondaryPreferred}. Client view of cluster state is {type=UNKNOWN, servers=[{address=100.100.96.78:2701 7, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCr edential{mechanism=null, userName='mydcmongo', source='mydc_config', password=, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication failed.' on server 100 .100.96.78:27017. The full response is { "ok" : 0.0, "code" : 18, "errmsg" : "Authentication failed." }}}]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
at com.bayss.framework.common.context.SysContextFilter.doFilter(SysContextFilter.java:40)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.bayss.framework.common.context.RequestLimitFilter.doFilter(RequestLimitFilter.java:34)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.bayss.framework.common.context.XSSFilter.doFilter(XSSFilter.java:52)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:19 7)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:207)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:960)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1064)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:976)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:459)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:526)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:312)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:17 5)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862)
Caused by: org.springframework.dao.DataAccessResourceFailureException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=secondaryPreferred}. Client view of cluster stat e is {type=UNKNOWN, servers=[{address=100.100.96.78:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb. MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='mydcmongo', source='myd c_config', password=, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command fail ed with error 18: 'Authentication failed.' on server 100.100.96.78:27017. The full response is { "ok" : 0.0, "code " : 18, "errmsg" : "Authentication failed." }}}]; nested exception is com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=secondaryPrefe rred}. Client view of cluster state is {type=UNKNOWN, servers=[{address=100.100.96.78:27017, type=UNKNOWN, state=C ONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='mydcmongo', source='mydc_config', password=, mechanismProperties={}}}, caused by {com.mongodb.M ongoCommandException: Command failed with error 18: 'Authentication failed.' on server 100.100.96.78:27017. The fu ll response is { "ok" : 0.0, "code" : 18, "errmsg" : "Authentication failed." }}}]
at org.springframework.data.mongodb.core.MongoExceptionTranslator.translateExceptionIfPossible(MongoExcept ionTranslator.java:73)
at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConvertRuntimeException(MongoTemplate.ja va:2002)
at org.springframework.data.mongodb.core.MongoTemplate.executeFindMultiInternal(MongoTemplate.java:1885)
at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1696)
at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1679)
at org.springframework.data.mongodb.core.MongoTemplate.find(MongoTemplate.java:598)
at org.springframework.data.mongodb.core.MongoTemplate.find(MongoTemplate.java:589)
at com.bayss.mydc.appservice.dao.impl.MydcPushDao.getAllPushBeans(MydcPushDao.java:33)
at com.bayss.mydc.login.service.impl.LoginService.loginMydc(LoginService.java:400)
at com.bayss.mydc.login.service.impl.LoginService$$FastClassBySpringCGLIB$$74c9c03a.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invo

1334230260 在大约 之前添加了 Open 状态
  • 提问于
  • Answers0 个
  • 浏览 4 次
  • 最新活跃于
To use reCAPTCHA you must get an API key from https://www.google.com/recaptcha/admin/create