当前位置:网站首页>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
边栏推荐
- 怎样提高网络数据安全性
- new Date将字符串转化成日期格式 兼容IE,ie8如何通过new Date将字符串转化成日期格式,js中如何进行字符串替换, replace() 方法详解
- There are too many systems, how to realize multi-account interworking?
- ssh服务详解
- kingbaseES V8R2/R3 表在指定表空间,为何显示为默认表空间?
- ant-design的Select组件采用自定义后缀图标(suffixIcon属性)时,点击该自定义图标没有反应,不会展示下拉菜单的问题
- 【项目实现】Boost搜索引擎
- 数据安全峰会2022 | 美创DSM获颁“数据安全产品能力验证计划”评测证书
- KingbaseES数据库启动失败,报“内存段超过可用内存”
- 共n级台阶,每次可以上1级或2级台阶,有多少种上法?
猜你喜欢

织梦内核电动伸缩门卷闸门门业公司网站模板 带手机版【站长亲测】

new Date将字符串转化成日期格式 兼容IE,ie8如何通过new Date将字符串转化成日期格式,js中如何进行字符串替换, replace() 方法详解

三分建设,七分管理!产品、系统、组织三管齐下节能降耗

Utilities of Ruineng Micrometer Chip RN2026

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

Dong mingzhu live cold face away, when employees frequency low-level mistakes, no one can understand their products

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

Sfdp 超级表单开发平台 V6.0.5 正式发布

Polygon zkEVM网络节点

2022G1工业锅炉司炉考试练习题及模拟考试
随机推荐
瑞能微计量芯片RN2026的实用程序
new Date将字符串转化成日期格式 兼容IE,ie8如何通过new Date将字符串转化成日期格式,js中如何进行字符串替换, replace() 方法详解
数据安全峰会2022 | 美创DSM获颁“数据安全产品能力验证计划”评测证书
SQL注入中 #、 --+、 --%20、 %23是什么意思?
[Study Notes Dish Dog Learning C] Dynamic Memory Management
复制带随机指针的链表
[Playwright Test Tutorial] 5 minutes to get started
Brush esp8266-01 s firmware steps
In the season of going overseas, the localization of Internet tips for going overseas
全网没有之一的JMeter 接口测试流程详解
6口全千兆二层网管型工业以太网交换机千兆2光4电光纤自愈ERPS环网交换机
【Playwright测试教程】5分钟上手
DHCP服务详解
移动端响应式适配的方法
2022焊工(初级)上岗证题目模拟考试平台操作
C program compilation and predefined detailed explanation
Pine Script | How to display and typeset a plot switch?
创新互融|华秋赋能助力OpenHarmony生态硬件开发落地
返回字符串中的最大回文数
【医保科普】维护医保基金安全,我们可以这样做