rollback does not work on runtime exception


We assumed that when there is a runtime exception on an event handler, a rollback is triggered. But now the event handler continues. The rollback configuration is ANY_THROWABLE. But when we implement a work around with a try catch and CurrentUnitOfWork.get ().rollback(), the rollback is triggered. We are using tracking processing.
Do we have to add an extra configuration to activate the rollback on a throwable?

public void on(VacatureGewijzigd event) {
    try {
    } catch(Throwable e) {



Hi Bart,

the transaction is managed in the Tracking Processor. The default behavior of the Processor is to rollback on any exception. However, exceptions from event handlers don’t arrive there by default. They are blocked by the HandlerInvocationErrorHandler, which is configured per processing group. If you configure that to re-throw any exception, you should be fine.

Hope this helps.