Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2017-03-10 07:14:22,230 [pool-5-thread-1 ] [DEBUG] [SQLErrorCodesFactory.getErrorCodes]:175 - SQL error codes for 'MySQL' found
- 2017-03-10 07:14:22,231 [pool-5-thread-1 ] [DEBUG] [SQLErrorCodeSQLExceptionTranslator.logTranslation]:397 - Translating SQLException with SQL state '41000', error code '1205', message [Lock wait timeout exceeded; try restarting transaction]; SQL was [] for task [
- ### Error updating database. Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- ### The error may involve com.petrosoftinc.pos.core.dao.mybatis.SettingDao.update-Inline
- ### The error occurred while setting parameters
- ### SQL: UPDATE setting SET setting_value = ?, setting_key = ? WHERE id = ?
- ### Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- ]
- 2017-03-10 07:14:22,232 [pool-5-thread-1 ] [ERROR] [ScheduledTasks.syncOutdoorTransactions]:304 - syncOutdoorTransactions
- org.springframework.dao.CannotAcquireLockException:
- ### Error updating database. Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- ### The error may involve com.petrosoftinc.pos.core.dao.mybatis.SettingDao.update-Inline
- ### The error occurred while setting parameters
- ### SQL: UPDATE setting SET setting_value = ?, setting_key = ? WHERE id = ?
- ### Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- ; SQL []; Lock wait timeout exceeded; try restarting transaction; nested exception is java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:259)
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
- at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:74)
- at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:399)
- at com.sun.proxy.$Proxy37.update(Unknown Source)
- at org.mybatis.spring.SqlSessionTemplate.update(SqlSessionTemplate.java:269)
- at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:55)
- at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:53)
- at com.sun.proxy.$Proxy39.update(Unknown Source)
- at com.petrosoftinc.pos.core.services.domain.SettingService.setSetting(SettingService.java:104)
- at com.petrosoftinc.pos.core.services.domain.SettingService.setDateSetting(SettingService.java:89)
- at com.petrosoftinc.pos.core.services.enterprise.forecourt.OutdoorTransactionService.updateSyncDate(OutdoorTransactionService.java:84)
- at com.petrosoftinc.pos.core.services.enterprise.forecourt.OutdoorTransactionService.syncOutdoorTransactions(OutdoorTransactionService.java:72)
- at com.petrosoftinc.pos.core.schedules.ScheduledTasks.syncOutdoorTransactions(ScheduledTasks.java:302)
- at sun.reflect.GeneratedMethodAccessor525.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:497)
- at com.petrosoftinc.pos.core.annotations.PosScheduledMethodRunnable.run(PosScheduledMethodRunnable.java:30)
- at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
- at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
- at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
- at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
- at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:998)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3847)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3783)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2447)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2594)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)
- at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1901)
- at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1193)
- at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:497)
- at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59)
- at com.sun.proxy.$Proxy63.execute(Unknown Source)
- at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:45)
- at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:73)
- at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:49)
- at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:115)
- at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:75)
- at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:170)
- at sun.reflect.GeneratedMethodAccessor313.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:497)
- at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:386)
- ... 22 more
- 2017-03-10 07:14:22,235 [pool-5-thread-1 ] [INFO ] [PosScheduledMethodRunnable.run]:28 - Schedule start: schedules.check_forecourt_controller_service_state
- 2017-03-10 07:14:22,235 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting MODULE_FUEL=1
- 2017-03-10 07:14:22,235 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting HARDWARE_FORECOURT_CONTROLLER=1
- 2017-03-10 07:14:22,235 [pool-5-thread-1 ] [INFO ] [PosScheduledMethodRunnable.run]:28 - Schedule start: schedules.check_access_code
- 2017-03-10 07:14:22,236 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting SUPPORT_STATUS=0
- 2017-03-10 07:14:22,236 [pool-5-thread-1 ] [INFO ] [PosScheduledMethodRunnable.run]:28 - Schedule start: schedules.check_eps_financial_host_state
- 2017-03-10 07:14:22,236 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting HARDWARE_CREDIT_CARD_PROCESSOR=5
- 2017-03-10 07:14:22,237 [pool-5-thread-1 ] [DEBUG] [ForecourtEpsService.logSendRequest]:1143 - Send request <diagnosisOnline>
- 2017-03-10 07:14:22,632 [pool-5-thread-1 ] [DEBUG] [FusionEpsTransportAPI.sendRequest]:183 - [POS -> EPS]
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <ServiceRequest RequestType="Diagnosis" ApplicationSender="SmartPOS" WorkstationID="POS022" POPID="001" RequestID="596085305853238" POSAddress="192.168.116.18" xmlns="http://www.nrf-arts.org/IXRetail/namespace">
- <POSData StatusReq="Online">
- <POSTimeStamp>2017-03-10T07:14:22.236-05:00</POSTimeStamp>
- </POSData>
- </ServiceRequest>
- 2017-03-10 07:14:24,084 [pool-5-thread-1 ] [DEBUG] [FusionEpsTransportAPI.parseResponse]:343 - [EPS -> POS]
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <ServiceResponse RequestType="Diagnosis" ApplicationSender="SmartPOS" WorkstationID="POS022" POPID="001" RequestID="596085305853238" OverallResult="Success" xmlns="http://www.nrf-arts.org/IXRetail/namespace"/>
- 2017-03-10 07:14:24,134 [pool-5-thread-1 ] [DEBUG] [ForecourtEpsService.logGetResponse]:1147 - Get response <diagnosisOnline>
- 2017-03-10 07:14:24,134 [pool-5-thread-1 ] [INFO ] [PosScheduledMethodRunnable.run]:28 - Schedule start: schedules.third_party_back_office.check_update
- 2017-03-10 07:14:24,135 [pool-5-thread-1 ] [INFO ] [OperationStatisticService.start]:24 - [START] THIRD_PARTY_BACK_OFFICE_UPDATE
- 2017-03-10 07:14:24,135 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting THIRD_PARTY_BACK_OFFICE_ENABLED=0
- 2017-03-10 07:14:24,135 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting THIRD_PARTY_BACK_OFFICE_LOGIN=
- 2017-03-10 07:14:24,135 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting THIRD_PARTY_BACK_OFFICE_PASSWORD=
- 2017-03-10 07:14:24,136 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting THIRD_PARTY_BACK_OFFICE_GENERATE_CASHIER_REPORT=0
- 2017-03-10 07:14:24,136 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting THIRD_PARTY_BACK_OFFICE_GENERATE_DAY_REPORT=0
- 2017-03-10 07:14:24,136 [pool-5-thread-1 ] [INFO ] [OperationStatisticService.end]:43 - [END] THIRD_PARTY_BACK_OFFICE_UPDATE duration: 1 ms
- 2017-03-10 07:14:24,136 [pool-5-thread-1 ] [INFO ] [PosScheduledMethodRunnable.run]:28 - Schedule start: schedules.pjr_export
- 2017-03-10 07:14:24,137 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting PJR_ENABLED=0
- 2017-03-10 07:14:26,143 [Thread-11 ] [DEBUG] [FusionTransportAPI.startHeartbeatThread]:390 - [POS -> FDC]
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <POSMessage MessageType="POS_Ready" ApplicationSender="POS022" WorkstationID="POS022" MessageID="182">
- <POSdata>
- <POSTimeStamp>2017-03-10T07:14:26</POSTimeStamp>
- </POSdata>
- </POSMessage>
- 2017-03-10 07:14:30,011 [Thread-10 ] [DEBUG] [FusionTransportAPI.parseResponse]:313 - [FDC -> POS]
- <?xml version="1.0" encoding="UTF-8" ?>
- <FDCMessage MessageType="FDC_Ready" ApplicationSender="POS022" WorkstationID="POS022" MessageID="182" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <FDCdata>
- <FDCTimeStamp>2017-03-10T07:14:58</FDCTimeStamp>
- </FDCdata>
- </FDCMessage>
- 2017-03-10 07:14:36,144 [Thread-11 ] [DEBUG] [FusionTransportAPI.startHeartbeatThread]:390 - [POS -> FDC]
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <POSMessage MessageType="POS_Ready" ApplicationSender="POS022" WorkstationID="POS022" MessageID="183">
- <POSdata>
- <POSTimeStamp>2017-03-10T07:14:36</POSTimeStamp>
- </POSdata>
- </POSMessage>
- 2017-03-10 07:14:36,468 [pool-4-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting MODULE_VIDEO_JOURNAL=0
- 2017-03-10 07:14:36,468 [pool-4-thread-1 ] [INFO ] [VideoJournalService.checkAndSendIps]:404 - checkAndSendIps: video jounal or NAS mode disabled
- 2017-03-10 07:14:36,468 [pool-4-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting MODULE_VIDEO_JOURNAL=0
- 2017-03-10 07:14:36,469 [pool-4-thread-1 ] [INFO ] [VideoJournalService.checkNasConnection]:415 - check NAS connection: video jounal or NAS mode disabled
- 2017-03-10 07:14:36,474 [pool-4-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting MODULE_VIDEO_JOURNAL=0
- 2017-03-10 07:14:36,474 [pool-4-thread-1 ] [INFO ] [VideoJournalService.createScreenshots]:285 - createScreenshots: video jounal disabled
- 2017-03-10 07:14:36,484 [pool-5-thread-1 ] [INFO ] [PosScheduledMethodRunnable.run]:28 - Schedule start: schedules.send_pricebook_backup_to_cso
- 2017-03-10 07:14:36,485 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting IS_PRICEBOOK_CHANGED_MANUALLY=0
- 2017-03-10 07:14:36,540 [pool-5-thread-1 ] [INFO ] [PosScheduledMethodRunnable.run]:28 - Schedule start: schedules.nightly_reports_send
- 2017-03-10 07:14:36,540 [pool-5-thread-1 ] [INFO ] [NightlyReportService.sendReports]:186 - Start process for Nightly send files
- 2017-03-10 07:14:36,540 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting SALES_DATA_FTP_HOST=
- 2017-03-10 07:14:36,541 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting SALES_DATA_FTP_PORT=21
- 2017-03-10 07:14:36,541 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting SALES_DATA_FTP_USERNAME=
- 2017-03-10 07:14:36,541 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting SALES_DATA_FTP_PASSWORD=
- 2017-03-10 07:14:36,541 [pool-5-thread-1 ] [DEBUG] [SettingService.getSetting]:60 - Read setting SALES_DATA_FTP_PATH=
- 2017-03-10 07:14:36,541 [pool-5-thread-1 ] [DEBUG] [SqlSessionUtils.getSqlSession]:99 - Creating a new SqlSession
- 2017-03-10 07:14:36,542 [pool-5-thread-1 ] [DEBUG] [SqlSessionUtils.registerSessionHolder]:150 - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@3417b4] was not registered for synchronization because synchronization is not active
- 2017-03-10 07:14:36,542 [pool-5-thread-1 ] [DEBUG] [DataSourceUtils.doGetConnection]:110 - Fetching JDBC Connection from DataSource
- 2017-03-10 07:14:36,542 [pool-5-thread-1 ] [DEBUG] [DriverManagerDataSource.getConnectionFromDriver]:142 - Creating new JDBC DriverManager Connection to [jdbc:mysql://localhost:3306/symfony?allowMultiQueries=true&useServerPrepStmts=false&rewriteBatchedStatements=true]
- 2017-03-10 07:14:36,546 [pool-5-thread-1 ] [DEBUG] [SpringManagedTransaction.openConnection]:87 - JDBC Connection [com.mysql.jdbc.JDBC4Connection@1175218] will not be managed by Spring
- 2017-03-10 07:14:36,547 [pool-5-thread-1 ] [DEBUG] [BaseJdbcLogger.debug]:142 - ==> Preparing: SELECT * FROM nightly_report_history WHERE status = 2 ORDER BY id
- 2017-03-10 07:14:36,548 [pool-5-thread-1 ] [DEBUG] [BaseJdbcLogger.debug]:142 - ==> Parameters:
- 2017-03-10 07:14:36,550 [pool-5-thread-1 ] [DEBUG] [BaseJdbcLogger.debug]:142 - <== Total: 0
- 2017-03-10 07:14:36,550 [pool-5-thread-1 ] [DEBUG] [SqlSessionUtils.closeSqlSession]:193 - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@3417b4]
- 2017-03-10 07:14:36,551 [pool-5-thread-1 ] [DEBUG] [DataSourceUtils.doReleaseConnection]:327 - Returning JDBC Connection to DataSource
- 2017-03-10 07:14:36,552 [pool-5-thread-1 ] [INFO ] [NightlyReportService.sendReports]:232 - End process for Nightly send files
- 2017-03-10 07:14:36,609 [pool-5-thread-1 ] [INFO ] [PosScheduledMethodRunnable.run]:28 - Schedule start: schedules.update_drivers
- 2017-03-10 07:14:36,610 [pool-5-thread-1 ] [DEBUG] [SqlSessionUtils.getSqlSession]:99 - Creating a new SqlSession
- 2017-03-10 07:14:36,610 [pool-5-thread-1 ] [DEBUG] [SqlSessionUtils.registerSessionHolder]:150 - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1f19291] was not registered for synchronization because synchronization is not active
- 2017-03-10 07:14:36,611 [pool-5-thread-1 ] [DEBUG] [DataSourceUtils.doGetConnection]:110 - Fetching JDBC Connection from DataSource
- 2017-03-10 07:14:36,611 [pool-5-thread-1 ] [DEBUG] [DriverManagerDataSource.getConnectionFromDriver]:142 - Creating new JDBC DriverManager Connection to [jdbc:mysql://localhost:3306/symfony?allowMultiQueries=true&useServerPrepStmts=false&rewriteBatchedStatements=true]
- 2017-03-10 07:14:36,615 [pool-5-thread-1 ] [DEBUG] [SpringManagedTransaction.openConnection]:87 - JDBC Connection [com.mysql.jdbc.JDBC4Connection@45e086] will not be managed by Spring
- 2017-03-10 07:14:36,616 [pool-5-thread-1 ] [DEBUG] [BaseJdbcLogger.debug]:142 - ==> Preparing: SELECT * FROM role WHERE title = ? AND is_active = 1 LIMIT 1
- 2017-03-10 07:14:36,616 [pool-5-thread-1 ] [DEBUG] [BaseJdbcLogger.debug]:142 - ==> Parameters: Courier(String)
- 2017-03-10 07:14:36,617 [pool-5-thread-1 ] [DEBUG] [BaseJdbcLogger.debug]:142 - <== Total: 1
- 2017-03-10 07:14:36,618 [pool-5-thread-1 ] [DEBUG] [SqlSessionUtils.closeSqlSession]:193 - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1f19291]
- 2017-03-10 07:14:36,619 [pool-5-thread-1 ] [DEBUG] [DataSourceUtils.doReleaseConnection]:327 - Returning JDBC Connection to DataSource
- 2017-03-10 07:14:36,619 [pool-5-thread-1 ] [DEBUG] [SqlSessionUtils.getSqlSession]:99 - Creating a new SqlSession
- 2017-03-10 07:14:36,620 [pool-5-thread-1 ] [DEBUG] [SqlSessionUtils.registerSessionHolder]:150 - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@33318b] was not registered for synchronization because synchronization is not active
- 2017-03-10 07:14:36,620 [pool-5-thread-1 ] [DEBUG] [DataSourceUtils.doGetConnection]:110 - Fetching JDBC Connection from DataSource
- 2017-03-10 07:14:36,621 [pool-5-thread-1 ] [DEBUG] [DriverManagerDataSource.getConnectionFromDriver]:142 - Creating new JDBC DriverManager Connection to [jdbc:mysql://localhost:3306/symfony?allowMultiQueries=true&useServerPrepStmts=false&rewriteBatchedStatements=true]
- 2017-03-10 07:14:36,625 [pool-5-thread-1 ] [DEBUG] [SpringManagedTransaction.openConnection]:87 - JDBC Connection [com.mysql.jdbc.JDBC4Connection@dedf5d] will not be managed by Spring
- 2017-03-10 07:14:36,626 [pool-5-thread-1 ] [DEBUG] [BaseJdbcLogger.debug]:142 - ==> Preparing: SELECT * FROM pos_users WHERE role_id= ? and is_clockin=1
- 2017-03-10 07:14:36,626 [pool-5-thread-1 ] [DEBUG] [BaseJdbcLogger.debug]:142 - ==> Parameters: 35(Integer)
- 2017-03-10 07:14:36,627 [pool-5-thread-1 ] [DEBUG] [BaseJdbcLogger.debug]:142 - <== Total: 0
- 2017-03-10 07:14:36,628 [pool-5-thread-1 ] [DEBUG] [SqlSessionUtils.closeSqlSession]:193 - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@33318b]
- 2017-03-10 07:14:36,628 [pool-5-thread-1 ] [DEBUG] [DataSourceUtils.doReleaseConnection]:327 - Returning JDBC Connection to DataSource
- 2017-03-10 07:14:36,629 [pool-5-thread-1 ] [INFO ] [PosScheduledMethodRunnable.run]:28 - Schedule start: schedules.garbage_collect
- 2017-03-10 07:14:36,629 [pool-5-thread-1 ] [INFO ] [GarbageCollectorService.runGarbageCollect]:28 - Garbage collect start
- 2017-03-10 07:14:36,629 [pool-5-thread-1 ] [INFO ] [GarbageCollectorService.isLoginScreenActive]:57 - User is not on login screen
- 2017-03-10 07:14:36,629 [pool-5-thread-1 ] [INFO ] [GarbageCollectorService.runGarbageCollect]:32 - Garbage collect finish
- 2017-03-10 07:14:37,141 [pool-3-thread-4 ] [DEBUG] [SqlSessionUtils.closeSqlSession]:188 - Releasing transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@634c58]
- 2017-03-10 07:14:37,142 [pool-3-thread-4 ] [DEBUG] [SQLErrorCodesFactory.getErrorCodes]:199 - Looking up default SQLErrorCodes for DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@6d3a51]
- 2017-03-10 07:14:37,144 [pool-3-thread-4 ] [DEBUG] [SQLErrorCodesFactory.getErrorCodes]:207 - SQLErrorCodes found in cache for DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@6d3a51]
- 2017-03-10 07:14:37,144 [pool-3-thread-4 ] [DEBUG] [SQLErrorCodeSQLExceptionTranslator.logTranslation]:397 - Translating SQLException with SQL state '41000', error code '1205', message [Lock wait timeout exceeded; try restarting transaction]; SQL was [] for task [
- ### Error updating database. Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- ### The error may involve com.petrosoftinc.pos.core.dao.mybatis.SyncQueueDao.removeByIdNameAndKey-Inline
- ### The error occurred while setting parameters
- ### SQL: DELETE FROM sync_queue WHERE entity_id = ? AND entity_name = ? AND license_key = ?
- ### Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- ]
- 2017-03-10 07:14:37,146 [pool-3-thread-4 ] [DEBUG] [SqlSessionUtils$SqlSessionSynchronization.beforeCompletion]:312 - Transaction synchronization deregistering SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@634c58]
- 2017-03-10 07:14:37,146 [pool-3-thread-4 ] [DEBUG] [SqlSessionUtils$SqlSessionSynchronization.beforeCompletion]:317 - Transaction synchronization closing SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@634c58]
- 2017-03-10 07:14:37,146 [pool-3-thread-4 ] [DEBUG] [AbstractPlatformTransactionManager.processRollback]:851 - Initiating transaction rollback
- 2017-03-10 07:14:37,147 [pool-3-thread-4 ] [DEBUG] [DataSourceTransactionManager.doRollback]:284 - Rolling back JDBC transaction on Connection [com.mysql.jdbc.JDBC4Connection@12f09f0]
- 2017-03-10 07:14:37,148 [pool-3-thread-4 ] [DEBUG] [DataSourceTransactionManager.doCleanupAfterCompletion]:327 - Releasing JDBC Connection [com.mysql.jdbc.JDBC4Connection@12f09f0] after transaction
- 2017-03-10 07:14:37,148 [pool-3-thread-4 ] [DEBUG] [DataSourceUtils.doReleaseConnection]:327 - Returning JDBC Connection to DataSource
- 2017-03-10 07:14:37,149 [pool-3-thread-4 ] [ERROR] [TcpStreamHandler.onMessage]:64 -
- ### Error updating database. Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- ### The error may involve com.petrosoftinc.pos.core.dao.mybatis.SyncQueueDao.removeByIdNameAndKey-Inline
- ### The error occurred while setting parameters
- ### SQL: DELETE FROM sync_queue WHERE entity_id = ? AND entity_name = ? AND license_key = ?
- ### Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- ; SQL []; Lock wait timeout exceeded; try restarting transaction; nested exception is java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- org.springframework.dao.CannotAcquireLockException:
- ### Error updating database. Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- ### The error may involve com.petrosoftinc.pos.core.dao.mybatis.SyncQueueDao.removeByIdNameAndKey-Inline
- ### The error occurred while setting parameters
- ### SQL: DELETE FROM sync_queue WHERE entity_id = ? AND entity_name = ? AND license_key = ?
- ### Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- ; SQL []; Lock wait timeout exceeded; try restarting transaction; nested exception is java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:259)
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
- at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:74)
- at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:399)
- at com.sun.proxy.$Proxy37.delete(Unknown Source)
- at org.mybatis.spring.SqlSessionTemplate.delete(SqlSessionTemplate.java:285)
- at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:58)
- at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:53)
- at com.sun.proxy.$Proxy144.removeByIdNameAndKey(Unknown Source)
- at com.petrosoftinc.pos.core.services.domain.SyncQueueService.removeByIdNameAndKey(SyncQueueService.java:38)
- at com.petrosoftinc.pos.core.services.domain.SyncQueueService$$FastClassBySpringCGLIB$$31330665.invoke(<generated>)
- at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
- at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
- at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
- at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
- at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
- at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)
- at com.petrosoftinc.pos.core.services.domain.SyncQueueService$$EnhancerBySpringCGLIB$$7d6fe44a.removeByIdNameAndKey(<generated>)
- at com.petrosoftinc.pos.core.services.enterprise.entitysync.processors.SyncCompletedProcessor.onMessage(SyncCompletedProcessor.java:31)
- at com.petrosoftinc.pos.core.services.enterprise.qsintegration.QsMessageHandler.receive(QsMessageHandler.java:47)
- at com.petrosoftinc.pos.core.services.enterprise.tcpintegration.AbstractJsonMessageHandler.receive(AbstractJsonMessageHandler.java:53)
- at com.petrosoftinc.pos.core.services.enterprise.entitysync.processors.SubMessageProcessor.onMessage(SubMessageProcessor.java:29)
- at com.petrosoftinc.pos.core.services.enterprise.qsintegration.QsMessageHandler.receive(QsMessageHandler.java:47)
- at com.petrosoftinc.pos.core.services.enterprise.tcpintegration.AbstractJsonMessageHandler.receive(AbstractJsonMessageHandler.java:53)
- at com.petrosoftinc.pos.core.services.enterprise.tcpintegration.TcpStreamHandler.onMessage(TcpStreamHandler.java:61)
- at com.petrosoftinc.pos.core.services.enterprise.tcpintegration.TcpStreamHandler.onRead(TcpStreamHandler.java:54)
- at com.petrosoftinc.pos.core.services.enterprise.tcpintegration.TcpStreamHandler$ReadHandler.completed(TcpStreamHandler.java:99)
- at com.petrosoftinc.pos.core.services.enterprise.tcpintegration.TcpStreamHandler$ReadHandler.completed(TcpStreamHandler.java:82)
- at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
- at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishRead(UnixAsynchronousSocketChannelImpl.java:430)
- at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:191)
- at sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:213)
- at sun.nio.ch.EPollPort$EventHandlerTask.run(EPollPort.java:293)
- at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:998)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3847)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3783)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2447)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2594)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)
- at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1901)
- at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1193)
- at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:497)
- at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59)
- at com.sun.proxy.$Proxy63.execute(Unknown Source)
- at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:45)
- at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:73)
- at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:49)
- at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:115)
- at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:75)
- at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:170)
- at org.apache.ibatis.session.defaults.DefaultSqlSession.delete(DefaultSqlSession.java:185)
- at sun.reflect.GeneratedMethodAccessor538.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:497)
- at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:386)
- ... 35 more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement