JMeter 连接 SQL Server,报错 Cannot create PoolableConnectionFactory

random 测试交流2548字数 149阅读0分29秒阅读模式

报错信息:

java.sql.SQLException: Cannot create PoolableConnectionFactory (The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:131db81a-2f40-4996-8c59-77e635d32ec0)

JMeter 版本:5.5文章源自玩技e族-https://www.playezu.com/216493.html

JDK 信息:文章源自玩技e族-https://www.playezu.com/216493.html

openjdk 11.0.15 2022-04-19 LTS
OpenJDK Runtime Environment Microsoft-32930 (build 11.0.15+10-LTS)
OpenJDK 64-Bit Server VM Microsoft-32930 (build 11.0.15+10-LTS, mixed mode)

JDBC 连接配置:文章源自玩技e族-https://www.playezu.com/216493.html

JMeter 连接 SQL Server,报错 Cannot create PoolableConnectionFactory插图
文章源自玩技e族-https://www.playezu.com/216493.html

不知道是否与 OpenJDK 有关,以前用 OracleJDK 是没有类似的问题的。如果不更换 JDK,能否解决问题?文章源自玩技e族-https://www.playezu.com/216493.html软件测试功能测试方法本文转自于TesterHome,如有侵权请联系(2523030730@qq.com)删除。文章源自玩技e族-https://www.playezu.com/216493.html文章源自玩技e族-https://www.playezu.com/216493.html

 
评论  2  访客  2
    • 测试不小
      测试不小 9

      jar 包应该要大于 mysql 的版本?

    匿名

    发表评论

    匿名网友
    确定

    拖动滑块以完成验证