微信证书 javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

这几天在做微信退款接口,按照api写完之后,在本地测试了下没有问题,于是交给测试让他们在测试环境开测。他们说退款没有成功,感觉去查日志,发现后台报了

javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

。退款证书没有问题,怎么会报这个问题那?想不明白

google了白天没有搞定,赶紧问项目经理,给我说是不是tomcat的 ssl证书给关了,让我比较下本地的tomcat配置和测试环境的配置有什么不一样。然后细细的比较后 果然发现,本地的这个是可用的

而服务器上面此处是注释的状态。于是改了后 重启,退款成功。

时间: 2024-12-22 05:11:37

微信证书 javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty的相关文章

Maven:java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

直接参考前面一篇文章中间介绍的第2种方法即可:Maven:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 再 maven 命令中增加运行参数如下,路径可以改为自己的 J

javax.net.ssl.SSLException: hostname in certificate didn't match:

每个协议有自己的一套SSL东西,Android 链接https经常会抛出如下错误 javax.net.ssl.SSLException: hostname in certificate didn't match: <test.rigbee.cn> != <rigbee.cn> OR <rigbee.cn> OR <www.rigbee.cn> at org.apache.http.conn.ssl.AbstractVerifier.verify(Abstra

hive 报错 java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient

Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:344) at org.a

hive脚本出现Error: java.lang.RuntimeException: Error in configuring object和Caused by: java.lang.IndexOutOfBoundsException: Index: 9, Size: 9

是在reduce阶段报的错误,详细错误信息是 朱传豪 19:04:48 Diagnostic Messages for this Task: Error: java.lang.RuntimeException: Error in configuring object at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:109) at org.apache.hadoop.util.ReflectionU

Struts2:java.lang.NoSuchFieldException: resourceEntries at java.lang.Class.getDeclaredField(Class.java:1901)

今天在做Struts2的测试用例时候,程序能正常跳转,但是在Console却报了一个错误,如下: 1 java.lang.NoSuchFieldException: resourceEntries 2 at java.lang.Class.getDeclaredField(Class.java:1901) 3 at com.opensymphony.xwork2.util.LocalizedTextUtil.clearMap(LocalizedTextUtil.java:877) 4 at co

使用CXF 2.7.5出现的java.lang.RuntimeException: Cannot create a secure XMLInputFactory错误解决

昨天启动工程测试webservice服务,结果发现服务一调用就报java.lang.RuntimeException: Cannot create a secure XMLInputFactory java.lang.RuntimeException: Cannot create a secure XMLInputFactory at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:300) at o

java.lang.RuntimeException: Cannot create a secure XMLInputFactory 异常处理

背景:本人在近日的webservice   CXF接口的编写调试过程中,发现一个很奇怪的现象--我在本地对接口进行往返请求时完全没有问题,不管是main方法直接调用还是业务场景里调用都无问题,在其他同事的电脑上测试也均无问题,但只要一部署到服务器上,即报错.尝试本地更换与线上同版本的tomcat.尝试重新更新所有class文件.尝试替换线上服务器的所有jar后均无法解决问题.现附上报错代码及后续所得解决方案: 1.报错: 报错:[ERROR] 2017-09-23 12:18:45,973 co

Hive JDBC:java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate anonymous

今天使用JDBC来操作Hive时,首先启动了hive远程服务模式:hiveserver2 &(表示后台运行),然后到eclipse中运行程序时出现错误: java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://192.168.182.11:10000/default: Failed to open new session: java.lang.RuntimeException: org.

Caused by: java.lang.RuntimeException: Could not find conduit initiator for address: xxxxxx and transport: http://schemas.xmlsoap.org/soap/http

调用的时候会报这个错 javax.xml.ws.soap.SOAPFaultException: Could not find conduit initiator for address: http://localhost:8080/ws/hello and transport: http://schemas.xmlsoap.org/soap/http at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:15