This works : ``` JCacheConfiguration jCacheConfiguration = new JCacheConfiguration(null, null, null, null); cache = cacheManager.createCache(this.name, jCacheConfiguration); ``` while this gives me a NPE : ``` CacheConfiguration cacheConfiguration = new CacheConfiguration(); cacheConfiguration.setTimeToLiveSeconds(NO_EXPIRE); cacheConfiguration.setTimeToIdleSeconds(NO_EXPIRE); JCacheConfiguration jCacheConfiguration = new JCacheConfiguration(cacheConfiguration); cache = cacheManager.createCache(this.name, jCacheConfiguration); ``` where `NO_EXPIRE` is equal to `60 * 60 * 24 * 365 * 10` The only difference I see on code paths is that the second doesn't set an expire factory, while the first path does.
This works :
while this gives me a NPE :
where
NO_EXPIREis equal to60 * 60 * 24 * 365 * 10The only difference I see on code paths is that the second doesn't set an expire factory, while the first path does.