Using a MS SQL database via the MS SQL JDBC driver version 4.2, the DB connection is configured with aries.xa.exceptionSorter = known which uses org.tranql.connector.jdbc.KnownSQLStateExceptionSorter.
Sometimes there is a NullPointerException from this class, where there is not the real underlying cause, because it is maked by the error of the NullPointerException:
Caused by: java.lang.NullPointerException
at org.tranql.connector.jdbc.KnownSQLStateExceptionSorter.checkSQLState(KnownSQLStateExceptionSorter.java:110)
See attached stacktrace.txt