When deploying an application on Wildfly (which works) and displaying the deployment, a NPE occurs:
java.lang.NullPointerException
at org.hibernate.stat.internal.ConcurrentStatisticsImpl.getSecondLevelCacheStatistics(ConcurrentStatisticsImpl.java:306)
which happens, I assume, because we have no second level cache active. Comparing the code with e.g. version 5.0.0, there was the following check:
Region region = sessionFactory.getSecondLevelCacheRegion( regionName );
if ( region == null ) {
return null;
}
compared to 5.2.2:
final Region region = sessionFactory.getCache().getQueryCache( regionName ).getRegion();
Maybe this points in the right direction. |