SSL连接LDAP出错

花气袭人 2012-11-15 11:44:00
问题描述:几天前应用访问LDAP服务器时提示没有信任的证书,于是重新申请了证书并安装。日志中不再出现没有可信任证书的提示。于是就出现了以下错误:
[11/1/12 9:41:11:392 CST] 0000003a SystemOut O [2012-11-01 at 09:41:11 AM] [WebContainer : 2] DEBUG org.apache.struts.taglib.html.ErrorsTag - -------------- Start Execution Of StartTag ------------------
[11/1/12 9:41:11:392 CST] 0000003a SystemOut O [2012-11-01 at 09:41:11 AM] [WebContainer : 2] DEBUG org.apache.struts.taglib.html.ErrorsTag - -------------- Start Execution Of release ------------------
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.struts.SUIDBaseAction - Msg Start:- Inside SUIDBaseAction Classs :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.struts.SUIDBaseAction - Msg Start:-
Task Id Come = 1021 :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.struts.SUIDBaseAction - Msg Start:- Session Found :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.struts.SUIDBaseAction - Msg Start:- LDAP Connection Object Found :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.struts.CommonAction - Msg Start:- Forgot Password Action :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.struts.CommonAction - Msg Start:-
Task Id Come = 1021 :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.struts.CommonAction - Msg Start:-
Form Come with Task = com.pgs.suid.struts.AddUserFormBean@1e061e06 :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.struts.CommonAction - Msg Start:- Inside Forgot password forgotPasswordsubmit Method Start :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.dao.UserDAO - Constructor
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.dao.AdminDAO - Msg Start:- Inside AdminDAO :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.utility.LDAPManager - Keystore valueC:/Program Files/IBM/WebSphere/AppServer/java/jre/lib/security/cacerts
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.utility.LDAPManager - Msg Start:- PORT :389 :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.utility.SUIDProperties - Msg Start:- ldap.server.trustStore.pathnot present in SUIDProperties.properties file :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.utility.SUIDProperties - Msg Start:- ldap.server.trustStore.passwordnot present in SUIDProperties.properties file :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.utility.LDAPManager - Msg Start:- Server Url > ldap://cnidcapp55.metcne2e.com.cn:636 :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.utility.LDAPManager - Msg Start:- User Url > CN=suidadmin,OU=People,OU=Affiliates,OU=CommonPlatform,DC=MetCNe2e,DC=com,DC=cn :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.utility.LDAPManager - Msg Start:- sslFlag > true :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.utility.LDAPManager - Msg Start:- Getting LDAP Connection :-Msg End
[11/1/12 9:41:35:486 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] DEBUG com.pgs.suid.utility.LDAPManager - Msg Start:- Used SSl Conection :-Msg End
[11/1/12 9:41:35:611 CST] 0000003a SystemOut O [2012-11-01 at 09:41:35 AM] [WebContainer : 2] ERROR com.pgs.suid.utility.LDAPManager - Msg Start:- Error in getConnection() method of LDAPManager --> javax.naming.CommunicationException: simple bind failed: cnidcapp55.metcne2e.com.cn:636 [Root exception is javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake]
javax.naming.CommunicationException: simple bind failed: cnidcapp55.metcne2e.com.cn:636 [Root exception is javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake]
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:212)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2652)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:298)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:190)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:208)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:151)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:81)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:679)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:259)
at javax.naming.InitialContext.init(InitialContext.java:235)
at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:146)
at com.pgs.suid.utility.LDAPManager.getConnection(LDAPManager.java:231)
at com.pgs.suid.dao.UserDAO.getPeopleDataUsingAdminContext(UserDAO.java:418)
at com.pgs.suid.struts.ForgotPasswordAction.forgotPasswordUserSubmit(ForgotPasswordAction.java:240)
at com.pgs.suid.struts.ForgotPasswordAction.executeAction(ForgotPasswordAction.java:127)
at com.pgs.suid.struts.SUIDBaseAction.execute(SUIDBaseAction.java:49)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1096)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:570)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3444)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
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:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by:
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at com.ibm.jsse2.jc.a(jc.java:169)
at com.ibm.jsse2.jc.g(jc.java:470)
at com.ibm.jsse2.jc.a(jc.java:291)
at com.ibm.jsse2.j.write(j.java:21)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:88)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:146)
at com.sun.jndi.ldap.Connection.writeRequest(Connection.java:418)
at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:349)
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:207)
... 40 more
Caused by:
java.io.EOFException: SSL peer shut down incorrectly
at com.ibm.jsse2.a.a(a.java:4)
at com.ibm.jsse2.jc.a(jc.java:285)
... 48 more
...全文
174 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
花气袭人 2012-11-15
  • 打赏
  • 举报
回复
没人理,自己顶顶。。

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧