EHC ❯ Wrap original exceptions during configuration
-
Bug
-
Status: Closed
-
-
Resolution: Fixed
-
-
-
drb
-
Reporter: sourceforgetracker
-
September 21, 2009
-
0
-
Watchers: 0
-
September 22, 2009
-
September 22, 2009
Description
I’ve been trying to run Hibernate through JNLP, and was getting an exception from ehcache indicating a problem with the failsafe configuration file:
org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: Error configuring from jar:file:ehcache-1.2beta5.jar!/ehcache-failsafe.xml Error was null:12: Could not set attribute “path”.
I looked into the ConfigurationFactory code (based on the call stack) and saw that the parseConfiguration method was ignoring the original exception and throwing a CacheException. So I had no idea what the original exception was - I had to modify the code and add extra debugging to figure out the root cause.
(Turns out it was an unsigned xerces jar in my classpath).
The attached mods to ConfigurationFactory set the initCause of the thrown CacheException to provide more debugging help.
Sourceforge Ticket ID: 1458049 - Opened By: nobody - 24 Mar 2006 22:25 UTC
Re-opening so that I can properly close out these issues and have correct Resolution status in Jira