• mybatis


    D:\develop_tools\JDK\jdk1.8.0_271\bin\java.exe -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\lib\idea_rt.jar=14002:D:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\bin" -Dfile.encoding=UTF-8 -classpath "D:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\lib\idea_rt.jar;D:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\plugins\junit\lib\junit5-rt.jar;D:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\plugins\junit\lib\junit-rt.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\charsets.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\deploy.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\access-bridge-64.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\cldrdata.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\dnsns.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\jaccess.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\jfxrt.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\localedata.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\nashorn.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\sunec.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\sunjce_provider.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\sunmscapi.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\sunpkcs11.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\zipfs.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\javaws.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\jce.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\jfr.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\jfxswt.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\jsse.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\management-agent.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\plugin.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\resources.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\rt.jar;D:\workspace\code\Myabtis-Study\mybatis-01\target\test-classes;D:\workspace\code\Myabtis-Study\mybatis-01\target\classes;D:\common_tools\RepMaven\repository\mysql\mysql-connector-java\5.1.47\mysql-connector-java-5.1.47.jar;D:\common_tools\RepMaven\repository\org\mybatis\mybatis\3.5.2\mybatis-3.5.2.jar;D:\common_tools\RepMaven\repository\junit\junit\4.12\junit-4.12.jar;D:\common_tools\RepMaven\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar" com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 com.kuang.dao.UserDaoTest,getUserLike

    org.apache.ibatis.exceptions.PersistenceException:
    ### Error querying database.  Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

    The last packet successfully received from the server was 371 milliseconds ago.  The last packet sent successfully to the server was 368 milliseconds ago.
    ### The error may exist in com/kuang/dao/UserMapper.xml
    ### The error may involve com.kuang.dao.UserMapper.getUserLike
    ### The error occurred while executing a query
    ### Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

    The last packet successfully received from the server was 371 milliseconds ago.  The last packet sent successfully to the server was 368 milliseconds ago.

        at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
        at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)
        at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
        at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:147)
        at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:80)
        at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:57)
        at com.sun.proxy.$Proxy4.getUserLike(Unknown Source)
        at com.kuang.dao.UserDaoTest.getUserLike(UserDaoTest.java:21)
        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$1.execute(IdeaTestRunner.java:38)
        at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
        at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
        at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
        at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
    Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

    The last packet successfully received from the server was 371 milliseconds ago.  The last packet sent successfully to the server was 368 milliseconds ago.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        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:4914)
        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:2199)
        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2230)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2025)
        at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:778)
        at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        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 java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:208)
        at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.doGetConnection(UnpooledDataSource.java:221)
        at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.doGetConnection(UnpooledDataSource.java:216)
        at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.getConnection(UnpooledDataSource.java:95)
        at org.apache.ibatis.datasource.pooled.PooledDataSource.popConnection(PooledDataSource.java:422)
        at org.apache.ibatis.datasource.pooled.PooledDataSource.getConnection(PooledDataSource.java:89)
        at org.apache.ibatis.transaction.jdbc.JdbcTransaction.openConnection(JdbcTransaction.java:138)
        at org.apache.ibatis.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:60)
        at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336)
        at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:85)
        at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)
        at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)
        at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
        at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
        at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)
        at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)
        ... 30 more
    Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
        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:340)
        at sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:293)
        at sun.security.ssl.TransportContext.dispatch(TransportContext.java:186)
        at sun.security.ssl.SSLTransport.decode(SSLTransport.java:154)
        at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1279)
        at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1188)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:401)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:373)
        at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:186)
        ... 62 more


    Process finished with exit code -1

    
    

    useSSL=true 改成false

  • 相关阅读:
    【时序数据库InfluxDB】Windows环境下配置InfluxDB+数据可视化,以及使用 C#进行简单操作的代码实例
    【CSS动效实战(纯CSS与JS动效)】02 flex 布局实战(仿 JD 及 gitCode 布局)及 media 自适应初探
    点击化学DBCO-PEG-FITC|二苯并环辛炔-聚乙二醇-异硫氰基荧光素
    代码随想录算法训练营 动态规划part16
    别再用 System.currentTimeMillis 统计耗时了,太LOW,这个工具类好用到爆!
    Elasticsearch 分片内部原理—近实时搜索、持久化变更
    【树莓派不吃灰】命令篇② 常用文件管理命令
    vscode语言插件开发资料
    软考网工选择题易错总结(2020下~2022下)
    530. 二叉搜索树的最小绝对差
  • 原文地址:https://blog.csdn.net/arbalest1080/article/details/134543473