java.sql.SQLException: General error: Deadlock found when trying to get lock; Try restarting transaction

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

Solutions on the web

via Oracle Community by 3004, 1 year ago
General error: Deadlock found when trying to get lock; Try restarting transaction
via Oracle Community by 3004, 1 year ago
General error: Table 'jdo_schema_metadatax' already exists
via Oracle Community by 843835, 1 year ago
Column not found: Unknown column 'Jane' in 'field list'
via Google Groups by ukal...@hotmail.com, 2 years ago
Syntax error or access violation: Query was empty
via mysql.com by Unknown author, 2 years ago
Syntax error or access violation: Query was empty
via Google Groups by ukal...@my-deja.com, 2 years ago
Syntax error or access violation: Query was empty
java.sql.SQLException: General error: Deadlock found when trying to get lock; Try restarting transaction
at org.gjt.mm.mysql.MysqlIO.sendCommand(Unknown Source)
at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(Unknown Source)
at org.gjt.mm.mysql.MysqlIO.sqlQuery(Unknown Source)
at org.gjt.mm.mysql.Connection.execSQL(Unknown Source)
at org.gjt.mm.mysql.Connection.execSQL(Unknown Source)
at org.gjt.mm.mysql.jdbc2.Statement.executeUpdate(Unknown Source)
at com.solarmetric.kodo.impl.jdbc.datasource.StatementImpl.executeUpdate(StatementImpl.java:71)
at com.solarmetric.kodo.impl.jdbc.sql.NonSelectingSQL.execute(NonSelectingSQL.java:44)
at com.solarmetric.kodo.impl.jdbc.ormapping.FlatClassMapping.update(FlatClassMapping.java:155)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.update(JDBCStoreManager.java:347)
at com.solarmetric.kodo.runtime.StateManagerImpl.storeFields(StateManagerImpl.java:1808)
at com.solarmetric.kodo.runtime.PDirtyState.flush(PDirtyState.java:37)
at com.solarmetric.kodo.runtime.StateManagerImpl.flush(StateManagerImpl.java:480)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:555)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:393)
at net.nearlythere.business.BaseBusiness.end(BaseBusiness.java:249)
at net.nearlythere.business.BaseBusiness.finalize(BaseBusiness.java:262)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.