ConcurrentStatisticsImpl#getSecondLevelCacheStatistics() throws NPE if second level cache is not activated

Description

When deploying an application on Wildfly (which works) and displaying the deployment, a NPE occurs:

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:

compared to 5.2.2:

Maybe this points in the right direction.

Activity

Vlad MihalceaMay 12, 2017 at 8:32 AM

Applied PR upstream.

David CarrMay 3, 2017 at 7:55 AM

I am also getting this error with JBoss EAP 7 integrating Hibernate 5.2.7. Occurring when I try to view deployments in the JBoss EAP Management console, but the application otherwise works fine.

I want to add this comment so there's a few extra search terms (i.e. the Wildfly error code) to lead here.

Former userJanuary 11, 2017 at 5:28 AM

This does not affect 5.0 or 5.1 branches.

Johannes GeigerJanuary 10, 2017 at 11:23 AM

Complete Stacktrace:

Hibernate 5.2.6:

Nope, see the following stacktrace:

Former userJanuary 9, 2017 at 7:33 PM

, does this happen with 5.2.6?

Also, please attach a complete a stacktrace.

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created January 9, 2017 at 11:17 AM
Updated September 13, 2017 at 6:25 PM
Resolved May 12, 2017 at 8:32 AM