当前位置:网站首页>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
边栏推荐
- Kubernetes:(九)coredns(浪不动了)
- sql注入一般流程(附例题)
- Small Turtle Compilation Notes
- 【翻译】Terraform和Kubernetes的交集
- keytool命令
- golang中的unsafe.Pointer,指针,引用
- sqoop ETL工具
- Presto中broadcast join和partition join执行计划的处理过程
- flinkcdc 消费 mysql binlog 没有 sqltype=delete 的数据是什么原
- Ant - the design of the Select component using a custom icon (suffixIcon attribute) suffixes, click on the custom ICONS have no reaction, will not display the drop-down menu
猜你喜欢

v-model

STM8S project creation (STVD creation) --- use COSMIC to create a C language project

深度学习(三)分类 理论部分

Brush esp8266-01 s firmware steps

In the season of going overseas, the localization of Internet tips for going overseas

DIY电工维修如何拆卸和安装开关面板插座

Flink原理流程图简单记录

2022广东省安全员A证第三批(主要负责人)考试题库及模拟考试

小程序+新零售,玩转行业新玩法!

三分建设,七分管理!产品、系统、组织三管齐下节能降耗
随机推荐
一文看懂推荐系统:召回04:离散特征处理,one-hot编码和embedding特征嵌入
Homemade bluetooth mobile app to control stm8/stm32/C51 onboard LED
数据安全峰会2022 | 美创DSM获颁“数据安全产品能力验证计划”评测证书
TOML configuration file format, YAML's top contender
Asynchronous programming solution Generator generator function, iterator iterator, async/await, Promise
C语言力扣第54题之螺旋矩阵。模拟旋转
ant-design的Select组件采用自定义后缀图标(suffixIcon属性)时,点击该自定义图标没有反应,不会展示下拉菜单的问题
Flink原理流程图简单记录
There are too many systems, how to realize multi-account interworking?
sql有关问题,小时粒度,找到前一个小时内的数据
[Study Notes Dish Dog Learning C] Dynamic Memory Management
tkmapper的crud示例:
瑞能微计量芯片RN2026的实用程序
(cf)Codeforces Round #811 (Div. 3)A--E详细题解
pytorch应用于MNIST手写字体识别
STM8S105K4T6------Serial port sending and receiving
验证码业务逻辑漏洞
Example 035: Setting the output color
What is the source of flinkcdc consuming mysql binlog data without sqltype=delete
2022G1工业锅炉司炉考试练习题及模拟考试