jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cory Prowse <c...@prowse.com>
Subject Dev request: ResourceException not chaining cause correctly
Date Tue, 12 Oct 2010 07:34:26 GMT

Just a minor request to chain the ResourceException's that are thrown from JCAManagedConnectionFactory.

The cause exceptions are being swallowed silently making it rather confusing sometimes why
things are failing.
As an example, if you have misconfigured the persistence manager the ConfigurationException
is not chained so you have no idea what the exact problem is, as all you get is "unable to
instantiate persistence manager" instead of "persistence manager has no property 'blah'.

In JCAManagedConnectionFactory, methods openSession and createRepository both throw ResourceException
without passing the cause exception in the constructor.

 -- Cory
View raw message