A number of dialects use the return value from JdbcExceptionHelper.extractSqlState( SQLException ) in a string switch statement. The problem is that method may return null, which will result in an NPE, a la https://wildfly.zulipchat.com/#narrow/stream/174184-wildfly-developers/topic/WildFly.20Cloud.20Tests JdbcExceptionHelper.extractSqlState returns the value of the SQLException.SQLState field, but that can be null. It for sure will be if the new SQLException(String reason) constructor is used. It can be with the other constructors too as none of them reject a null param value. MySQLDialect, PostgreSQLDialect and SybaseASEDialect all look like they’d have this problem. |