[英]The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. How to solve this error?
I was getting this error while running my application and somewhere I read that I it may be jdk incompatibility so I downgraded my jdk to jdk1.8.0_144
and driver was able to connect.我在运行我的应用程序时遇到了这个错误,在某处我读到它可能是 jdk 不兼容,所以我将我的 jdk 降级到jdk1.8.0_144
并且驱动程序能够连接。 So now when I create a jar it won't start so I decided to run it with Command Prompt.所以现在当我创建 jar 时它不会启动,所以我决定使用命令提示符运行它。 I was getting that:我明白了:
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption.驱动程序无法使用安全 Sockets 层 (SSL) 加密建立与 SQL 服务器的安全连接。 Error: "Unexpected rethrowing".错误:“意外重新抛出”。
How it can start from my IDE but error occur while start jar?它如何从我的 IDE 开始,但在启动 jar 时出现错误? What can I do to fix this?我能做些什么来解决这个问题?
So the reason why my IDE works and jar doesn't is because jar was running on new JRE version.所以我的 IDE 工作而 jar 不工作的原因是因为 jar 在新的 JRE 版本上运行。 After i run it with older it was working fine.在我用旧版本运行它之后,它工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.