Missing exception text


when running into exceptions in Junit-Tests of a gradle build under Jenkins, I only see the exception Type but not the Exception Text.


de.ard.sad.trinidad.bo.interf.medienobjekt.audiomedienobjekt.AustauschHomeTest > testConvertRefToBo FAILED
Caused by: java.sql.SQLSyntaxErrorException
Caused by: oracle.jdbc.OracleDatabaseException
Executing test testFindByRefURI_IdType_MIG_NonExisting [de.ard.sad.trinidad.bo.interf.medienobjekt.audiomedienobjekt.AustauschHomeTest] with result: FAILURE

If I dig into the junit Test Result itself I have the following exception:

org.hibernate.exception.SQLGrammarException: ORA-00904: “CACHELABEL16_”.“FIRMA_NORM_ID_NAME”: ungültiger Bezeichner

at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:82)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)

In the second stacktrace I see what’s really going wrong, so it would be very helpful to see this message in the gradle (Jenkins) log also.

Is there a way to get the Exception Text in the gradle log also?

kind regards