当前位置:网站首页>SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropri
SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropri
2022-08-04 03:00:00 【秋9】
【现象】
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 1 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago.
at sun.reflect.GeneratedConstructorAccessor50.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990)
at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:201)
at com.mysql.jdbc.MysqlIO.negotiateSSLConnection(MysqlIO.java:4912)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1663)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1224)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2190)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2221)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2016)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:776)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.GeneratedConstructorAccessor34.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1644)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1710)
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2774)
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:171)
at sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:106)
at sun.security.ssl.TransportContext.kickstart(TransportContext.java:238)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:410)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:389)
at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:186)
... 17 common frames omitted
【解决方法】
去掉SSLv3, TLSv1, TLSv1.1后,再启动项目,具体操作如下:
cd /usr/java/jdk1.8.0_341-amd64/jre/lib/security
vi java.security
jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \
DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
include jdk.disabled.namedCurves
修改为:
jdk.tls.disabledAlgorithms=RC4, DES, MD5withRSA, \
DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
include jdk.disabled.namedCurves
边栏推荐
- 2022年T电梯修理考题及答案
- C# 构造函数业务场景测试项目
- 2022.8.3-----leetcode.899
- Asynchronous programming solution Generator generator function, iterator iterator, async/await, Promise
- Example 039: Inserting elements into an ordered list
- 编写 BOLL 心得体会
- (cf)Codeforces Round #811 (Div. 3)A--E详细题解
- Flink原理流程图简单记录
- 共n级台阶,每次可以上1级或2级台阶,有多少种上法?
- Countdown to 2 days, the "New Infrastructure of Cultural Digital Strategy and Ecological Construction of Cultural Art Chain" will kick off soon
猜你喜欢
Sfdp 超级表单开发平台 V6.0.5 正式发布
脚手架内容详解分析
There are n steps in total, and you can go up to 1 or 2 steps each time. How many ways are there?
Why use Selenium for automated testing
如何在MySQL中的数据库下删除所有的表
STM8S project creation (STVD creation) --- use COSMIC to create a C language project
Deep Learning (3) Classification Theory Part
阿里云国际版基于快照与镜像功能迁移云服务器数据
ant-design的Select组件采用自定义后缀图标(suffixIcon属性)时,点击该自定义图标没有反应,不会展示下拉菜单的问题
怎样提高网络数据安全性
随机推荐
数据湖(二十):Flink兼容Iceberg目前不足和Iceberg与Hudi对比
跨境电商看不到另一面:商家刷单、平台封号、黑灰产牟利
Taurus.MVC WebAPI 入门开发教程1:框架下载环境配置与运行(含系列目录)。
LeetCode:899. 有序队列【思维题】
What is SVN (Subversion)?
复制带随机指针的链表
香港服务器有哪些常用的型号
[Playwright Test Tutorial] 5 minutes to get started
[QNX Hypervisor 2.2用户手册]10.3 vdev gic
单片机C语言->的用法,和意思
瑞能微计量芯片RN2026的实用程序
深度学习(三)分类 理论部分
验证码业务逻辑漏洞
Small Turtle Compilation Notes
大佬们,读取mysql300万单表要很长时间,有什么参数可以优惠,或者有什么办法可以快点
How many ways do you know about communication between multiple threads?
SQL注入中 #、 --+、 --%20、 %23是什么意思?
各位大佬好,麻烦问一下flink cdc oracle写入doris的时候,发现cpu异常,一下下跑
Returns the maximum number of palindromes in a string
移动端响应式适配的方法