当前位置:网站首页>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
边栏推荐
- Exclude_reserved_words 排除关键字
- Why use Selenium for automated testing
- QNX Hypervisor 2.2 user manual] 10.1 gm vdev options
- Zabbix set up email alert + enterprise WeChat alert
- 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
- APP电商如何快速分润分账?
- Priority_queue element as a pointer, the overloaded operators
- TOML configuration file format, YAML's top contender
- 自制蓝牙手机app控制stm8/stm32/C51板载LED
- (cf)Codeforces Round #811 (Div. 3)A--E详细题解
猜你喜欢

2022年T电梯修理考题及答案

Example 039: Inserting elements into an ordered list

怎样提高网络数据安全性

mpf5_定价Bond_yield curve_Spot coupon_duration_有效利率_连续复利_远期_Vasicek短期_CIR模型Derivatives_Tridiagonal_ppf

Homemade bluetooth mobile app to control stm8/stm32/C51 onboard LED

KingbaseES数据库启动失败,报“内存段超过可用内存”

Instance, 038: the sum of the diagonal matrix

activiti流程执行过程中,数据库表的使用关系

tkmapper的crud示例:

MallBook 助力SKT思珂特教育集团,立足变化,拥抱敏捷交易
随机推荐
KingbaseES数据库启动失败,报“内存段超过可用内存”
云开发校园微社区微信小程序源码/二手交易/兼职交友微信小程序开源源码
docker+网桥+redis主从+哨兵模式
小程序+新零售,玩转行业新玩法!
移动端响应式适配的方法
【原创】启动Win10自带的XPS/OXPS阅读器
云开发旅游打卡广场微信小程序源码(含视频教程)
【云原生】DevOps(六):Jenkins流水线
How to read the resources files in the directory path?
cdh6.x 集成spark-sql
v-model
What is the source of flinkcdc consuming mysql binlog data without sqltype=delete
脚手架内容详解分析
关联接口测试
db2中kettle报错 Field [XXX] is required and couldn‘t be found 解决方法
WPE详细教程
sqoop ETL tool
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
Zabbix set up email alert + enterprise WeChat alert
(cf)Codeforces Round #811 (Div. 3)A--E详细题解