加入ukey登录

master
20918 1 year ago
parent f18119d882
commit 8fae4b025c

@ -162,18 +162,6 @@
<url-pattern>/servlet/loginServlet</url-pattern>
</servlet-mapping>
<!-- <servlet>-->
<!-- <servlet-name>KeyLoginServlet</servlet-name>-->
<!-- <servlet-class>com.zky.certlogin.KeyLoginServlet</servlet-class>-->
<!-- </servlet>-->
<!-- <servlet-mapping>-->
<!-- <servlet-name>KeyLoginServlet</servlet-name>-->
<!-- <url-pattern>/servlet/KeyLoginServlet</url-pattern>-->
<!-- </servlet-mapping>-->
<servlet>
<servlet-name>SelectParaServlet</servlet-name>
<servlet-class>com.zky.sspd.para.SelectParaServlet</servlet-class>

@ -7776,3 +7776,389 @@ Caused by: java.net.SocketTimeoutException: connect timed out
at cn.org.bjca.framework.socket.client.impl.socket.DefaultBSocket.open(DefaultBSocket.java:138)
... 61 more
INFO [2023-12-28 09:39:20 208] 10.10.3.2_8000ÎÞЧconnect timed out
INFO [2023-12-28 09:39:22 261] 10.10.3.2_8000ÎÞЧconnect timed out
INFO [2023-12-28 09:39:22 296] Connection error! Please check network connections or client config!
INFO [2023-12-28 09:39:22 296] java.lang.RuntimeException: There is no any instance of Remote Service, please check Server or Client config !
at cn.org.bjca.framework.socket.client.impl.loadbalance.DefaultHostSelector.select(DefaultHostSelector.java:69)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.selectInstance(NioClientImpl.java:303)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:366)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:357)
at cn.org.bjca.hsm.client.manager.MsgManager.sendAndReceiveMsg(MsgManager.java:43)
at cn.org.bjca.hsm.client.security.sdf.SDFDefaultSecurityEngine.getActiveThreadNum(SDFDefaultSecurityEngine.java:39)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_getInstance(SDFSecurityEngineDeal.java:116)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_OpenDevice(SDFSecurityEngineDeal.java:134)
at cn.org.bjca.chaos.jce.provider.BJCAJCEProvider.<init>(BJCAJCEProvider.java:175)
at com.zky.bjca.SM4.SM4Decrypt(SM4.java:113)
at org.apache.jsp.zhyw.wxs.indentureManage_jsp._jspService(indentureManage_jsp.java:519)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
at com.zky.zhyw.wxs.IndentureManageServlet.queryIndenture(IndentureManageServlet.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zky.pub.DispatchServlet.doPost(DispatchServlet.java:39)
at com.zky.pub.DispatchServlet.doGet(DispatchServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.pub.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.util.CharFilter.doFilter(CharFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)
INFO [2023-12-28 09:39:22 307] Connection error! Please check network connections or client config!
INFO [2023-12-28 09:39:22 307] java.lang.RuntimeException: There is no any instance of Remote Service, please check Server or Client config !
at cn.org.bjca.framework.socket.client.impl.loadbalance.DefaultHostSelector.select(DefaultHostSelector.java:69)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.selectInstance(NioClientImpl.java:303)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:366)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:357)
at cn.org.bjca.hsm.client.manager.MsgManager.sendAndReceiveMsg(MsgManager.java:43)
at cn.org.bjca.hsm.client.security.sdf.SDFDefaultSecurityEngine.getActiveThreadNum(SDFDefaultSecurityEngine.java:39)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_getInstance(SDFSecurityEngineDeal.java:116)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_OpenDevice(SDFSecurityEngineDeal.java:134)
at cn.org.bjca.chaos.jce.provider.BJCAJCEProvider.<init>(BJCAJCEProvider.java:175)
at com.zky.bjca.SM4.SM4Decrypt(SM4.java:113)
at org.apache.jsp.zhyw.wxs.indentureManage_jsp._jspService(indentureManage_jsp.java:519)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
at com.zky.zhyw.wxs.IndentureManageServlet.queryIndenture(IndentureManageServlet.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zky.pub.DispatchServlet.doPost(DispatchServlet.java:39)
at com.zky.pub.DispatchServlet.doGet(DispatchServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.pub.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.util.CharFilter.doFilter(CharFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)
INFO [2023-12-28 09:39:46 21] Connection error! Please check network connections or client config!
INFO [2023-12-28 09:39:46 24] java.lang.RuntimeException: There is no any instance of Remote Service, please check Server or Client config !
at cn.org.bjca.framework.socket.client.impl.loadbalance.DefaultHostSelector.select(DefaultHostSelector.java:69)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.selectInstance(NioClientImpl.java:303)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:366)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:357)
at cn.org.bjca.hsm.client.manager.MsgManager.sendAndReceiveMsg(MsgManager.java:43)
at cn.org.bjca.hsm.client.security.sdf.SDFDefaultSecurityEngine.getActiveThreadNum(SDFDefaultSecurityEngine.java:39)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_getInstance(SDFSecurityEngineDeal.java:116)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_OpenDevice(SDFSecurityEngineDeal.java:134)
at cn.org.bjca.chaos.jce.provider.BJCAJCEProvider.<init>(BJCAJCEProvider.java:175)
at com.zky.bjca.SM4.SM4Decrypt(SM4.java:113)
at org.apache.jsp.zhyw.wxs.showIndenture_jsp._jspService(showIndenture_jsp.java:353)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
at com.zky.zhyw.wxs.IndentureManageServlet.showIndenture(IndentureManageServlet.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zky.pub.DispatchServlet.doPost(DispatchServlet.java:39)
at com.zky.pub.DispatchServlet.doGet(DispatchServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.pub.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.util.CharFilter.doFilter(CharFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)
INFO [2023-12-28 09:39:59 70] Connection error! Please check network connections or client config!
INFO [2023-12-28 09:39:59 71] java.lang.RuntimeException: There is no any instance of Remote Service, please check Server or Client config !
at cn.org.bjca.framework.socket.client.impl.loadbalance.DefaultHostSelector.select(DefaultHostSelector.java:69)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.selectInstance(NioClientImpl.java:303)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:366)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:357)
at cn.org.bjca.hsm.client.manager.MsgManager.sendAndReceiveMsg(MsgManager.java:43)
at cn.org.bjca.hsm.client.security.sdf.SDFDefaultSecurityEngine.getActiveThreadNum(SDFDefaultSecurityEngine.java:39)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_getInstance(SDFSecurityEngineDeal.java:116)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_OpenDevice(SDFSecurityEngineDeal.java:134)
at cn.org.bjca.chaos.jce.provider.BJCAJCEProvider.<init>(BJCAJCEProvider.java:175)
at com.zky.bjca.SM4.SM4Decrypt(SM4.java:113)
at org.apache.jsp.zhyw.wxs.showIndenture_jsp._jspService(showIndenture_jsp.java:353)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
at com.zky.zhyw.wxs.IndentureManageServlet.showIndenture(IndentureManageServlet.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zky.pub.DispatchServlet.doPost(DispatchServlet.java:39)
at com.zky.pub.DispatchServlet.doGet(DispatchServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.pub.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.util.CharFilter.doFilter(CharFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)
INFO [2023-12-28 09:49:50 660] Connection error! Please check network connections or client config!
INFO [2023-12-28 09:49:50 660] java.lang.RuntimeException: There is no any instance of Remote Service, please check Server or Client config !
at cn.org.bjca.framework.socket.client.impl.loadbalance.DefaultHostSelector.select(DefaultHostSelector.java:69)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.selectInstance(NioClientImpl.java:303)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:366)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:357)
at cn.org.bjca.hsm.client.manager.MsgManager.sendAndReceiveMsg(MsgManager.java:43)
at cn.org.bjca.hsm.client.security.sdf.SDFDefaultSecurityEngine.getActiveThreadNum(SDFDefaultSecurityEngine.java:39)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_getInstance(SDFSecurityEngineDeal.java:116)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_OpenDevice(SDFSecurityEngineDeal.java:134)
at cn.org.bjca.chaos.jce.provider.BJCAJCEProvider.<init>(BJCAJCEProvider.java:175)
at com.zky.bjca.SM4.SM4Decrypt(SM4.java:113)
at org.apache.jsp.zhyw.smjc.CheckNotifyManage_jsp._jspService(CheckNotifyManage_jsp.java:553)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
at com.zky.zhyw.smjc.CheckManageServlet.queryCheckNotify(CheckManageServlet.java:623)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zky.pub.DispatchServlet.doPost(DispatchServlet.java:39)
at com.zky.pub.DispatchServlet.doGet(DispatchServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.pub.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.util.CharFilter.doFilter(CharFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)
INFO [2023-12-28 09:50:15 930] Connection error! Please check network connections or client config!
INFO [2023-12-28 09:50:15 931] java.lang.RuntimeException: There is no any instance of Remote Service, please check Server or Client config !
at cn.org.bjca.framework.socket.client.impl.loadbalance.DefaultHostSelector.select(DefaultHostSelector.java:69)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.selectInstance(NioClientImpl.java:303)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:366)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:357)
at cn.org.bjca.hsm.client.manager.MsgManager.sendAndReceiveMsg(MsgManager.java:43)
at cn.org.bjca.hsm.client.security.sdf.SDFDefaultSecurityEngine.getActiveThreadNum(SDFDefaultSecurityEngine.java:39)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_getInstance(SDFSecurityEngineDeal.java:116)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_OpenDevice(SDFSecurityEngineDeal.java:134)
at cn.org.bjca.chaos.jce.provider.BJCAJCEProvider.<init>(BJCAJCEProvider.java:175)
at com.zky.bjca.SM4.SM4Decrypt(SM4.java:113)
at org.apache.jsp.zhyw.smsb.sbdj.propertyUseManage_jsp._jspService(propertyUseManage_jsp.java:556)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
at com.zky.zhyw.smsb.PropertyUseManageServlet.queryPropertyUsePage(PropertyUseManageServlet.java:894)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zky.pub.DispatchServlet.doPost(DispatchServlet.java:39)
at com.zky.pub.DispatchServlet.doGet(DispatchServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.pub.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.util.CharFilter.doFilter(CharFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)

@ -217,3 +217,25 @@ INFO [2023-12-27 15:21:28 207] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-27 15:21:28 207] BJCA Client Version:2.0 Build20210118
INFO [2023-12-27 15:34:50 997] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-27 15:34:51 174] BJCA Client Version:2.0 Build20210118
INFO [2023-12-28 09:39:18 84] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-28 09:39:22 266] BJCA Client Version:2.0 Build20210118
INFO [2023-12-28 09:39:22 306] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-28 09:39:22 306] BJCA Client Version:2.0 Build20210118
INFO [2023-12-28 09:39:46 17] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-28 09:39:46 20] BJCA Client Version:2.0 Build20210118
INFO [2023-12-28 09:39:59 69] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-28 09:39:59 69] BJCA Client Version:2.0 Build20210118
INFO [2023-12-28 09:49:50 659] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-28 09:49:50 660] BJCA Client Version:2.0 Build20210118
INFO [2023-12-28 09:50:15 930] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-28 09:50:15 930] BJCA Client Version:2.0 Build20210118
INFO [2023-12-29 08:51:35 376] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-29 08:51:35 545] BJCA Client Version:2.0 Build20210118
INFO [2023-12-29 09:09:10 362] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-29 09:09:10 691] BJCA Client Version:2.0 Build20210118
INFO [2024-01-02 09:40:37 374] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2024-01-02 09:40:37 452] BJCA Client Version:2.0 Build20210118
INFO [2024-01-02 09:45:05 766] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2024-01-02 09:45:05 969] BJCA Client Version:2.0 Build20210118
INFO [2024-01-02 14:57:29 110] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2024-01-02 14:57:29 198] BJCA Client Version:2.0 Build20210118

@ -3,7 +3,7 @@
<jsp:useBean id="getPara" scope="application"
class="com.zky.para.SyncPara" />
<html xmlns="http://www.w3.org/1999/xhtml">
<title>甘肃省国家保密辅助业务管理系统</title>
<title>保密辅助业务管理系统</title>
<head id="Head1" runat="server">
<script src="js/Mainext.js" type="text/javascript"></script>
<script src="js/TabControl.js" type="text/javascript"></script>
@ -11,7 +11,7 @@
//加载皮肤文件
loadCss(_skinId, 'Main.css');
function ShowMenu() {
if (tdMenu.style.display == '') {
if (tdMenu.style.display == '') { x
tdMenu.style.display = 'none';
$("tdMenu1").title = $("tdMenu2").title = "显示菜单"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 322 KiB

File diff suppressed because one or more lines are too long

@ -3,21 +3,106 @@
<meta charset="UTF-8">
<title>XTXAppCOM异步调用方式</title>
<style type="text/css">
.TopDIV {position:absolute;left:10px;top:10px; height:70px;background-color:#BCCE98;text-align:center;}
.MenuDIV {position:absolute;left:10px;top:85px; background-color:#DAE9BC;width:250px;float:left;overflow:auto;}
.MainTopDIV {position:absolute;left:265px;top:85px; background-color:#EEEEEE;height:130px;float:left;overflow:auto;}
.MainContentDIV {position:absolute;bottom:30px;left:265px;top:240px; background-color:#EEEEEE;float:left;overflow:auto;}
.BottomDIV {position:fixed;bottom:0px;left:10px;height:30px;background-color:#BCCE98;clear:both;text-align:center;overflow:auto;}
h2 {margin-bottom:2;font-size:18px;}
li {font-size:15px;}
.customers {font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; width:100%; border-collapse:collapse;}
.customers td, .customers th {font-size:1em; border:1px solid #98bf21; padding:3px 7px 2px 7px;text-align: center;}
.customers th {font-size:1em; border:1px solid #98bf21; padding:3px 7px 2px 7px;text-align:center; background-color:#98bf21;color:#ffffff;}
.customers td.right {text-align: right;width:20%}
.customers td.left {text-align: left;width:80%}
.StandardWidth {width:500px; box-sizing:border-box;}
.TopDIV {
position: absolute;
left: 10px;
top: 10px;
height: 70px;
background-color: #BCCE98;
text-align: center;
}
.MenuDIV {
position: absolute;
left: 10px;
top: 85px;
background-color: #DAE9BC;
width: 250px;
float: left;
overflow: auto;
}
.MainTopDIV {
position: absolute;
left: 265px;
top: 85px;
background-color: #EEEEEE;
height: 130px;
float: left;
overflow: auto;
}
.MainContentDIV {
position: absolute;
bottom: 30px;
left: 265px;
top: 240px;
background-color: #EEEEEE;
float: left;
overflow: auto;
}
.BottomDIV {
position: fixed;
bottom: 0px;
left: 10px;
height: 30px;
background-color: #BCCE98;
clear: both;
text-align: center;
overflow: auto;
}
h2 {
margin-bottom: 2;
font-size: 18px;
}
li {
font-size: 15px;
}
.customers {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
width: 100%;
border-collapse: collapse;
}
.customers td, .customers th {
font-size: 1em;
border: 1px solid #98bf21;
padding: 3px 7px 2px 7px;
text-align: center;
}
.customers th {
font-size: 1em;
border: 1px solid #98bf21;
padding: 3px 7px 2px 7px;
text-align: center;
background-color: #98bf21;
color: #ffffff;
}
.customers td.right {
text-align: right;
width: 20%
}
.customers td.left {
text-align: left;
width: 80%
}
.StandardWidth {
width: 500px;
box-sizing: border-box;
}
</style>
<script src="/js/CA/xtxasyn.js"></script>"
<link rel="stylesheet" href="/lib/layui/css/layui.css">
<script src="/lib/layui/layui.js"></script>
<script src="/js/CA/xtxasyn.js"></script>
"
</head>
<script>
////////////////////////////////////// 页面布局本身的JS脚本开始 ///////////////////////////////////
@ -72,6 +157,7 @@
}
return;
}
function SetDIVPostion() {
//Top的宽度是整个页面的宽度
var objTopDiv = document.getElementById("Top");
@ -102,29 +188,34 @@
objBottomDiv.style.width = document.body.clientWidth - 10;
}
}
function select_cert(value) {
form_xtx.id_selected_cert_id.value = value;
}
function select_device(value) {
form_xtx.id_selected_device_sn.value = value;
}
</script>
<body onresize="SetDIVPostion();" onLoad="SetDIVPostion(); showSelectDiv('div_app_setuserconfig');">
<form id="form_xtx" name="form_xtx" >
<form id="form_xtx" name="form_xtx">
<!-- 页头部 -->
<div id="Top" class="TopDIV">
<br />
<br/>
<b><font size="6" color="#0000FF">ukey登录</font></b>
<br /> <br />
<br/> <br/>
</div>
<!-- 菜单 -->
<div id="Menu" class="MenuDIV">
<!-- <h4>应用接口测试</h4>-->
<!-- <h4>应用接口测试</h4>-->
<ul>
<li><A href="javascript:onClick=showSelectDiv('div_app_setuserconfig')" id='id_div_app_setuserconfig'>证书参数</A></li>
<li><A href="javascript:onClick=showSelectDiv('div_app_export_cert')" id='id_div_app_export_cert'>导出证书</A></li>
<li><A href="javascript:onClick=showSelectDiv('div_app_setuserconfig')"
id='id_div_app_setuserconfig'>证书参数</A></li>
<li><A href="javascript:onClick=showSelectDiv('div_app_export_cert')" id='id_div_app_export_cert'>导出证书</A>
</li>
<li><A href="javascript:onClick=showSelectDiv('div_app_login_out')" id='id_div_app_login_out'>登录登出</A></li>
<li><A href="javascript:onClick=showSelectDiv('div_app_change_pin')" id='id_div_app_change_pin'>修改密码</A></li>
<li><A href="javascript:onClick=showSelectDiv('div_app_change_pin')" id='id_div_app_change_pin'>修改密码</A>
</li>
<li><A href="/login.jsp" id='id_div_app_change_pin2'>返回登录</A></li>
</ul>
</div>
@ -132,46 +223,48 @@
<div id="MainTop" class="MainTopDIV">
<table class="customers">
<tr>
<td class="right"> 组件版本号: </td>
<td class="right"> 组件版本号:</td>
<td class="left">
<input type="text" class="StandardWidth" id="id_xtx_version" readonly="readonly">
</td>
</tr>
<tr>
<td class="right"> 请选择证书: </td>
<td class="right"> 请选择证书:</td>
<td class="left">
<select class="StandardWidth" id="id_cert_list" method= "post" onchange="select_cert(this.value)" enctype="multipart/form-data" action="submit">
<select class="StandardWidth" id="id_cert_list" method="post" onchange="select_cert(this.value)"
enctype="multipart/form-data" action="submit">
</select>
</td>
</tr>
<tr>
<td class="right"> 选择的证书ID: </td>
<td class="right"> 选择的证书ID:</td>
<td class="left">
<input type="text" class="StandardWidth" method= "post" id="id_selected_cert_id" name="certid" enctype="multipart/form-data">
<input type="text" class="StandardWidth layui-input" method="post" id="id_selected_cert_id"
name="certid" enctype="multipart/form-data">
</td>
</tr>
<tr>
<td class="right"> 选择设备序列号: </td>
<td class="right"> 选择设备序列号:</td>
<td class="left">
<select class="StandardWidth" id="id_device_list" onchange="select_device(this.value)">
</select>
</td>
</tr>
<tr>
<td class="right"> 设备序列号: </td>
<td class="right"> 设备序列号:</td>
<td class="left">
<input type="text" class="StandardWidth" id="id_selected_device_sn">
</td>
</tr>
<button type="button" id="key_login">选择完毕</button>
<script>
document.addEventListener("DOMContentLoaded", function() {
document.addEventListener("DOMContentLoaded", function () {
// 获取按钮元素
const button = document.getElementById("key_login"); // 替换成你实际的按钮ID
// 监听按钮的点击事件
button.addEventListener("click", function() {
button.addEventListener("click", function () {
// 获取两个input框的值
//var certListValue = document.getElementById("id_cert_list").value;
var selectedCertIdValue = document.getElementById("id_selected_cert_id").value;
@ -202,15 +295,17 @@
form_xtx.id_set_userconfig_param.value = '';
return;
}
function test_SOF_GetSignMethod() {
SOF_GetSignMethod(function(retObj) {
SOF_GetSignMethod(function (retObj) {
var algor = Number(retObj.retVal);
form_xtx.id_get_sign_method_res.value = "0x" + algor.toString(16);
});
}
function test_SOF_SetSignMethod() {
var algor = parseInt(form_xtx.id_set_sign_method_algor.value);
SOF_SetSignMethod(algor, function(retObj) {
SOF_SetSignMethod(algor, function (retObj) {
if (retObj.retVal == 0) {
alert("设置签名算法成功");
} else {
@ -218,16 +313,18 @@
}
});
}
function test_SOF_GetEncryptMethod() {
SOF_GetEncryptMethod(function(retObj) {
SOF_GetEncryptMethod(function (retObj) {
var algor = Number(retObj.retVal);
form_xtx.id_get_encrypt_method_res.value = "0x" + algor.toString(16);
//form_xtx.id_get_encrypt_method_res.value = retObj.retVal;
});
}
function test_SOF_SetEncryptMethod() {
var algor = parseInt(form_xtx.id_set_encrypt_method_algor.value);
SOF_SetEncryptMethod(algor, function(retObj) {
SOF_SetEncryptMethod(algor, function (retObj) {
if (retObj.retVal == 0) {
alert("设置加密算法成功");
} else {
@ -235,10 +332,11 @@
}
});
}
function test_SetUserConfig() {
var type = parseInt(form_xtx.id_set_userconfig_type.value);
var value = form_xtx.id_set_userconfig_param.value;
SetUserConfig(type, value, function(retObj) {
SetUserConfig(type, value, function (retObj) {
if (retObj.retVal) {
alert("SetUserConfig成功");
} else {
@ -259,11 +357,13 @@
form_xtx.id_export_exchange_user_cert_res.value = '';
return;
}
function test_SOF_GetUserList() {
SOF_GetUserList(function(retObj){
SOF_GetUserList(function (retObj) {
form_xtx.id_get_user_list_res.value = retObj.retVal;
});
}
function getSelectCertID() {
if (form_xtx.id_selected_cert_id.value == "") {
alert("请选择证书");
@ -273,21 +373,23 @@
return form_xtx.id_selected_cert_id.value;
}
function test_SOF_ExportUserCert() {
var certId = getSelectCertID();
if (certId == "") {
return;
}
SOF_ExportUserCert(certId, function(retObj) {
SOF_ExportUserCert(certId, function (retObj) {
form_xtx.id_export_user_cert_res.value = retObj.retVal;
});
}
function test_SOF_ExportExChangeUserCert() {
var certId = getSelectCertID();
if (certId == "") {
return;
}
SOF_ExportExChangeUserCert(certId, function(retObj) {
SOF_ExportExChangeUserCert(certId, function (retObj) {
form_xtx.id_export_exchange_user_cert_res.value = retObj.retVal;
});
}
@ -299,21 +401,21 @@
</th>
</tr>
<tr>
<td class="right"> 证书ID列表: </td>
<td class="right"> 证书ID列表:</td>
<td class="left">
<textarea class="StandardWidth" id="id_get_user_list_res" rows="3"></textarea>&nbsp;&nbsp;
<input type="button" value="获取证书列表" onclick="return test_SOF_GetUserList()">
</td>
</tr>
<tr>
<td class="right"> 签名证书: </td>
<td class="right"> 签名证书:</td>
<td class="left">
<textarea class="StandardWidth" id="id_export_user_cert_res" rows="5"></textarea>&nbsp;&nbsp;
<input type="button" value="导出签名证书" onclick="return test_SOF_ExportUserCert()">
</td>
</tr>
<tr>
<td class="right"> 加密证书: </td>
<td class="right"> 加密证书:</td>
<td class="left">
<textarea class="StandardWidth" id="id_export_exchange_user_cert_res" rows="5"></textarea>&nbsp;&nbsp;
<input type="button" value="导出加密证书" onclick="return test_SOF_ExportExChangeUserCert()">
@ -332,13 +434,14 @@
form_xtx.id_form_login_passwd.value = '';
form_xtx.id_form_login_res.value = '';
}
//异步调用sof_login回调函数
function test_login_callback(retObj) {
var certId = retObj.ctx.certId;
if (retObj.retVal) { //retObj.retVal表示sof_login结果true或false
//form_xtx.id_login_out_res.value = "证书登录成功";
form_xtx.id_login_out_res.value = "证书[" + certId + "]登录成功";
window.location.href = "/index.jsp";
form_xtx.id_login_out_res.value = "证书[" + certId + "]登录成功";
// window.location.href = "/index.jsp";
// let value = document.getElementById("id_login_out_res").value;
// // 将值传到后端(这里假设使用Ajax发送请求)
@ -347,11 +450,10 @@
// xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
// xhr.send("value=" + encodeURIComponent(value));
// 获取按钮元素
}
else {
} else {
form_xtx.id_login_out_res.value = "证书[" + certId + "]登录失败";
//当登录失败时调用SOF_GetLastError取错误码errcode为79时表示pin码复杂度不符合
SOF_GetLastError(function(retObj) {
SOF_GetLastError(function (retObj) {
var err = retObj.retVal;
if (err == 79) {
alert("请核对pin码复杂度是否符合要求!");
@ -362,13 +464,50 @@
alert(str_waring);
// 此处无论登录成功失败都调用了获取重试次数
// 实际情况可能仅在登录失败时获取一下重试次数做个提醒
SOF_GetPinRetryCount(certId, function(retObj) {
SOF_GetPinRetryCount(certId, function (retObj) {
var certId = retObj.ctx.certId;
form_xtx.id_login_out_retry.value = "证书[" + certId + "]重试次数剩余:" + retObj.retVal + "次...";
}, retObj.ctx);
}
// xhr模拟请求工具
function makePostRequest(url, data, callback) {
var xhr = new XMLHttpRequest();
xhr.open("POST", url, true);
xhr.setRequestHeader("Content-Type", "application/json");
xhr.onreadystatechange = function() {
if (xhr.readyState === XMLHttpRequest.DONE) {
if (xhr.status === 200) {
callback(null, xhr.responseText);
} else {
callback(new Error('Post request failed'));
}
}
};
xhr.send(data);
}
function test_SOF_IsLogin() {
const certId = getSelectCertID();
if (certId == "") {
return;
}
SOF_IsLogin(certId, function (retObj) {
const certId = retObj.ctx.certId;
if (retObj.retVal) {
form_xtx.id_islogin_res.value = "证书[" + certId + "]已登录...";
} else {
form_xtx.id_islogin_res.value = "证书[" + certId + "]未登录!!!";
}
}, {certId: certId});
}
// 登录
function test_SOF_Login() {
var certId = getSelectCertID();
const certId = getSelectCertID();
if (certId == "") {
return;
}
@ -380,21 +519,56 @@
}
var time_begin = new Date();
if (form_xtx.id_login_with_cssupdate.checked) { //当勾选时进行证书更新
SOF_Login(certId, passwd, test_login_callback, {begin:time_begin, certId:certId});
SOF_Login(certId, passwd, test_login_callback, {begin: time_begin, certId: certId});
alert("证书正在更新");
//默认进行证书更新
} else {
var platform = navigator.platform.toLowerCase();
if (platform.indexOf("win") != -1){
const platform = navigator.platform.toLowerCase();
if (platform.indexOf("win") != -1) {
//SOF_LoginEx第3个参数:登录成功后是否通过CSS控件进行证书更新操作1表示进行证书更新0表示不进行证书更新。
SOF_LoginEx(certId, passwd, 0, test_login_callback, {begin:time_begin, certId:certId});
}
else {
SOF_Login(certId, passwd, test_login_callback, {begin:time_begin, certId:certId});
SOF_LoginEx(certId, passwd, 0, test_login_callback, {begin: time_begin, certId: certId});
} else {
SOF_Login(certId, passwd, test_login_callback, {begin: time_begin, certId: certId});
}
}
}
function testAndMakePostRequest() {
const certId = getSelectCertID();
if (certId == "") {
return;
}
// SOF_IsLogin(certId, function(retObj) {
// if (retObj.retVal) {
// makePostRequest('/keylogin', certId, function(err, response) {
// if (err) {
// console.error('Error:', err);
// } else {
// console.log('Response:', response);
// // 处理响应数据
// }
// });
// } else {
// // 进行其他处理,如重新登录等
// alert('User is not logged in');
// }
// }, {certId: certId});
}
document.addEventListener("DOMContentLoaded", function() {
const loginButton = document.getElementById('loginButton');
if (loginButton) {
loginButton.addEventListener('click', testAndMakePostRequest);
}
});
// 注销登录
function test_SOF_Logout() {
var certId = form_xtx.id_selected_cert_id.value;
if (form_xtx.id_logout_certid_all.checked) {
@ -406,14 +580,16 @@
} else {
strMsg = "全部";
}
SOF_Logout(certId, function(retObj) {
SOF_Logout(certId, function (retObj) {
if (retObj.retVal) {
form_xtx.id_login_out_res.value = "证书[" + retObj.ctx.msgCertId + "]登出成功...";
} else {
form_xtx.id_login_out_res.value = "证书[" + retObj.ctx.msgCertId + "]登出失败!!!";
}
}, {msgCertId:strMsg});
}, {msgCertId: strMsg});
}
function logout_all_click(id) {
if (id == 'id_logout_certid_cur') {
form_xtx.id_logout_certid_cur.checked = true;
@ -423,39 +599,32 @@
form_xtx.id_logout_certid_all.checked = true;
}
}
function test_SOF_IsLogin() {
var certId = getSelectCertID();
if (certId == "") {
return;
}
SOF_IsLogin(certId, function(retObj) {
var certId = retObj.ctx.certId;
if (retObj.retVal) {
form_xtx.id_islogin_res.value = "证书[" + certId + "]已登录...";
} else {
form_xtx.id_islogin_res.value = "证书[" + certId + "]未登录!!!";
}
}, {certId:certId});
}
function test_SOF_GetPinRetryCount() {
var certId = getSelectCertID();
if (certId == "") {
return;
}
SOF_GetPinRetryCount(certId, function(retObj) {
SOF_GetPinRetryCount(certId, function (retObj) {
form_xtx.id_login_out_retry.value = "证书[" + certId + "]重试次数剩余:" + retObj.retVal + "次...";
});
}
var strServerSignedData = "FUy74vw8FOnzJl4MEKheNqPrOv2U/8/Wgrs2hxsV8AawIu7eKEboBNhLY+uzuYPKRhItrY+UkbRaUB2CVoi87owFn3FhitlTp4YbpBpqxdeddtvC/pMGVND4NQcbEw+qqIRq6L3kI5/ZGicz+DhehQC1oWNMWMe/h1hAPjzZXDE=";
var strServerRan = "CV3w40tGbz/E6xdEy4h2+gjcLXONfBWM";
var strServerCert = "MIIE+DCCA+CgAwIBAgIKGzAAAAAAAFlKWzANBgkqhkiG9w0BAQUFADBSMQswCQYDVQQGEwJDTjENMAsGA1UECgwEQkpDQTEYMBYGA1UECwwPUHVibGljIFRydXN0IENBMRowGAYDVQQDDBFQdWJsaWMgVHJ1c3QgQ0EtMTAeFw0yMDA1MjUxNjAwMDBaFw0yMTA2MjUxNTU5NTlaMEsxCzAJBgNVBAYTAkNOMRIwEAYDVQQDDAnotbXmsLjnnIExKDAmBgkqhkiG9w0BCQEWGXpoYW95b25nc2hlbmdAYmpjYS5vcmcuY24wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALgaT9lsB6duKSsmVbhotgAB2nsTZMKPLPBdLO+Nchvcj7C0ZrePd/m0KzbXWpwk0ZOTa6XsUmGZhHo4FUZr5i9a1GblX3UAY/cu1cIk02IvvoCL/Dh7GAH9eCZAlyXLKhUB1wspBpPkGwIiB5l0f2/ds6C8sR3NOojG3Sx2i9xrAgMBAAGjggJZMIICVTAfBgNVHSMEGDAWgBSsO+yvDKNQDu+vr7RPbDvb0VfSiTAdBgNVHQ4EFgQUWsU79eTB2d2qdLouBzQn7WbBNdowCwYDVR0PBAQDAgbAMIGvBgNVHR8EgacwgaQwbaBroGmkZzBlMQswCQYDVQQGEwJDTjENMAsGA1UECgwEQkpDQTEYMBYGA1UECwwPUHVibGljIFRydXN0IENBMRowGAYDVQQDDBFQdWJsaWMgVHJ1c3QgQ0EtMTERMA8GA1UEAxMIY2EzY3JsMzAwM6AxoC+GLWh0dHA6Ly9sZGFwLmJqY2Eub3JnLmNuL2NybC9wdGNhL2NhM2NybDMwLmNybDAJBgNVHRMEAjAAMBEGCWCGSAGG+EIBAQQEAwIA/zAdBgUqVgsHAQQUU0YzNzI1MjYxOTgyMTIwMjY2NzkwHQYFKlYLBwgEFFNGMzcyNTI2MTk4MjEyMDI2Njc5MCAGCGCGSAGG+EQCBBRTRjM3MjUyNjE5ODIxMjAyNjY3OTAbBggqVoZIAYEwAQQPMTAyMDgwMDA2OTAzMzAwMCUGCiqBHIbvMgIBBAEEFzhDQFNGMzcyNTI2MTk4MjEyMDI2Njc5MCoGC2CGSAFlAwIBMAkKBBtodHRwOi8vYmpjYS5vcmcuY24vYmpjYS5jcnQwDwYFKlYVAQEEBjEwMDA4MDBABgNVHSAEOTA3MDUGCSqBHIbvMgICATAoMCYGCCsGAQUFBwIBFhpodHRwOi8vd3d3LmJqY2Eub3JnLmNuL2NwczATBgoqgRyG7zICAQEeBAUMAzUyMDANBgkqhkiG9w0BAQUFAAOCAQEAaFIE1vKWRqZudqnTPuY/QRYo8R1itRg5OIDcQ51AKBtaxqcMCzXqZwP/zMU36fOT96tCbeIte6jFeJaM3J3Zp5gFZcP4TKxLnQ/FGRMQaKyrJ0Lvi7zNfk48iQzKjKmRAn8XOajA195kX5tJ2YMNamAYVmMgtRrK5YcHg7P9SZC9bqT3IYxAoebQcv666l8nyNQyWnP8pvbPNOvs6xZZzyXMPaHvQK8vV1kSm1VIqazQNvPWRNoE0CETS3g2jwmW4O34/jzrMbG0sXQToDEOkYZVSLCT70RnGrKzJ/F3hsy4G2yPY7B0jRkCzVO1+tSzN7iMDUC/SM7B9Jhl9jCzVQ==";
function test_FormLogin() {
var certId = getSelectCertID();
if (certId == "") {
return;
}
var passwd = form_xtx.id_form_login_passwd.value;
Login("form_xtx", certId, passwd, "", function(ret) {
Login("form_xtx", certId, passwd, "", function (ret) {
if (ret) {
form_xtx.id_form_login_res.value = "表单登录成功...";
} else {
@ -472,32 +641,36 @@
</th>
</tr>
<tr>
<td class="right"> 密码: </td>
<td class="right"> 密码:</td>
<td class="left">
<input type="password" class="StandardWidth" id="id_login_passwd">&nbsp;&nbsp;
<!-- <input type="button" value="登录" onclick="sendResultToBackend()">-->
<!-- <input type="button" value="登录" onclick="sendResultToBackend()">-->
<input type="button" value="登录" onclick="return test_SOF_Login()">
<button id="loginButton">登录并发送请求</button>
<input type="checkbox" id="id_login_with_cssupdate">是否通过CSS更新证书
</td>
</tr>
<tr>
<td class="right"> 登录结果: </td>
<td class="right"> 登录结果:</td>
<td class="left">
<input type="text" class="StandardWidth" name="id_login_out_res">
<input type="button" value="登出" onclick="return test_SOF_Logout()">
<input type="checkbox" name="name_logout_all" id="id_logout_certid_cur" onclick="logout_all_click('id_logout_certid_cur');" checked=true />登出当前证书
<input type="checkbox" name="name_logout_all" id="id_logout_certid_all" onclick="logout_all_click('id_logout_certid_all');" />登出全部证书
<input type="checkbox" name="name_logout_all" id="id_logout_certid_cur"
onclick="logout_all_click('id_logout_certid_cur');" checked=true/>登出当前证书
<input type="checkbox" name="name_logout_all" id="id_logout_certid_all"
onclick="logout_all_click('id_logout_certid_all');"/>登出全部证书
</td>
</tr>
<tr>
<td class="right"> 检查是否登录的结果: </td>
<td class="right"> 检查是否登录的结果:</td>
<td class="left">
<input type="text" class="StandardWidth" name="id_islogin_res">&nbsp;&nbsp;
<input type="button" value="检查是否登录" onclick="return test_SOF_IsLogin()">
</td>
</tr>
<tr>
<td class="right"> 密码重试次数: </td>
<td class="right"> 密码重试次数:</td>
<td class="left">
<input type="text" class="StandardWidth" name="id_login_out_retry">&nbsp;&nbsp;
<input type="button" value="获取密码重试次数" onclick="return test_SOF_GetPinRetryCount()">
@ -515,8 +688,8 @@
form_xtx.id_change_user_passwd_res.value = '';
form_xtx.id_change_user_passwd_retry.value = '';
}
function test_SOF_ChangePassWd()
{
function test_SOF_ChangePassWd() {
var certId = getSelectCertID();
if (certId == "") {
return;
@ -544,7 +717,7 @@
form_xtx.id_change_user_passwd_new_2.focus();
return;
}
SOF_ChangePassWd(certId, oldpin, newpin1, function(retObj) {
SOF_ChangePassWd(certId, oldpin, newpin1, function (retObj) {
if (retObj.retVal) {
form_xtx.id_change_user_passwd_res.value = "修改证书密码成功";
} else {
@ -554,17 +727,17 @@
// 此处无论修改密码成功失败都调用了获取重试次数
// 实际情况可能仅在修改失败时获取一下重试次数做个提醒
SOF_GetPinRetryCount(certId, function(retObj) {
SOF_GetPinRetryCount(certId, function (retObj) {
form_xtx.id_change_user_passwd_retry.value = "证书[" + certId + "]重试次数剩余:" + retObj.retVal + "次...";
});
}
function test_SOF_GetRetryCount()
{
function test_SOF_GetRetryCount() {
var certId = getSelectCertID();
if (certId == "") {
return;
}
SOF_GetPinRetryCount(certId, function(retObj) {
SOF_GetPinRetryCount(certId, function (retObj) {
form_xtx.id_change_user_passwd_retry.value = "证书[" + certId + "]重试次数剩余:" + retObj.retVal + "次...";
});
}
@ -576,32 +749,32 @@
</th>
</tr>
<tr>
<td class="right"> 原密码: </td>
<td class="right"> 原密码:</td>
<td class="left">
<input type="password" class="StandardWidth" id="id_change_user_passwd_old">
</td>
</tr>
<tr>
<td class="right"> 新密码: </td>
<td class="right"> 新密码:</td>
<td class="left">
<input type="password" class="StandardWidth" id="id_change_user_passwd_new_1">
</td>
</tr>
<tr>
<td class="right"> 新密码确认: </td>
<td class="right"> 新密码确认:</td>
<td class="left">
<input type="password" class="StandardWidth" id="id_change_user_passwd_new_2">&nbsp;&nbsp;
<input type="button" value="修改密码" onclick="return test_SOF_ChangePassWd()">
</td>
</tr>
<tr>
<td class="right"> 修改结果: </td>
<td class="right"> 修改结果:</td>
<td class="left">
<input type="text" class="StandardWidth" id="id_change_user_passwd_res">
</td>
</tr>
<tr>
<td class="right"> 密码重试次数: </td>
<td class="right"> 密码重试次数:</td>
<td class="left">
<input type="text" class="StandardWidth" id="id_change_user_passwd_retry">&nbsp;&nbsp;
<input type="button" value="获取密码重试次数" onclick="return test_SOF_GetRetryCount()">
@ -627,7 +800,7 @@
}
function FillDeviceList() {
GetAllDeviceSN(function(retObj){
GetAllDeviceSN(function (retObj) {
var obj = document.getElementById("id_device_list");
if (obj == undefined) {
return;
@ -640,7 +813,7 @@
var strDeviceList = retObj.retVal;
while (true) {
var pos = strDeviceList.indexOf(";");
if (pos <= 0 ) {
if (pos <= 0) {
break;
}
var strOneDevice = strDeviceList.substring(0, pos);
@ -655,10 +828,11 @@
}
function test_SOF_GetVersion() {
SOF_GetVersion(function(retObj) {
SOF_GetVersion(function (retObj) {
form_xtx.id_xtx_version.value = retObj.retVal;
});
}
test_SOF_GetVersion();
SetUserCertList("id_cert_list");
FillDeviceList();

@ -10,7 +10,7 @@ import java.security.Key;
@WebServlet("/keylogin")
public class KeyLoginServlet extends HttpServlet{
private static String formData;
public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException {
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
// 从请求中获取表单信息
BufferedReader reader = request.getReader();
StringBuilder sb = new StringBuilder();

@ -383,6 +383,11 @@ public class Login {
//比较口令是否校验成功
if (encrypt_optr_password(emppwd).equals(this.emppwd) && certid.equals(this.certid)) {
//判断口令是否过期
if (empstate.equals("")){
para_out.fchg("CHECKTAG", 0, "00005");
para_out.fchg("ERRORINFO", 0, "您需要进行UKEY验证!");
return -1;
}
if (empstate.equals("0")) {
para_out.fchg("CHECKTAG", 0, "00004");
para_out.fchg("ERRORINFO", 0, "您的用户账号已经过期!");

@ -1,11 +1,9 @@
package com.zky.manager;
import java.io.BufferedReader;
import java.io.IOException;
import java.net.URLEncoder;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.*;
import org.apache.log4j.Logger;
@ -16,7 +14,7 @@ import com.zky.util.jdbc.HashFmlBufResultSetHandler;
import java.sql.*;
/**
* @author dy
* @author luoluo
* servlet
*/
public class LoginServlet extends HttpServlet {
@ -99,14 +97,13 @@ public class LoginServlet extends HttpServlet {
for (Cookie cookie : cookies) {
if (cookie.getName().equals("formData")){
//System.out.println(cookie.getName()+ ": " + cookie.getValue());
//System.out.println(cookie.getName()+ ": " + cookie.getValue());
certid = cookie.getValue();
cookie.setMaxAge(10);
}
}
try {
login_obj.checkOptrid(empid, para_out);
ls_checktag = para_out.fget("CHECKTAG", 0);
@ -117,7 +114,7 @@ public class LoginServlet extends HttpServlet {
// 调用方法验证口令
para_out.finit();
login_obj.checkPwd(emppwd, certid, para_out);
if (para_out.fget("CHECKTAG", 0).equals("00000")) {
if ((!certid.equals(""))&&para_out.fget("CHECKTAG", 0).equals("00000")) {
// 口令验证通过
// 判断部门个数,如果有多个工作部门,则转到部门选择页面,用户需要选择一个部门。

@ -162,18 +162,6 @@
<url-pattern>/servlet/loginServlet</url-pattern>
</servlet-mapping>
<!-- <servlet>-->
<!-- <servlet-name>KeyLoginServlet</servlet-name>-->
<!-- <servlet-class>com.zky.certlogin.KeyLoginServlet</servlet-class>-->
<!-- </servlet>-->
<!-- <servlet-mapping>-->
<!-- <servlet-name>KeyLoginServlet</servlet-name>-->
<!-- <url-pattern>/servlet/KeyLoginServlet</url-pattern>-->
<!-- </servlet-mapping>-->
<servlet>
<servlet-name>SelectParaServlet</servlet-name>
<servlet-class>com.zky.sspd.para.SelectParaServlet</servlet-class>

@ -7776,3 +7776,389 @@ Caused by: java.net.SocketTimeoutException: connect timed out
at cn.org.bjca.framework.socket.client.impl.socket.DefaultBSocket.open(DefaultBSocket.java:138)
... 61 more
INFO [2023-12-28 09:39:20 208] 10.10.3.2_8000ÎÞЧconnect timed out
INFO [2023-12-28 09:39:22 261] 10.10.3.2_8000ÎÞЧconnect timed out
INFO [2023-12-28 09:39:22 296] Connection error! Please check network connections or client config!
INFO [2023-12-28 09:39:22 296] java.lang.RuntimeException: There is no any instance of Remote Service, please check Server or Client config !
at cn.org.bjca.framework.socket.client.impl.loadbalance.DefaultHostSelector.select(DefaultHostSelector.java:69)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.selectInstance(NioClientImpl.java:303)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:366)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:357)
at cn.org.bjca.hsm.client.manager.MsgManager.sendAndReceiveMsg(MsgManager.java:43)
at cn.org.bjca.hsm.client.security.sdf.SDFDefaultSecurityEngine.getActiveThreadNum(SDFDefaultSecurityEngine.java:39)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_getInstance(SDFSecurityEngineDeal.java:116)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_OpenDevice(SDFSecurityEngineDeal.java:134)
at cn.org.bjca.chaos.jce.provider.BJCAJCEProvider.<init>(BJCAJCEProvider.java:175)
at com.zky.bjca.SM4.SM4Decrypt(SM4.java:113)
at org.apache.jsp.zhyw.wxs.indentureManage_jsp._jspService(indentureManage_jsp.java:519)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
at com.zky.zhyw.wxs.IndentureManageServlet.queryIndenture(IndentureManageServlet.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zky.pub.DispatchServlet.doPost(DispatchServlet.java:39)
at com.zky.pub.DispatchServlet.doGet(DispatchServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.pub.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.util.CharFilter.doFilter(CharFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)
INFO [2023-12-28 09:39:22 307] Connection error! Please check network connections or client config!
INFO [2023-12-28 09:39:22 307] java.lang.RuntimeException: There is no any instance of Remote Service, please check Server or Client config !
at cn.org.bjca.framework.socket.client.impl.loadbalance.DefaultHostSelector.select(DefaultHostSelector.java:69)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.selectInstance(NioClientImpl.java:303)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:366)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:357)
at cn.org.bjca.hsm.client.manager.MsgManager.sendAndReceiveMsg(MsgManager.java:43)
at cn.org.bjca.hsm.client.security.sdf.SDFDefaultSecurityEngine.getActiveThreadNum(SDFDefaultSecurityEngine.java:39)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_getInstance(SDFSecurityEngineDeal.java:116)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_OpenDevice(SDFSecurityEngineDeal.java:134)
at cn.org.bjca.chaos.jce.provider.BJCAJCEProvider.<init>(BJCAJCEProvider.java:175)
at com.zky.bjca.SM4.SM4Decrypt(SM4.java:113)
at org.apache.jsp.zhyw.wxs.indentureManage_jsp._jspService(indentureManage_jsp.java:519)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
at com.zky.zhyw.wxs.IndentureManageServlet.queryIndenture(IndentureManageServlet.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zky.pub.DispatchServlet.doPost(DispatchServlet.java:39)
at com.zky.pub.DispatchServlet.doGet(DispatchServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.pub.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.util.CharFilter.doFilter(CharFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)
INFO [2023-12-28 09:39:46 21] Connection error! Please check network connections or client config!
INFO [2023-12-28 09:39:46 24] java.lang.RuntimeException: There is no any instance of Remote Service, please check Server or Client config !
at cn.org.bjca.framework.socket.client.impl.loadbalance.DefaultHostSelector.select(DefaultHostSelector.java:69)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.selectInstance(NioClientImpl.java:303)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:366)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:357)
at cn.org.bjca.hsm.client.manager.MsgManager.sendAndReceiveMsg(MsgManager.java:43)
at cn.org.bjca.hsm.client.security.sdf.SDFDefaultSecurityEngine.getActiveThreadNum(SDFDefaultSecurityEngine.java:39)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_getInstance(SDFSecurityEngineDeal.java:116)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_OpenDevice(SDFSecurityEngineDeal.java:134)
at cn.org.bjca.chaos.jce.provider.BJCAJCEProvider.<init>(BJCAJCEProvider.java:175)
at com.zky.bjca.SM4.SM4Decrypt(SM4.java:113)
at org.apache.jsp.zhyw.wxs.showIndenture_jsp._jspService(showIndenture_jsp.java:353)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
at com.zky.zhyw.wxs.IndentureManageServlet.showIndenture(IndentureManageServlet.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zky.pub.DispatchServlet.doPost(DispatchServlet.java:39)
at com.zky.pub.DispatchServlet.doGet(DispatchServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.pub.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.util.CharFilter.doFilter(CharFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)
INFO [2023-12-28 09:39:59 70] Connection error! Please check network connections or client config!
INFO [2023-12-28 09:39:59 71] java.lang.RuntimeException: There is no any instance of Remote Service, please check Server or Client config !
at cn.org.bjca.framework.socket.client.impl.loadbalance.DefaultHostSelector.select(DefaultHostSelector.java:69)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.selectInstance(NioClientImpl.java:303)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:366)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:357)
at cn.org.bjca.hsm.client.manager.MsgManager.sendAndReceiveMsg(MsgManager.java:43)
at cn.org.bjca.hsm.client.security.sdf.SDFDefaultSecurityEngine.getActiveThreadNum(SDFDefaultSecurityEngine.java:39)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_getInstance(SDFSecurityEngineDeal.java:116)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_OpenDevice(SDFSecurityEngineDeal.java:134)
at cn.org.bjca.chaos.jce.provider.BJCAJCEProvider.<init>(BJCAJCEProvider.java:175)
at com.zky.bjca.SM4.SM4Decrypt(SM4.java:113)
at org.apache.jsp.zhyw.wxs.showIndenture_jsp._jspService(showIndenture_jsp.java:353)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
at com.zky.zhyw.wxs.IndentureManageServlet.showIndenture(IndentureManageServlet.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zky.pub.DispatchServlet.doPost(DispatchServlet.java:39)
at com.zky.pub.DispatchServlet.doGet(DispatchServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.pub.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.util.CharFilter.doFilter(CharFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)
INFO [2023-12-28 09:49:50 660] Connection error! Please check network connections or client config!
INFO [2023-12-28 09:49:50 660] java.lang.RuntimeException: There is no any instance of Remote Service, please check Server or Client config !
at cn.org.bjca.framework.socket.client.impl.loadbalance.DefaultHostSelector.select(DefaultHostSelector.java:69)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.selectInstance(NioClientImpl.java:303)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:366)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:357)
at cn.org.bjca.hsm.client.manager.MsgManager.sendAndReceiveMsg(MsgManager.java:43)
at cn.org.bjca.hsm.client.security.sdf.SDFDefaultSecurityEngine.getActiveThreadNum(SDFDefaultSecurityEngine.java:39)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_getInstance(SDFSecurityEngineDeal.java:116)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_OpenDevice(SDFSecurityEngineDeal.java:134)
at cn.org.bjca.chaos.jce.provider.BJCAJCEProvider.<init>(BJCAJCEProvider.java:175)
at com.zky.bjca.SM4.SM4Decrypt(SM4.java:113)
at org.apache.jsp.zhyw.smjc.CheckNotifyManage_jsp._jspService(CheckNotifyManage_jsp.java:553)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
at com.zky.zhyw.smjc.CheckManageServlet.queryCheckNotify(CheckManageServlet.java:623)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zky.pub.DispatchServlet.doPost(DispatchServlet.java:39)
at com.zky.pub.DispatchServlet.doGet(DispatchServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.pub.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.util.CharFilter.doFilter(CharFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)
INFO [2023-12-28 09:50:15 930] Connection error! Please check network connections or client config!
INFO [2023-12-28 09:50:15 931] java.lang.RuntimeException: There is no any instance of Remote Service, please check Server or Client config !
at cn.org.bjca.framework.socket.client.impl.loadbalance.DefaultHostSelector.select(DefaultHostSelector.java:69)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.selectInstance(NioClientImpl.java:303)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:366)
at cn.org.bjca.framework.socket.client.impl.NioClientImpl.send(NioClientImpl.java:357)
at cn.org.bjca.hsm.client.manager.MsgManager.sendAndReceiveMsg(MsgManager.java:43)
at cn.org.bjca.hsm.client.security.sdf.SDFDefaultSecurityEngine.getActiveThreadNum(SDFDefaultSecurityEngine.java:39)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_getInstance(SDFSecurityEngineDeal.java:116)
at cn.org.bjca.hsm.client.security.sdf.SDFSecurityEngineDeal.SDF_OpenDevice(SDFSecurityEngineDeal.java:134)
at cn.org.bjca.chaos.jce.provider.BJCAJCEProvider.<init>(BJCAJCEProvider.java:175)
at com.zky.bjca.SM4.SM4Decrypt(SM4.java:113)
at org.apache.jsp.zhyw.smsb.sbdj.propertyUseManage_jsp._jspService(propertyUseManage_jsp.java:556)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
at com.zky.zhyw.smsb.PropertyUseManageServlet.queryPropertyUsePage(PropertyUseManageServlet.java:894)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zky.pub.DispatchServlet.doPost(DispatchServlet.java:39)
at com.zky.pub.DispatchServlet.doGet(DispatchServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.pub.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.zky.util.CharFilter.doFilter(CharFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)

@ -217,3 +217,25 @@ INFO [2023-12-27 15:21:28 207] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-27 15:21:28 207] BJCA Client Version:2.0 Build20210118
INFO [2023-12-27 15:34:50 997] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-27 15:34:51 174] BJCA Client Version:2.0 Build20210118
INFO [2023-12-28 09:39:18 84] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-28 09:39:22 266] BJCA Client Version:2.0 Build20210118
INFO [2023-12-28 09:39:22 306] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-28 09:39:22 306] BJCA Client Version:2.0 Build20210118
INFO [2023-12-28 09:39:46 17] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-28 09:39:46 20] BJCA Client Version:2.0 Build20210118
INFO [2023-12-28 09:39:59 69] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-28 09:39:59 69] BJCA Client Version:2.0 Build20210118
INFO [2023-12-28 09:49:50 659] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-28 09:49:50 660] BJCA Client Version:2.0 Build20210118
INFO [2023-12-28 09:50:15 930] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-28 09:50:15 930] BJCA Client Version:2.0 Build20210118
INFO [2023-12-29 08:51:35 376] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-29 08:51:35 545] BJCA Client Version:2.0 Build20210118
INFO [2023-12-29 09:09:10 362] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-29 09:09:10 691] BJCA Client Version:2.0 Build20210118
INFO [2024-01-02 09:40:37 374] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2024-01-02 09:40:37 452] BJCA Client Version:2.0 Build20210118
INFO [2024-01-02 09:45:05 766] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2024-01-02 09:45:05 969] BJCA Client Version:2.0 Build20210118
INFO [2024-01-02 14:57:29 110] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2024-01-02 14:57:29 198] BJCA Client Version:2.0 Build20210118

@ -3,7 +3,7 @@
<jsp:useBean id="getPara" scope="application"
class="com.zky.para.SyncPara" />
<html xmlns="http://www.w3.org/1999/xhtml">
<title>甘肃省国家保密辅助业务管理系统</title>
<title>保密辅助业务管理系统</title>
<head id="Head1" runat="server">
<script src="js/Mainext.js" type="text/javascript"></script>
<script src="js/TabControl.js" type="text/javascript"></script>
@ -11,7 +11,7 @@
//加载皮肤文件
loadCss(_skinId, 'Main.css');
function ShowMenu() {
if (tdMenu.style.display == '') {
if (tdMenu.style.display == '') { x
tdMenu.style.display = 'none';
$("tdMenu1").title = $("tdMenu2").title = "显示菜单"
}

@ -3,21 +3,106 @@
<meta charset="UTF-8">
<title>XTXAppCOM异步调用方式</title>
<style type="text/css">
.TopDIV {position:absolute;left:10px;top:10px; height:70px;background-color:#BCCE98;text-align:center;}
.MenuDIV {position:absolute;left:10px;top:85px; background-color:#DAE9BC;width:250px;float:left;overflow:auto;}
.MainTopDIV {position:absolute;left:265px;top:85px; background-color:#EEEEEE;height:130px;float:left;overflow:auto;}
.MainContentDIV {position:absolute;bottom:30px;left:265px;top:240px; background-color:#EEEEEE;float:left;overflow:auto;}
.BottomDIV {position:fixed;bottom:0px;left:10px;height:30px;background-color:#BCCE98;clear:both;text-align:center;overflow:auto;}
h2 {margin-bottom:2;font-size:18px;}
li {font-size:15px;}
.customers {font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; width:100%; border-collapse:collapse;}
.customers td, .customers th {font-size:1em; border:1px solid #98bf21; padding:3px 7px 2px 7px;text-align: center;}
.customers th {font-size:1em; border:1px solid #98bf21; padding:3px 7px 2px 7px;text-align:center; background-color:#98bf21;color:#ffffff;}
.customers td.right {text-align: right;width:20%}
.customers td.left {text-align: left;width:80%}
.StandardWidth {width:500px; box-sizing:border-box;}
.TopDIV {
position: absolute;
left: 10px;
top: 10px;
height: 70px;
background-color: #BCCE98;
text-align: center;
}
.MenuDIV {
position: absolute;
left: 10px;
top: 85px;
background-color: #DAE9BC;
width: 250px;
float: left;
overflow: auto;
}
.MainTopDIV {
position: absolute;
left: 265px;
top: 85px;
background-color: #EEEEEE;
height: 130px;
float: left;
overflow: auto;
}
.MainContentDIV {
position: absolute;
bottom: 30px;
left: 265px;
top: 240px;
background-color: #EEEEEE;
float: left;
overflow: auto;
}
.BottomDIV {
position: fixed;
bottom: 0px;
left: 10px;
height: 30px;
background-color: #BCCE98;
clear: both;
text-align: center;
overflow: auto;
}
h2 {
margin-bottom: 2;
font-size: 18px;
}
li {
font-size: 15px;
}
.customers {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
width: 100%;
border-collapse: collapse;
}
.customers td, .customers th {
font-size: 1em;
border: 1px solid #98bf21;
padding: 3px 7px 2px 7px;
text-align: center;
}
.customers th {
font-size: 1em;
border: 1px solid #98bf21;
padding: 3px 7px 2px 7px;
text-align: center;
background-color: #98bf21;
color: #ffffff;
}
.customers td.right {
text-align: right;
width: 20%
}
.customers td.left {
text-align: left;
width: 80%
}
.StandardWidth {
width: 500px;
box-sizing: border-box;
}
</style>
<script src="/js/CA/xtxasyn.js"></script>"
<link rel="stylesheet" href="/lib/layui/css/layui.css">
<script src="/lib/layui/layui.js"></script>
<script src="/js/CA/xtxasyn.js"></script>
"
</head>
<script>
////////////////////////////////////// 页面布局本身的JS脚本开始 ///////////////////////////////////
@ -72,6 +157,7 @@
}
return;
}
function SetDIVPostion() {
//Top的宽度是整个页面的宽度
var objTopDiv = document.getElementById("Top");
@ -102,29 +188,34 @@
objBottomDiv.style.width = document.body.clientWidth - 10;
}
}
function select_cert(value) {
form_xtx.id_selected_cert_id.value = value;
}
function select_device(value) {
form_xtx.id_selected_device_sn.value = value;
}
</script>
<body onresize="SetDIVPostion();" onLoad="SetDIVPostion(); showSelectDiv('div_app_setuserconfig');">
<form id="form_xtx" name="form_xtx" >
<form id="form_xtx" name="form_xtx">
<!-- 页头部 -->
<div id="Top" class="TopDIV">
<br />
<br/>
<b><font size="6" color="#0000FF">ukey登录</font></b>
<br /> <br />
<br/> <br/>
</div>
<!-- 菜单 -->
<div id="Menu" class="MenuDIV">
<!-- <h4>应用接口测试</h4>-->
<!-- <h4>应用接口测试</h4>-->
<ul>
<li><A href="javascript:onClick=showSelectDiv('div_app_setuserconfig')" id='id_div_app_setuserconfig'>证书参数</A></li>
<li><A href="javascript:onClick=showSelectDiv('div_app_export_cert')" id='id_div_app_export_cert'>导出证书</A></li>
<li><A href="javascript:onClick=showSelectDiv('div_app_setuserconfig')"
id='id_div_app_setuserconfig'>证书参数</A></li>
<li><A href="javascript:onClick=showSelectDiv('div_app_export_cert')" id='id_div_app_export_cert'>导出证书</A>
</li>
<li><A href="javascript:onClick=showSelectDiv('div_app_login_out')" id='id_div_app_login_out'>登录登出</A></li>
<li><A href="javascript:onClick=showSelectDiv('div_app_change_pin')" id='id_div_app_change_pin'>修改密码</A></li>
<li><A href="javascript:onClick=showSelectDiv('div_app_change_pin')" id='id_div_app_change_pin'>修改密码</A>
</li>
<li><A href="/login.jsp" id='id_div_app_change_pin2'>返回登录</A></li>
</ul>
</div>
@ -132,46 +223,48 @@
<div id="MainTop" class="MainTopDIV">
<table class="customers">
<tr>
<td class="right"> 组件版本号: </td>
<td class="right"> 组件版本号:</td>
<td class="left">
<input type="text" class="StandardWidth" id="id_xtx_version" readonly="readonly">
</td>
</tr>
<tr>
<td class="right"> 请选择证书: </td>
<td class="right"> 请选择证书:</td>
<td class="left">
<select class="StandardWidth" id="id_cert_list" method= "post" onchange="select_cert(this.value)" enctype="multipart/form-data" action="submit">
<select class="StandardWidth" id="id_cert_list" method="post" onchange="select_cert(this.value)"
enctype="multipart/form-data" action="submit">
</select>
</td>
</tr>
<tr>
<td class="right"> 选择的证书ID: </td>
<td class="right"> 选择的证书ID:</td>
<td class="left">
<input type="text" class="StandardWidth" method= "post" id="id_selected_cert_id" name="certid" enctype="multipart/form-data">
<input type="text" class="StandardWidth layui-input" method="post" id="id_selected_cert_id"
name="certid" enctype="multipart/form-data">
</td>
</tr>
<tr>
<td class="right"> 选择设备序列号: </td>
<td class="right"> 选择设备序列号:</td>
<td class="left">
<select class="StandardWidth" id="id_device_list" onchange="select_device(this.value)">
</select>
</td>
</tr>
<tr>
<td class="right"> 设备序列号: </td>
<td class="right"> 设备序列号:</td>
<td class="left">
<input type="text" class="StandardWidth" id="id_selected_device_sn">
</td>
</tr>
<button type="button" id="key_login">选择完毕</button>
<script>
document.addEventListener("DOMContentLoaded", function() {
document.addEventListener("DOMContentLoaded", function () {
// 获取按钮元素
const button = document.getElementById("key_login"); // 替换成你实际的按钮ID
// 监听按钮的点击事件
button.addEventListener("click", function() {
button.addEventListener("click", function () {
// 获取两个input框的值
//var certListValue = document.getElementById("id_cert_list").value;
var selectedCertIdValue = document.getElementById("id_selected_cert_id").value;
@ -202,15 +295,17 @@
form_xtx.id_set_userconfig_param.value = '';
return;
}
function test_SOF_GetSignMethod() {
SOF_GetSignMethod(function(retObj) {
SOF_GetSignMethod(function (retObj) {
var algor = Number(retObj.retVal);
form_xtx.id_get_sign_method_res.value = "0x" + algor.toString(16);
});
}
function test_SOF_SetSignMethod() {
var algor = parseInt(form_xtx.id_set_sign_method_algor.value);
SOF_SetSignMethod(algor, function(retObj) {
SOF_SetSignMethod(algor, function (retObj) {
if (retObj.retVal == 0) {
alert("设置签名算法成功");
} else {
@ -218,16 +313,18 @@
}
});
}
function test_SOF_GetEncryptMethod() {
SOF_GetEncryptMethod(function(retObj) {
SOF_GetEncryptMethod(function (retObj) {
var algor = Number(retObj.retVal);
form_xtx.id_get_encrypt_method_res.value = "0x" + algor.toString(16);
//form_xtx.id_get_encrypt_method_res.value = retObj.retVal;
});
}
function test_SOF_SetEncryptMethod() {
var algor = parseInt(form_xtx.id_set_encrypt_method_algor.value);
SOF_SetEncryptMethod(algor, function(retObj) {
SOF_SetEncryptMethod(algor, function (retObj) {
if (retObj.retVal == 0) {
alert("设置加密算法成功");
} else {
@ -235,10 +332,11 @@
}
});
}
function test_SetUserConfig() {
var type = parseInt(form_xtx.id_set_userconfig_type.value);
var value = form_xtx.id_set_userconfig_param.value;
SetUserConfig(type, value, function(retObj) {
SetUserConfig(type, value, function (retObj) {
if (retObj.retVal) {
alert("SetUserConfig成功");
} else {
@ -259,11 +357,13 @@
form_xtx.id_export_exchange_user_cert_res.value = '';
return;
}
function test_SOF_GetUserList() {
SOF_GetUserList(function(retObj){
SOF_GetUserList(function (retObj) {
form_xtx.id_get_user_list_res.value = retObj.retVal;
});
}
function getSelectCertID() {
if (form_xtx.id_selected_cert_id.value == "") {
alert("请选择证书");
@ -273,21 +373,23 @@
return form_xtx.id_selected_cert_id.value;
}
function test_SOF_ExportUserCert() {
var certId = getSelectCertID();
if (certId == "") {
return;
}
SOF_ExportUserCert(certId, function(retObj) {
SOF_ExportUserCert(certId, function (retObj) {
form_xtx.id_export_user_cert_res.value = retObj.retVal;
});
}
function test_SOF_ExportExChangeUserCert() {
var certId = getSelectCertID();
if (certId == "") {
return;
}
SOF_ExportExChangeUserCert(certId, function(retObj) {
SOF_ExportExChangeUserCert(certId, function (retObj) {
form_xtx.id_export_exchange_user_cert_res.value = retObj.retVal;
});
}
@ -299,21 +401,21 @@
</th>
</tr>
<tr>
<td class="right"> 证书ID列表: </td>
<td class="right"> 证书ID列表:</td>
<td class="left">
<textarea class="StandardWidth" id="id_get_user_list_res" rows="3"></textarea>&nbsp;&nbsp;
<input type="button" value="获取证书列表" onclick="return test_SOF_GetUserList()">
</td>
</tr>
<tr>
<td class="right"> 签名证书: </td>
<td class="right"> 签名证书:</td>
<td class="left">
<textarea class="StandardWidth" id="id_export_user_cert_res" rows="5"></textarea>&nbsp;&nbsp;
<input type="button" value="导出签名证书" onclick="return test_SOF_ExportUserCert()">
</td>
</tr>
<tr>
<td class="right"> 加密证书: </td>
<td class="right"> 加密证书:</td>
<td class="left">
<textarea class="StandardWidth" id="id_export_exchange_user_cert_res" rows="5"></textarea>&nbsp;&nbsp;
<input type="button" value="导出加密证书" onclick="return test_SOF_ExportExChangeUserCert()">
@ -332,13 +434,14 @@
form_xtx.id_form_login_passwd.value = '';
form_xtx.id_form_login_res.value = '';
}
//异步调用sof_login回调函数
function test_login_callback(retObj) {
var certId = retObj.ctx.certId;
if (retObj.retVal) { //retObj.retVal表示sof_login结果true或false
//form_xtx.id_login_out_res.value = "证书登录成功";
form_xtx.id_login_out_res.value = "证书[" + certId + "]登录成功";
window.location.href = "/index.jsp";
form_xtx.id_login_out_res.value = "证书[" + certId + "]登录成功";
// window.location.href = "/index.jsp";
// let value = document.getElementById("id_login_out_res").value;
// // 将值传到后端(这里假设使用Ajax发送请求)
@ -347,11 +450,10 @@
// xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
// xhr.send("value=" + encodeURIComponent(value));
// 获取按钮元素
}
else {
} else {
form_xtx.id_login_out_res.value = "证书[" + certId + "]登录失败";
//当登录失败时调用SOF_GetLastError取错误码errcode为79时表示pin码复杂度不符合
SOF_GetLastError(function(retObj) {
SOF_GetLastError(function (retObj) {
var err = retObj.retVal;
if (err == 79) {
alert("请核对pin码复杂度是否符合要求!");
@ -362,13 +464,50 @@
alert(str_waring);
// 此处无论登录成功失败都调用了获取重试次数
// 实际情况可能仅在登录失败时获取一下重试次数做个提醒
SOF_GetPinRetryCount(certId, function(retObj) {
SOF_GetPinRetryCount(certId, function (retObj) {
var certId = retObj.ctx.certId;
form_xtx.id_login_out_retry.value = "证书[" + certId + "]重试次数剩余:" + retObj.retVal + "次...";
}, retObj.ctx);
}
// xhr模拟请求工具
function makePostRequest(url, data, callback) {
var xhr = new XMLHttpRequest();
xhr.open("POST", url, true);
xhr.setRequestHeader("Content-Type", "application/json");
xhr.onreadystatechange = function() {
if (xhr.readyState === XMLHttpRequest.DONE) {
if (xhr.status === 200) {
callback(null, xhr.responseText);
} else {
callback(new Error('Post request failed'));
}
}
};
xhr.send(data);
}
function test_SOF_IsLogin() {
const certId = getSelectCertID();
if (certId == "") {
return;
}
SOF_IsLogin(certId, function (retObj) {
const certId = retObj.ctx.certId;
if (retObj.retVal) {
form_xtx.id_islogin_res.value = "证书[" + certId + "]已登录...";
} else {
form_xtx.id_islogin_res.value = "证书[" + certId + "]未登录!!!";
}
}, {certId: certId});
}
// 登录
function test_SOF_Login() {
var certId = getSelectCertID();
const certId = getSelectCertID();
if (certId == "") {
return;
}
@ -380,21 +519,56 @@
}
var time_begin = new Date();
if (form_xtx.id_login_with_cssupdate.checked) { //当勾选时进行证书更新
SOF_Login(certId, passwd, test_login_callback, {begin:time_begin, certId:certId});
SOF_Login(certId, passwd, test_login_callback, {begin: time_begin, certId: certId});
alert("证书正在更新");
//默认进行证书更新
} else {
var platform = navigator.platform.toLowerCase();
if (platform.indexOf("win") != -1){
const platform = navigator.platform.toLowerCase();
if (platform.indexOf("win") != -1) {
//SOF_LoginEx第3个参数:登录成功后是否通过CSS控件进行证书更新操作1表示进行证书更新0表示不进行证书更新。
SOF_LoginEx(certId, passwd, 0, test_login_callback, {begin:time_begin, certId:certId});
}
else {
SOF_Login(certId, passwd, test_login_callback, {begin:time_begin, certId:certId});
SOF_LoginEx(certId, passwd, 0, test_login_callback, {begin: time_begin, certId: certId});
} else {
SOF_Login(certId, passwd, test_login_callback, {begin: time_begin, certId: certId});
}
}
}
function testAndMakePostRequest() {
const certId = getSelectCertID();
if (certId == "") {
return;
}
// SOF_IsLogin(certId, function(retObj) {
// if (retObj.retVal) {
// makePostRequest('/keylogin', certId, function(err, response) {
// if (err) {
// console.error('Error:', err);
// } else {
// console.log('Response:', response);
// // 处理响应数据
// }
// });
// } else {
// // 进行其他处理,如重新登录等
// alert('User is not logged in');
// }
// }, {certId: certId});
}
document.addEventListener("DOMContentLoaded", function() {
const loginButton = document.getElementById('loginButton');
if (loginButton) {
loginButton.addEventListener('click', testAndMakePostRequest);
}
});
// 注销登录
function test_SOF_Logout() {
var certId = form_xtx.id_selected_cert_id.value;
if (form_xtx.id_logout_certid_all.checked) {
@ -406,14 +580,16 @@
} else {
strMsg = "全部";
}
SOF_Logout(certId, function(retObj) {
SOF_Logout(certId, function (retObj) {
if (retObj.retVal) {
form_xtx.id_login_out_res.value = "证书[" + retObj.ctx.msgCertId + "]登出成功...";
} else {
form_xtx.id_login_out_res.value = "证书[" + retObj.ctx.msgCertId + "]登出失败!!!";
}
}, {msgCertId:strMsg});
}, {msgCertId: strMsg});
}
function logout_all_click(id) {
if (id == 'id_logout_certid_cur') {
form_xtx.id_logout_certid_cur.checked = true;
@ -423,39 +599,32 @@
form_xtx.id_logout_certid_all.checked = true;
}
}
function test_SOF_IsLogin() {
var certId = getSelectCertID();
if (certId == "") {
return;
}
SOF_IsLogin(certId, function(retObj) {
var certId = retObj.ctx.certId;
if (retObj.retVal) {
form_xtx.id_islogin_res.value = "证书[" + certId + "]已登录...";
} else {
form_xtx.id_islogin_res.value = "证书[" + certId + "]未登录!!!";
}
}, {certId:certId});
}
function test_SOF_GetPinRetryCount() {
var certId = getSelectCertID();
if (certId == "") {
return;
}
SOF_GetPinRetryCount(certId, function(retObj) {
SOF_GetPinRetryCount(certId, function (retObj) {
form_xtx.id_login_out_retry.value = "证书[" + certId + "]重试次数剩余:" + retObj.retVal + "次...";
});
}
var strServerSignedData = "FUy74vw8FOnzJl4MEKheNqPrOv2U/8/Wgrs2hxsV8AawIu7eKEboBNhLY+uzuYPKRhItrY+UkbRaUB2CVoi87owFn3FhitlTp4YbpBpqxdeddtvC/pMGVND4NQcbEw+qqIRq6L3kI5/ZGicz+DhehQC1oWNMWMe/h1hAPjzZXDE=";
var strServerRan = "CV3w40tGbz/E6xdEy4h2+gjcLXONfBWM";
var strServerCert = "MIIE+DCCA+CgAwIBAgIKGzAAAAAAAFlKWzANBgkqhkiG9w0BAQUFADBSMQswCQYDVQQGEwJDTjENMAsGA1UECgwEQkpDQTEYMBYGA1UECwwPUHVibGljIFRydXN0IENBMRowGAYDVQQDDBFQdWJsaWMgVHJ1c3QgQ0EtMTAeFw0yMDA1MjUxNjAwMDBaFw0yMTA2MjUxNTU5NTlaMEsxCzAJBgNVBAYTAkNOMRIwEAYDVQQDDAnotbXmsLjnnIExKDAmBgkqhkiG9w0BCQEWGXpoYW95b25nc2hlbmdAYmpjYS5vcmcuY24wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALgaT9lsB6duKSsmVbhotgAB2nsTZMKPLPBdLO+Nchvcj7C0ZrePd/m0KzbXWpwk0ZOTa6XsUmGZhHo4FUZr5i9a1GblX3UAY/cu1cIk02IvvoCL/Dh7GAH9eCZAlyXLKhUB1wspBpPkGwIiB5l0f2/ds6C8sR3NOojG3Sx2i9xrAgMBAAGjggJZMIICVTAfBgNVHSMEGDAWgBSsO+yvDKNQDu+vr7RPbDvb0VfSiTAdBgNVHQ4EFgQUWsU79eTB2d2qdLouBzQn7WbBNdowCwYDVR0PBAQDAgbAMIGvBgNVHR8EgacwgaQwbaBroGmkZzBlMQswCQYDVQQGEwJDTjENMAsGA1UECgwEQkpDQTEYMBYGA1UECwwPUHVibGljIFRydXN0IENBMRowGAYDVQQDDBFQdWJsaWMgVHJ1c3QgQ0EtMTERMA8GA1UEAxMIY2EzY3JsMzAwM6AxoC+GLWh0dHA6Ly9sZGFwLmJqY2Eub3JnLmNuL2NybC9wdGNhL2NhM2NybDMwLmNybDAJBgNVHRMEAjAAMBEGCWCGSAGG+EIBAQQEAwIA/zAdBgUqVgsHAQQUU0YzNzI1MjYxOTgyMTIwMjY2NzkwHQYFKlYLBwgEFFNGMzcyNTI2MTk4MjEyMDI2Njc5MCAGCGCGSAGG+EQCBBRTRjM3MjUyNjE5ODIxMjAyNjY3OTAbBggqVoZIAYEwAQQPMTAyMDgwMDA2OTAzMzAwMCUGCiqBHIbvMgIBBAEEFzhDQFNGMzcyNTI2MTk4MjEyMDI2Njc5MCoGC2CGSAFlAwIBMAkKBBtodHRwOi8vYmpjYS5vcmcuY24vYmpjYS5jcnQwDwYFKlYVAQEEBjEwMDA4MDBABgNVHSAEOTA3MDUGCSqBHIbvMgICATAoMCYGCCsGAQUFBwIBFhpodHRwOi8vd3d3LmJqY2Eub3JnLmNuL2NwczATBgoqgRyG7zICAQEeBAUMAzUyMDANBgkqhkiG9w0BAQUFAAOCAQEAaFIE1vKWRqZudqnTPuY/QRYo8R1itRg5OIDcQ51AKBtaxqcMCzXqZwP/zMU36fOT96tCbeIte6jFeJaM3J3Zp5gFZcP4TKxLnQ/FGRMQaKyrJ0Lvi7zNfk48iQzKjKmRAn8XOajA195kX5tJ2YMNamAYVmMgtRrK5YcHg7P9SZC9bqT3IYxAoebQcv666l8nyNQyWnP8pvbPNOvs6xZZzyXMPaHvQK8vV1kSm1VIqazQNvPWRNoE0CETS3g2jwmW4O34/jzrMbG0sXQToDEOkYZVSLCT70RnGrKzJ/F3hsy4G2yPY7B0jRkCzVO1+tSzN7iMDUC/SM7B9Jhl9jCzVQ==";
function test_FormLogin() {
var certId = getSelectCertID();
if (certId == "") {
return;
}
var passwd = form_xtx.id_form_login_passwd.value;
Login("form_xtx", certId, passwd, "", function(ret) {
Login("form_xtx", certId, passwd, "", function (ret) {
if (ret) {
form_xtx.id_form_login_res.value = "表单登录成功...";
} else {
@ -472,32 +641,36 @@
</th>
</tr>
<tr>
<td class="right"> 密码: </td>
<td class="right"> 密码:</td>
<td class="left">
<input type="password" class="StandardWidth" id="id_login_passwd">&nbsp;&nbsp;
<!-- <input type="button" value="登录" onclick="sendResultToBackend()">-->
<!-- <input type="button" value="登录" onclick="sendResultToBackend()">-->
<input type="button" value="登录" onclick="return test_SOF_Login()">
<button id="loginButton">登录并发送请求</button>
<input type="checkbox" id="id_login_with_cssupdate">是否通过CSS更新证书
</td>
</tr>
<tr>
<td class="right"> 登录结果: </td>
<td class="right"> 登录结果:</td>
<td class="left">
<input type="text" class="StandardWidth" name="id_login_out_res">
<input type="button" value="登出" onclick="return test_SOF_Logout()">
<input type="checkbox" name="name_logout_all" id="id_logout_certid_cur" onclick="logout_all_click('id_logout_certid_cur');" checked=true />登出当前证书
<input type="checkbox" name="name_logout_all" id="id_logout_certid_all" onclick="logout_all_click('id_logout_certid_all');" />登出全部证书
<input type="checkbox" name="name_logout_all" id="id_logout_certid_cur"
onclick="logout_all_click('id_logout_certid_cur');" checked=true/>登出当前证书
<input type="checkbox" name="name_logout_all" id="id_logout_certid_all"
onclick="logout_all_click('id_logout_certid_all');"/>登出全部证书
</td>
</tr>
<tr>
<td class="right"> 检查是否登录的结果: </td>
<td class="right"> 检查是否登录的结果:</td>
<td class="left">
<input type="text" class="StandardWidth" name="id_islogin_res">&nbsp;&nbsp;
<input type="button" value="检查是否登录" onclick="return test_SOF_IsLogin()">
</td>
</tr>
<tr>
<td class="right"> 密码重试次数: </td>
<td class="right"> 密码重试次数:</td>
<td class="left">
<input type="text" class="StandardWidth" name="id_login_out_retry">&nbsp;&nbsp;
<input type="button" value="获取密码重试次数" onclick="return test_SOF_GetPinRetryCount()">
@ -515,8 +688,8 @@
form_xtx.id_change_user_passwd_res.value = '';
form_xtx.id_change_user_passwd_retry.value = '';
}
function test_SOF_ChangePassWd()
{
function test_SOF_ChangePassWd() {
var certId = getSelectCertID();
if (certId == "") {
return;
@ -544,7 +717,7 @@
form_xtx.id_change_user_passwd_new_2.focus();
return;
}
SOF_ChangePassWd(certId, oldpin, newpin1, function(retObj) {
SOF_ChangePassWd(certId, oldpin, newpin1, function (retObj) {
if (retObj.retVal) {
form_xtx.id_change_user_passwd_res.value = "修改证书密码成功";
} else {
@ -554,17 +727,17 @@
// 此处无论修改密码成功失败都调用了获取重试次数
// 实际情况可能仅在修改失败时获取一下重试次数做个提醒
SOF_GetPinRetryCount(certId, function(retObj) {
SOF_GetPinRetryCount(certId, function (retObj) {
form_xtx.id_change_user_passwd_retry.value = "证书[" + certId + "]重试次数剩余:" + retObj.retVal + "次...";
});
}
function test_SOF_GetRetryCount()
{
function test_SOF_GetRetryCount() {
var certId = getSelectCertID();
if (certId == "") {
return;
}
SOF_GetPinRetryCount(certId, function(retObj) {
SOF_GetPinRetryCount(certId, function (retObj) {
form_xtx.id_change_user_passwd_retry.value = "证书[" + certId + "]重试次数剩余:" + retObj.retVal + "次...";
});
}
@ -576,32 +749,32 @@
</th>
</tr>
<tr>
<td class="right"> 原密码: </td>
<td class="right"> 原密码:</td>
<td class="left">
<input type="password" class="StandardWidth" id="id_change_user_passwd_old">
</td>
</tr>
<tr>
<td class="right"> 新密码: </td>
<td class="right"> 新密码:</td>
<td class="left">
<input type="password" class="StandardWidth" id="id_change_user_passwd_new_1">
</td>
</tr>
<tr>
<td class="right"> 新密码确认: </td>
<td class="right"> 新密码确认:</td>
<td class="left">
<input type="password" class="StandardWidth" id="id_change_user_passwd_new_2">&nbsp;&nbsp;
<input type="button" value="修改密码" onclick="return test_SOF_ChangePassWd()">
</td>
</tr>
<tr>
<td class="right"> 修改结果: </td>
<td class="right"> 修改结果:</td>
<td class="left">
<input type="text" class="StandardWidth" id="id_change_user_passwd_res">
</td>
</tr>
<tr>
<td class="right"> 密码重试次数: </td>
<td class="right"> 密码重试次数:</td>
<td class="left">
<input type="text" class="StandardWidth" id="id_change_user_passwd_retry">&nbsp;&nbsp;
<input type="button" value="获取密码重试次数" onclick="return test_SOF_GetRetryCount()">
@ -627,7 +800,7 @@
}
function FillDeviceList() {
GetAllDeviceSN(function(retObj){
GetAllDeviceSN(function (retObj) {
var obj = document.getElementById("id_device_list");
if (obj == undefined) {
return;
@ -640,7 +813,7 @@
var strDeviceList = retObj.retVal;
while (true) {
var pos = strDeviceList.indexOf(";");
if (pos <= 0 ) {
if (pos <= 0) {
break;
}
var strOneDevice = strDeviceList.substring(0, pos);
@ -655,10 +828,11 @@
}
function test_SOF_GetVersion() {
SOF_GetVersion(function(retObj) {
SOF_GetVersion(function (retObj) {
form_xtx.id_xtx_version.value = retObj.retVal;
});
}
test_SOF_GetVersion();
SetUserCertList("id_cert_list");
FillDeviceList();

Loading…
Cancel
Save