Improve error output with transaction issues

Description

1 2 3 4 5 6 7 8 9 10 11 com.sobis.hzi.sms.tests.businessobject.BOManualCostEntryTest.notification_mail_on_update[3: costEc_lastUpdate, 2018-07-12] Failing for the past 1 build (Since Unstable#1885 ) Took 2 ms. add description Error Message load is not valid without active transaction Stacktrace org.hibernate.HibernateException: load is not valid without active transaction at org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:345) at com.sun.proxy.$Proxy139.load(Unknown Source)

It would be better for debugging purposes to display the current transaction state for debugging reasons. I'm preparing a PR:

Environment

None

Status

Assignee

Unassigned

Reporter

Niko Wittenbeck

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

5.3.2

Priority

Minor
Configure