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. ,

    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 ha-jdbc by qiwenmin
, 1 year ago
Can't call commit when autocommit=true
via jackrabbit-users by Dominique Pfister, 2 years ago
Can't call commit when autocommit=true
via jackrabbit-users by dainius rygelis, 2 years ago
Can't call commit when autocommit=true
via jackrabbit-users by dainius rygelis, 2 years ago
Can't call commit when autocommit=true
via Stack Overflow by Jesus Schneider
, 2 years ago
Can't call commit when autocommit=true
via GitHub by krillr
, 2 years ago
Can't call commit when autocommit=true
java.sql.SQLException: Can't call commit when autocommit=true at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:914) at com.mysql.jdbc.Connection.commit(Connection.java:2274) at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at net.sf.hajdbc.util.reflect.Methods.invoke(Methods.java:47) at net.sf.hajdbc.sql.AbstractInvocationHandler$SimpleInvoker.invoke(AbstractInvocationHandler.java:518) at net.sf.hajdbc.sql.DatabaseWriteInvocationStrategy$1.call(DatabaseWriteInvocationStrategy.java:94) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)