Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Can't get new ehcache hierarchical files to work

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Can't get new ehcache hierarchical files to work


Chronological Thread 
  • From: Peter DiCamillo <>
  • To: "" <>
  • Subject: [grouper-users] Can't get new ehcache hierarchical files to work
  • Date: Sat, 3 Dec 2016 18:54:15 -0500
  • Ironport-phdr: 9a23:4H9L3B8lPvz+fv9uRHKM819IXTAuvvDOBiVQ1KB20O0cTK2v8tzYMVDF4r011RmSDN6dt68P27aempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9ZDeZwtFiCCybL5yIxm7rgrcvdQKjIV/Lao81gHHqWZSdeRMwmNoK1OTnxLi6cq14ZVu7Sdete8/+sBZSan1cLg2QrJeDDQ9LmA6/9brugXZTQuO/XQTTGMbmQdVDgff7RH6WpDxsjbmtud4xSKXM9H6QawyVD+/6KhmVBHlhSUJOjIg7G3ahdF7gKZbrR69ohByxZPfboOIO/pkZq7Tfc4US3RCUMhfWSNODZ+zYYQUAuodP+tVtZXxq0cAoBa8AwSnGePhyiVPhn/zxaA0yfouER3Y0ww6AtkAvnXUocvvO6cXUOC1yK3IzTLeZP5RwTfy9pTIfQ47of6UQL1wcNbexlMqFwPEilWQrYvlMiiO2eQXtGia4exgWfixhGE6tgF8uz6izdoihInOg4Ia0FHE9SNhzYY6P924T1N7Yca6H5tKrS2VLZN2QtskTmp1uyg60qULtYC6cSQWypkqwhDfZv+cfISU5x/uW/qdLStli39gZL2zmxK//E2lx+HiWMS50U5GojdbntTPrHwByhPe58udRvdj8EqtxyyD2gHV5+pZO047j7DbJIQkwrMolpocr0DDHijulUXzlqCWd0Ek9vGx6+Tkfrnqv5CdO5F6hwz/KKgulcu/AeM3MggKQWeX4/iz1Lrm/UHhQbVKiOM5krXBvZzEJMkXuqy0Dgpb0osg8BmzEzKr3dsEkXUbMV1IfQ6Ig5TtNlzLJf30E/myjlW0nDdu3f/GP7nhApvXLnjElbfsZa595FBAyAUt19BQ/49bCrAdL/3pX0/xtdjYDhs+MwGv2OnnEtJ9140YWW6VHKCWLb7SvUeS5u0zO+mMeJMVuDHlJvgq/f7uimI5mUcDcqmzxJcXdWu4Eep8I0WCenfshtYBEXwWvgolUuDmklyCUThPZ3msRaI84C80CJ64AYvZWI+inaGBj2+HGcgcaXpBF0iBCzL1bIieQN8Nbj6fOMlsjmZCWLS8Acd12gupqRf30f96NefO4QUZs47uzt54+7eVmB0vo29aFcOYhlmAU2xu1k8JbDYz3aR7pgQp0lqf3LJPj/1THNlS4/dOeg0gMoHaieF2FoahCUr6Yt6VRQP+EZ2dCjYrQ4dsm9I=

I've been trying to get the hierarchical ehcache configuration to work, which is from GRP-1417 and in API patch 35. I'm doing this with Grouper 2.3, and I didn't have to convert ehcache.xml because we've never changed it. I used grouper.cache.base.properties and group.cache.properties from the patch and deleted ehcache.xml. When I run the Grouper Shell it seems to start up ok, but in the log file I get:

[main] WARN ConfigurationFactory.parseConfiguration(134) - - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/opt/local/mace/grouper/GROUPER_2_3_BRANCH/grouper/lib/grouper/ehcache-core-2.4.3.jar!/ehcache-failsafe.xml

and after that around 150 messages like this for different caches:

[main] WARN AbstractEhcacheRegionFactory.getCache(161) - - HHH020003: Could not find a specific ehcache configuration for cache named [org.hibernate.cache.spi.UpdateTimestampsCache]; using defaults.

At that point, if I put back ehcache.xml then the startup is normal. If I then keep ehcache.xml but remove grouper.cache.base.properties and group.cache.properties, then the Grouper Shell fails to start and I get this exception:

Exception in thread "main" java.lang.ExceptionInInitializerError
at edu.internet2.middleware.grouper.subj.SubjectResolverFactory.getInstance(SubjectResolverFactory.java:60)
at edu.internet2.middleware.grouper.SubjectFinder.getResolver(SubjectFinder.java:878)
at edu.internet2.middleware.grouper.SubjectFinder.internal_getGSA(SubjectFinder.java:920)
at edu.internet2.middleware.grouper.misc.GrouperStartup.startup(GrouperStartup.java:225)
at edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:151)
at edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(GrouperShellWrapper.java:31)
Caused by: java.lang.RuntimeException: Cant find the hierarchy config key: grouper.cache.config.hierarchy in config files: grouper.cache.properties or grouper.cache.base.properties
at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase.retrieveFromConfigFiles(ConfigPropertiesCascadeBase.java:799)
at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase.retrieveFromConfigFileOrCache(ConfigPropertiesCascadeBase.java:905)
at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase.retrieveConfig(ConfigPropertiesCascadeBase.java:89)
at edu.internet2.middleware.grouper.cfg.GrouperCacheConfig.retrieveConfig(GrouperCacheConfig.java:49)
at edu.internet2.middleware.grouper.cache.EhcacheController.initialize(EhcacheController.java:285)
at edu.internet2.middleware.grouper.cache.EhcacheController.getCache(EhcacheController.java:194)
at edu.internet2.middleware.grouper.cache.GrouperCache.<init>(GrouperCache.java:106)
at edu.internet2.middleware.grouper.subj.CachingResolver.<clinit>(CachingResolver.java:72)
... 6 more

So after applying the patch, I only get a normal startup if I have both ehcache.xml and the properties files.

While we have no local mods to the Grouper API, we do have UI mods, so I build Grouper from the source rather than using patching. But I was very careful to examine the patch and update the sources files, and I really don't think that's the problem. Let me know if you'd like additional information. I have no problem using ehcache.xml, but I thought it would be a good idea to include the hierarchical files in our next Grouper upgrade.

Peter







Archive powered by MHonArc 2.6.19.

Top of Page