javax.net.ssl.SSLException: closing inbound before receiving peer‘s close_notify的解決辦法
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";
相關文章
- 連線mysql資料庫報:javax.net.ssl.SSLException: closing inbound before receiving peer's close_notifyMySql資料庫JavaException
- WARNING: Logging before InitGoogleLogging() is written to STDERR 解決辦法Go
- RuntimeError: Error(s) in loading state_dict for SSD: Missing key(s) in解決辦法Error
- catalog is missing 10 attribute(s)錯誤的解決辦法一例
- kubeadm 部署k8s 映象翻牆解決辦法K8S
- 公寓噪音的解決辦法
- github慢解決辦法Github
- Namespoace Terminating 解決辦法
- 檔案無法粉碎解決辦法
- Vue 下 ESLint 的 error 解決辦法VueEsLintError
- git報錯400的解決辦法Git
- celery Discarding revoked task: ... 的解決辦法
- go grpc: connection reset by peer 的一種解決方案GoRPC
- height:100%失效解決辦法
- jvm:jmap無法dump檔案的解決辦法JVM
- 記vscode無法啟動解決辦法VSCode
- puppeteer 安裝失敗的解決辦法
- ORA-01034: ORACLE not available的解決辦法OracleAI
- idea Git Force Checkout後的解決辦法IdeaGit
- ORA-04031的傻瓜解決辦法(轉)
- php json提交亂碼的解決辦法PHPJSON
- web前端陣列塌陷的解決辦法Web前端陣列
- PHP提示Notice: Undefined variable的解決辦法PHPUndefined
- git出現Permission denied的解決辦法Git
- 方差與偏差的解釋和解決辦法
- vs 擴充套件無法安裝的解決辦法套件
- iPhone突然無法充電的解決辦法 iPhone無法充電怎麼辦iPhone
- -bash: XXX: command not found解決辦法
- cnpm link 報錯解決辦法NPM
- mysql事件關閉解決辦法MySql事件
- IDEA 找不到包解決辦法Idea
- 資料傾斜解決辦法
- SpringBoot 迴圈引用解決辦法Spring Boot
- VScode 更新失敗解決辦法VSCode
- npm install 失敗解決辦法NPM
- github訪問受限解決辦法Github
- 跨域問題解決辦法跨域
- SqlServer鎖表解鎖解決辦法SQLServer