Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg

  2. ,

    Make sure you are using InnoDB storage engine and READ-COMMITTED transaction isolation level and increase the database server innodb_lock_wait_timeout variable to about 500.

Solutions on the web

via Terracotta by crangon, 1 year ago
Couldn't acquire next trigger: Lock wait timeout exceeded; try restarting transaction [See nested exception: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction]
via Terracotta by smali, 1 year ago
Couldn't acquire next trigger: Lock wait timeout exceeded; try restarting transaction [See nested exception: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction]
via terracotta.org by Unknown author, 1 year ago
Couldn't acquire next trigger: Deadlock found when trying to get lock; try restarting transaction [See nested exception: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction]
via Terracotta by mrtrin, 1 year ago
Couldn't acquire next trigger: Deadlock found when trying to get lock; try restarting transaction [See nested exception: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction]
via Terracotta by kowstubh, 1 year ago
Couldn't acquire next trigger: Couldn't retrieve trigger: Transaction (Process ID 62) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. [See nested exception
via Stack Overflow by Vijay
, 2 years ago
Couldn't acquire next trigger: Couldn't retrieve trigger: Transaction (Process ID 248) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. [See nested exception
java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1072)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3563)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3495)	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113)	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2693)	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2102)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2395)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2313)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2298)	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)	at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.updateTriggerStateFromOtherState(StdJDBCDelegate.java:1610)	at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2756)	at org.quartz.impl.jdbcjobstore.JobStoreSupport$36.execute(JobStoreSupport.java:2732)	at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3763)	at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2728)	at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:264)