Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-1851

Unwind InvocationTargetException failures when accessing the repository

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 5.0.2
    • None
    • None
    • Platform166: GA (truly,really)

    Description

      If during repository startup an exception occurs the exception will be catched in the HippoRepositoryFactory as InvocationTargetException.

      Currently it assumes there is only a single layer of reflection based invocation, and re-throws only the intial (top level) cause of the InvocationTargetException.

      But if within the repository startup the exception occurs in a further nested level of reflection based invocations, the re-thrown exception still might be of type InvocationTargetException, which will produce unnecessary noise in the logging, which also is more difficult to digest than unnecessary.

      Fix is simple: just keep unwinding the InvocationTargetException until the first non-InvocationTargetException based cause is found.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adouma Ate Douma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: