Migrated from hibernate 3 to hibernate 5.4

2025-06-30 16:56:55,902 ERROR [com.eurostar.app.edcs.dataaccess.common.CommonDAImpl] (default task-1) Exception occured while executing addAppLog method : javax.persistence.TransactionRequiredException: no transaction is in progress

This is the error i get after migrating hibernate from version 3 to 5.4 ?
Any resolution would be great help.
Thanks in advance

There is simply not enough information in your post to help you. Post more details like e.g. a stack trace.

You can look through the various migration guides that we write for every release and then you will hopefully find this:

  • Hibernate now conforms with the JPA specification to not allow flushing updates outside of a transaction boundary. To restore 5.1 behavior, allowing flush operations outside of a transaction boundary, set hibernate.allow_update_outside_transaction=true.

which was changed as part of HHH-10877

1 Like