"IJ031020: You cannot commit with autocommit set" in JBoss EAP

Solution Verified - Updated -

Issue

  • Encountering IJ031020: You cannot commit with autocommit set when calling commit() on a connection obtained from a JTA datasource

    ... java.sql.SQLException: IJ031020: You cannot commit with autocommit set
        at org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:1066)
        at org.jboss.jca.adapters.jdbc.WrappedConnection.commit(WrappedConnection.java:834)
        ...
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7
    • 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content