Mybatis-the problem about mysql is very anxious. I did not configure a transaction to report the transaction connection error.

Source: Internet
Author: User
I can query all the orders and then export them in excel. I didn't configure the transactions involved in the transactions. why is the previous connection several times a day after the deployment to the remote end? why? The excuse for multiple requests will become normal. I hope that you can help me analyze. com. mysql. jdbc. exceptions. jdbc4.MySQLNonTransientConnectionException: Communicationslinkfailureduringrollback (). Transactionresolution... mybatismylexcel

I can query all the orders and then export them in excel. I didn't configure the transactions involved in the transactions. why is the previous connection several times a day after the deployment to the remote end? why? The excuse of multiple requests will become normal, and I hope my God can help me analyze it.

Com. mysql. jdbc. exceptions. jdbc4.MySQLNonTransientConnectionException: Communications link failure during rollback (). Transaction resolution unknown.
Sun. reflect. NativeConstructorAccessorImpl. newInstance0 (Native Method)
Sun. reflect. NativeConstructorAccessorImpl. newInstance (NativeConstructorAccessorImpl. java: 39)
Sun. reflect. delegatingconstruct%cessorimpl. newInstance (delegatingconstruct%cessorimpl. java: 27)
Java. lang. reflect. Constructor. newInstance (Constructor. java: 513)
Com. mysql. jdbc. Util. handleNewInstance (Util. java: 411)
Com. mysql. jdbc. Util. getInstance (Util. java: 386)
Com. mysql. jdbc. SQLError. createSQLException (SQLError. java: 1015)
Com. mysql. jdbc. SQLError. createSQLException (SQLError. java: 989)
Com. mysql. jdbc. SQLError. createSQLException (SQLError. java: 975)
Com. mysql. jdbc. SQLError. createSQLException (SQLError. java: 920)
Com. mysql. jdbc. ConnectionImpl. rollback (ConnectionImpl. java: 5068)
Org. apache. ibatis. datasource. pooled. PooledDataSource. popConnection (PooledDataSource. java: 391)
Org. apache. ibatis. datasource. pooled. PooledDataSource. getConnection (PooledDataSource. java: 82)
Org. apache. ibatis. transaction. jdbc. JdbcTransaction. openConnection (JdbcTransaction. java: 131)
Org. apache. ibatis. transaction. jdbc. JdbcTransaction. getConnection (JdbcTransaction. java: 58)
Org.apache.ibatis.exe cutor. BaseExecutor. getConnection (BaseExecutor. java: 271)
Org.apache.ibatis.exe cutor. SimpleExecutor. prepareStatement (SimpleExecutor. java: 69)
Org.apache.ibatis.exe cutor. SimpleExecutor. doQuery (SimpleExecutor. java: 56)
Org.apache.ibatis.exe cutor. BaseExecutor. queryFromDatabase (BaseExecutor. java: 259)
Org.apache.ibatis.exe cutor. BaseExecutor. query (BaseExecutor. java: 132)
Org.apache.ibatis.exe cutor. CachingExecutor. query (CachingExecutor. java: 105)
Org.apache.ibatis.exe cutor. CachingExecutor. query (CachingExecutor. java: 81)
Org. apache. ibatis. session. defaults. DefaultSqlSession. selectList (DefaultSqlSession. java: 104)
Org. apache. ibatis. session. defaults. DefaultSqlSession. selectList (DefaultSqlSession. java: 98)
Org.apache.ibatis.binding.MapperMethod.exe cuteForMany (MapperMethod. java: 114)
Org.apache.ibatis.binding.MapperMethod.exe cute (MapperMethod. java: 58)
Org. apache. ibatis. binding. MapperProxy. invoke (MapperProxy. java: 43)
$ Proxy6.findByDate (Unknown Source)
Com. axinpay. orderToExcel. service. impl. OrderInfoServiceImpl. findByDate (OrderInfoServiceImpl. java: 20)
Com. axinpay. orderToExcel. servlet. OrderInfoServlet. service (OrderInfoServlet. java: 61)
Javax. servlet. http. HttpServlet. service (HttpServlet. java: 731)
Note The full stack trace of the root cause is available in the Apache Tomcat/7.0.63 logs.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.