java.sql.SQLException: null: 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
null: Deadlock found when trying to get lock; Try restarting transaction
java.sql.SQLException: null: Deadlock found when trying to get lock; Try restarting transaction
at org.gjt.mm.mysql.MysqlIO.nextRow(Unknown Source)
at org.gjt.mm.mysql.MysqlIO.getResultSet(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.executeQuery(Unknown Source)
at com.solarmetric.kodo.impl.jdbc.datasource.StatementImpl.executeQuery(StatementImpl.java:38)
at com.solarmetric.kodo.impl.jdbc.sql.Select.execute(Select.java:242)
at com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(ClassMapping.java:860)
at com.solarmetric.kodo.impl.jdbc.ormapping.ManyToManyMapping.load(ManyToManyMapping.java:126)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.load(JDBCStoreManager.java:343)
at com.solarmetric.kodo.runtime.datacache.DataCacheStoreManager.load(DataCacheStoreManager.java:253)
at com.solarmetric.kodo.runtime.StateManagerImpl.loadField(StateManagerImpl.java:1890)
at com.solarmetric.kodo.runtime.StateManagerImpl.isLoaded(StateManagerImpl.java:663)
at net.nearlythere.business.data.Site.jdoGetuser(Site.java)
at net.nearlythere.business.data.Site.getUsers(Site.java:168)
at net.nearlythere.business.CoreSiteBuilder.getPerformers(CoreSiteBuilder.java:883)
at net.nearlythere.business.CoreSiteBuilder.getShows(CoreSiteBuilder.java:1041)
at net.nearlythere.business.CoreSiteBuilder.getLiveShows(CoreSiteBuilder.java:3101)
at net.nearlythere.business.CoreSiteBuilder.getLiveShows(CoreSiteBuilder.java:3077)
at net.nearlythere.frontend.utils.CoreTool.getLiveShows(CoreTool.java:157)
at net.nearlythere.frontend.utils.CoreTool.getRandomLiveShow(CoreTool.java:102)
at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:259)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:357)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:135)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:215)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
at org.apache.velocity.runtime.directive.Parse.render(Parse.java:232)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
at org.apache.velocity.Template.merge(Template.java:296)
at org.apache.velocity.servlet.VelocityServlet.mergeTemplate(VelocityServlet.java:448)
at org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:387)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

Users with the same issue

You are the first who have seen this exception.

Write tip

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