问答 JMeter 连接 SQL Server,报错 Cannot create PoolableConnectionFactory

DingJunyao · 2022年08月26日 · 最后由 测试不小 回复于 2022年08月28日 · 5890 次阅读

报错信息:

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

JDK 信息:

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 连接配置:

换用 Oracle JDK 8、11,也有同样的问题。

共收到 1 条回复 时间 点赞

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

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册