org.apache.metamodel.MetaModelException

Could not rollback transaction: rollback() should not be called while in auto-commit mode.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7

  • via GitHub by ClaudiaPHI
    , 9 months ago
    Could not rollback transaction: rollback() should not be called while in auto-commit mode.
  • Could not execute compiled query: Streaming result set com.mysql.jdbc.RowDataDynamic@57e1b01b is still active. No statements may be issued when any streaming result sets are open and in use on a given connection. Ensure that you have called .close() on any active streaming result sets before attempting more queries.
  • via GitHub by ClaudiaPHI
    , 9 months ago
    Could not execute batch: org.hsqldb.jdbc.jdbcPreparedStatement@27d9d5[sql=[INSERT INTO PUBLIC."CUSTOMERS" (CUSTOMERNUMBER,CUSTOMERNAME,CONTACTLASTNAME,CONTACTFIRSTNAME,PHONE,ADDRESSLINE1,CITY,COUNTRY,SALESREPEMPLOYEENUMBER) VALUES (?,?,?,?,?,?,?,?,?)], parameters=[[5023], [My company], [Gerard], [Martin], [My phone no], [My address], [My city], [My country], [1702]]]: failed batch
  • Stack trace

    • org.apache.metamodel.MetaModelException: Could not rollback transaction: rollback() should not be called while in auto-commit mode. at org.apache.metamodel.jdbc.JdbcUtils.wrapException(JdbcUtils.java:61) at org.apache.metamodel.jdbc.JdbcUpdateCallback.commitOrRollback(JdbcUpdateCallback.java:112) at org.apache.metamodel.jdbc.JdbcUpdateCallback.close(JdbcUpdateCallback.java:85) at org.apache.metamodel.jdbc.JdbcDataContext.executeUpdate(JdbcDataContext.java:850) at org.datacleaner.beans.writers.InsertIntoTableAnalyzer.run(InsertIntoTableAnalyzer.java:414) at org.datacleaner.beans.writers.InsertIntoTableAnalyzer.run(InsertIntoTableAnalyzer.java:76) at org.datacleaner.util.WriteBuffer.flushBuffer(WriteBuffer.java:84) at org.datacleaner.util.WriteBuffer.addToBuffer(WriteBuffer.java:60) at org.datacleaner.beans.writers.InsertIntoTableAnalyzer.run(InsertIntoTableAnalyzer.java:377) at org.datacleaner.job.runner.AnalyzerConsumer.consumeInternal(AnalyzerConsumer.java:71) at org.datacleaner.job.runner.AbstractRowProcessingConsumer.consume(AbstractRowProcessingConsumer.java:159) at org.datacleaner.job.runner.ConsumeRowHandlerDelegate.consume(ConsumeRowHandlerDelegate.java:64) at org.datacleaner.job.runner.ConsumeRowHandler.consumeRow(ConsumeRowHandler.java:146) at org.datacleaner.job.tasks.ConsumeRowTask.execute(ConsumeRowTask.java:51) at org.datacleaner.job.concurrent.TaskRunnable.run(TaskRunnable.java:61) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.