当前位置:网站首页>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:04:00 【autumn 9】
【Phenomena】
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe 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.(ConnectionImpl.java:776)at com.mysql.jdbc.JDBC4Connection.(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.(HandshakeContext.java:171)at sun.security.ssl.ClientHandshakeContext.(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 【Solution】
Remove SSLv3, TLSv1, TLSv1.1, and then start the project. The specific operations are as follows:
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
Modified to:
jdk.tls.disabledAlgorithms=RC4, DES, MD5withRSA, \
DH keySize < 1024, ECkeySize < 224, 3DES_EDE_CBC, anon, NULL, \
include jdk.disabled.namedCurves
边栏推荐
- [QNX Hypervisor 2.2 User Manual] 10.3 vdev gic
- Utilities of Ruineng Micrometer Chip RN2026
- Simple record of Flink principle flow chart
- Dong mingzhu live cold face away, when employees frequency low-level mistakes, no one can understand their products
- 在更一般意义上验算移位距离和假设
- [Playwright Test Tutorial] 5 minutes to get started
- STM8S项目创建(STVD创建)---使用 COSMIC 创建 C 语言项目
- ingress 待完善
- sqoop ETL tool
- DHCP服务详解
猜你喜欢

esp8266-01s刷固件步骤

How to drop all tables under database in MySQL

【学习笔记之菜Dog学C】动态内存管理

There are too many systems, how to realize multi-account interworking?

Rongyun "Audio and Video Architecture Practice" technical session [complete PPT included]

基于Qt的目录统计QDirStat

Flink原理流程图简单记录

C语言--环形缓存区

从图文展示到以云为核,第五代验证码独有的策略情报能力

STM8S105k4t6c--------------点亮LED
随机推荐
[Original] Start the XPS/OXPS reader that comes with Windows 10
MRS: Alluxio的使用介绍
P3384 【模板】轻重链剖分/树链剖分
MySQL 查询练习(1)
一文看懂推荐系统:召回04:离散特征处理,one-hot编码和embedding特征嵌入
怎样提高网络数据安全性
In the season of going overseas, the localization of Internet tips for going overseas
安装postgis时报找不到“POSTGIS_VERSION”这个函数
【原创】启动Win10自带的XPS/OXPS阅读器
In a more general sense, calculating the displacement distance and assumptions
云开发旅游打卡广场微信小程序源码(含视频教程)
uni-app 从零开始-基础模版(一)
C语言--环形缓存区
db2中kettle报错 Field [XXX] is required and couldn‘t be found 解决方法
Presto中broadcast join和partition join执行计划的处理过程
2千兆光+6千兆电导轨式网管型工业级以太网交换机支持X-Ring冗余环网一键环网交换机
View mysql deadlock syntax
JVM内存和垃圾回收-07.堆
new Date将字符串转化成日期格式 兼容IE,ie8如何通过new Date将字符串转化成日期格式,js中如何进行字符串替换, replace() 方法详解
kingbaseES V8R2/R3 表在指定表空间,为何显示为默认表空间?