No appropriate protocol(Connections could not be acquired from the underlying database! )报错解决

  我把前后端服务都部署好,正准备运行的时候这时候出现一个错误,我在开发者工具中查看返回的主要错误信息是Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!

 我在网上查阅了相关信息,大部博客的解释是密码错误,或者相关配置没有正确配置,我检查了很多边但是依然出错,然后我去tomcat日志文件查看错误,tomcat给我报出的错误是No appropriate protocol,翻译就是:javax.net.ssl.ssl握手异常:没有合适的协议。

 所以之前的错误(Connections could not be acquired from the underlying database!)这个应该是通用错误,很多错误都会导致浏览器返回这个信息,要不是看tomcat可能我还蒙在鼓里,不知道如何具体的错误内容是什么,这里也提醒大家遇到错误第一步先看日志文件,这里应该jdk版本的问题,我是直接用yum安装的,这个jdk版本太高支持了一些安全协议。

 解决办法1:修改jre/lib/security/java.security中的disabledAlgorithms,删除SSLv3, TLSv1, TLSv1.1,然后重启应用即可。在vim下,可以使用/disabledAlgorithms快速查找。尽量把

 解决办法2:如果上一个方法修改依然报错,在原来修改的基础上再修改一个配置

修改jdk配置文件/etc/crypto-policies/back-ends/java.config,类似上面方法一样,删除`SSLv3, TLSv1, TLSv1.1``,保存重启应用。

 解决办法3:如果以上三个办法都无效,那就用最暴力的方法,直接重新安装jdk。

  总结: 通过这次错误,我希望大家在写什么项目的时候,一定要先确定好每一个开发过程的工具版本,这一点可以让你在开发过程减少很多不必要的错误,提高开发速度。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
自動更新插件。 AutoUpgrader is a component for building software updates. Delphi programmers can use this component to create their own software packages without writing a single line of code, which includes ready-made wizards that can be activated for different purposes, as well as multiple languages ​​for the application interface. It uses updates and the interesting feature is that when the end user runs the update software, the application will recognize the user’s current operating system language and display the application’s interface in the same language. This component currently translates all wizards into 13 different languages, including English, Spanish, German, French, Russian, Portuguese, Italian, Chinese and more. Of course, if you are not interested in using the program’s pre-installed wizards, you can easily design an ambient wizard with your own texts and images for the entire process. If you have installed a new version of your application in the encrypted web directory, you can do so by configuring the username and password of access files, or allow this component to be displayed to the user when the login window needs it. And users can access the app by entering the appropriate username and password. With AutoUpgrader end users of your app will always use the latest version of your products. This package consists of two components, one HTTP web / HTTP based HTTP protocol (which supports upload and cache IE and …) and another acThread, a threaded caponity for use on ActiveFirms. Delphi programmers, with this component no longer need a basic design of update programs, and can focus on the logic of their program, such as updating the program to components such as AutoUpgrader.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值