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 GitHub by snebel29
, 1 year ago
Hibernate operation: could not execute statement; SQL [n/a]; Lock wait timeout exceeded; try restarting transaction; nested exception is java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
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:3835)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3771)	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2535)	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1911)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2145)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2081)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2066)	at rundeck.services.ProjectService$_deleteProject_closure27_closure65.doCall(ProjectService.groovy:1000)	at rundeck.services.ProjectService$_deleteProject_closure27.doCall(ProjectService.groovy:999)	at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:815)	at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:715)	at rundeck.services.ProjectService.deleteProject(ProjectService.groovy:995)	at rundeck.controllers.ProjectController.apiProjectDelete(ProjectController.groovy:622)	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1360)	at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)	at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:539)	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)	at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:288)	at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:97)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:499)	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)	at org.eclipse.jetty.server.Server.handle(Server.java:349)	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:910)	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609)	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)	at java.lang.Thread.run(Thread.java:745)