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
- OpenStack 的NAT解決辦法
- 公寓噪音的解決辦法
- WARNING: Logging before InitGoogleLogging() is written to STDERR 解決辦法Go
- kubeadm 部署k8s 映象翻牆解決辦法K8S
- Git衝突:commit your changes or stash them before you can merge. 解決辦法GitMIT
- SVN被鎖的解決辦法
- ORA-28056的解決辦法
- job都停了的解決辦法
- github慢解決辦法Github
- Grub Rescue解決辦法
- /dev/null解決辦法devNull
- MSBuild Tools解決辦法UI
- RuntimeError: Error(s) in loading state_dict for SSD: Missing key(s) in解決辦法Error
- 新浪UC無法登入的解決辦法
- 無法訪問google picasa的解決辦法Go
- 檔案無法粉碎解決辦法
- 該文件未能列印的解決辦法
- MySQL 忘記口令的解決辦法MySql
- Spark on mesos的坑以及解決辦法Spark
- mongodb日誌太大的解決辦法MongoDB
- ORA-16038 的解決辦法
- oracle imp過慢的解決辦法Oracle
- git報錯400的解決辦法Git
- catalog is missing 10 attribute(s)錯誤的解決辦法一例
- android ExceptionInInitializerError解決辦法AndroidExceptionError
- Could not find *.apk!解決辦法APK
- man出錯解決辦法
- ARP病毒解決辦法
- tar包解壓not in gzip format的解決辦法ORM
- jvm:jmap無法dump檔案的解決辦法JVM
- 登錄檔無法開啟的解決辦法
- 印表機無法列印的原因與解決辦法
- Xamarin Android SDK無法更新的解決辦法Android
- 微信域名被封的原因及解決辦法
- Vue 下 ESLint 的 error 解決辦法VueEsLintError
- PHP提示Notice: Undefined variable的解決辦法PHPUndefined
- web前端陣列塌陷的解決辦法Web前端陣列