技术标签: java 成神之路 数据库异常 mysql SSLException
javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify报错信息:
EXCEPTION STACK TRACE:
** BEGIN NESTED EXCEPTION **
javax.net.ssl.SSLException
MESSAGE: closing inbound before receiving peer's close_notify
STACKTRACE:
javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify
at sun.security.ssl.Alert.createSSLException(Alert.java:133)
at sun.security.ssl.Alert.createSSLException(Alert.java:117)
at sun.security.ssl.TransportContext.fatal(TransportContext.java:314)
at sun.security.ssl.TransportContext.fatal(TransportContext.java:270)
at sun.security.ssl.TransportContext.fatal(TransportContext.java:261)
at sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:656)
at sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:635)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:2249)
at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4221)
at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1464)
at com.lucian.dao.impl.ItemsDaoImpl.findAll(ItemsDaoImpl.java:41)
at com.lucian.test.ItemTest.test(ItemTest.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:220)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:53)
** END NESTED EXCEPTION **
在配置连接数据库的url时,加上useSSL=false。如以下格式,注意将数据库ip,端口,数据库名称改为你自己的。
String url ="jdbc:mysql://localhost:3306/demos?user=root&password=root&useUnicode=true&characterEncoding=utf-8&useSSL=false";
// 首先系统启动时, 函数指针会调用con_init(), 代码在drivers/tty/vt/vt.c,函数指针代码如下: /* * Initialize the console device. This is called *early*, so * we can't necessarily depend on lots of kernel help here. * Just do
在用FreeMarker过程中,感觉FreeMarker的字符串,日期,集合等处理能力还是很强大的,上网搜了一些资料,整理如下,以便能帮助大家更熟练的应用Freemarker完成项目开发。一、Sequence的内置函数1. sequence?FIRST 返回sequence的第一个值。2. sequence?LAST 返回sequence的最后一个值。3.
一、链接数据库,获取原始数据import pandas as pd import pymysqlconn = pymysql.connect( host="10.75.31.62", user="zjxczsdb", password="we4r3Gyhje", database="zhuji_online", charset="utf8" )cursor = conn.cursor() # 执行完毕返回的结果集默认以元组显示sql1
单目,一个运算数 i++, i--, !a, ~a双目,两个运算数 a+b a-b a*b三目,三个运算数 bc=a?b:c; (if(a) bc =b;else bc =c;) int i = 0; i = (i == 0) ? 1 : 0;->在C语言中称为间接引用运算符,是二目运算符,优先级同成员运算符“.”。用法: p->a,其中p是指向一个结构体的指针,a是这个结构
1.navigator 标签<navigator url="../hello/hello" open-type="navigate"> <view class="struct"> I am {{student.age}} yeas old </br> I have skills such as {{student.skill[0]}},{{..
@Override public Page<ProductInfo> findAll(Pageable pageable, ProductInfo productInfo) { //创建一个操作聚合operations List<AggregationOperation> operations = new ArrayList&l...
1、先查看电脑显卡支持的CUDA版本 (1)打开NVIDIA控制面板(点击鼠标右键就能找到)2、查看CUDA对应的cudnn、tensorflow和python版本3、安装CUDA和Cudnn及配置环境为了方便,我把cuda9.0和cudnn7放在网盘链接:https://pan.baidu.com/s/1kx-uhNSLukQmou1-Z6js-w...
当前版本适用于12-13版本产品编号 -> Product Code: kfj6yg6rfyhqcha6cbgs6fsw3kyje7a6qr序列号 -> Serial Number: 276182口令 -> Password: xs374ca
select event, total_waits, time_waitedfrom v$session_eventwhere sid = &sidorder by 3 desc/
因为目前考研分为专硕和学硕之分,所以考研英语也就有了考研英语一和考研英语二的区别。那么二者到底有什么区别呢?接下来这篇文章将很好的为大家解答这个疑惑,也能为哪些英语基础好和不好的同学们提供一些建议。那么英语一和英语二到底有什么不同,希望下面的这篇文章能对大家有所帮助,并且希望大家能够积极采纳。最终在考研中取得好成绩。语法我们首先要根据大纲来看一下英语一和英语二之间的差异。首先反映在对语法的考查上,...
今天整理了一下如何使用SIM800C模块实现通话基本功能。准备阶段:在我上一篇博客中详细写了具体步骤,大家有兴趣可以进去看看。调试阶段:将USB-TTL模块插入电脑,打开串口助手。发送简单的AT指令,检查串口工作是否正常 。AT:返回ok代表最基础的通讯成功。 AT+CSQ: 查询信号质量,信号最大有效值为31,若信号过低,可以检查天线是否装好。【当前信号为12】拨打电话:...
1、Anaconda安装1.1 安装步骤官网下载安装包:点击该网页https://www.anaconda.com/products/individual,跳转后拉到网页最底端,选择合适的版本进行下载:这里我选择了Windows中的64位版本进行下载;下载完成后,运行Anaconda3-2020.07-Windows-x86_64.exe进行安装;在安装过程中,选择安装路径,并勾选Add Anaconda to the system PATH environment,将anacond