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

CombinedConfiguration: java.util.NoSuchElementException after reload of enclosed SubnodeConfiguration/XMLConfiguration

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: File reloading
    • Labels:
      None

      Description

      Steps to repeat:

      • create a XMLConfiguration based on a XML config file (xml file content e.g.: <config><foo><bar>0</bar></for></config>)
      • assign file reloading strategy to the XMLConfiguration
      • create a SubnodeConfiguration based on this XMLConfiguration (prefix e.g.: 'foor')
      • create a CombinedConfiguration
      • add the SubnodeConfiguration to this CombinedConfiguration
      • get a configuration value from the CombinedConfiguration (e.g. 'bar') -> OK, this works
      • touch the underlying xml configuration
      • try to get a configuration value from the CombinedConfiguration again (e.g. 'bar') -> java.util.NoSuchElementException

      See also attached TestCase.

        Attachments

          Activity

            People

            • Assignee:
              oheger Oliver Heger
              Reporter:
              statist@gmx.de Paul Meyer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: