BundleCache rethrows exceptions without root cause
--------------------------------------------------

                 Key: FELIX-3420
                 URL: https://issues.apache.org/jira/browse/FELIX-3420
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: framework-4.0.2
         Environment: Linux
            Reporter: Jesse Glick
            Priority: Minor


Trying to diagnose occasional errors thrown during tests:

java.lang.Exception: Unable to lock bundle cache: 
java.nio.channels.OverlappingFileLockException
        at 
org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:176)
        at org.apache.felix.framework.Felix.init(Felix.java:629)

Not sure what the real problem is here, but the OFLE stack trace is missing, 
because Felix code has


            catch (Exception ex)
            {
                throw new Exception("Unable to lock bundle cache: " + ex);
            }

whereas it should be


            catch (Exception ex)
            {
                throw new Exception("Unable to lock bundle cache: " + ex, ex);
            }

and similarly a few lines above.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to