Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-438

JNDIConfiguration logs Exception when prefix does not exist

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.6, Nightly Builds
    • Fix Version/s: 1.7
    • Component/s: Events & Notifications
    • Labels:
      None

      Description

      A JNDIConfiguration logs an exception when it's prefix does not exist and getKeys() is called. This is for instance the case when a JNDIConfiguration is used in a DefaultConfigurationBuilder. It does not log an exception when a key does not exist when using getProperty() (that was fixed in issue #44). This seems like an inconsistency to me. Attached patch fixes the problem by ignoring the NameNotFoundException.

        Attachments

        1. namenotfoundexception-correct.patch
          0.6 kB
          Mike Noordermeer
        2. namenotfoundexception.patch
          3 kB
          Mike Noordermeer

          Activity

            People

            • Assignee:
              oheger Oliver Heger
              Reporter:
              miken Mike Noordermeer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: