Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1652

better handling of malformed properties file

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.3.0-beta0
    • None
    • None
    • None

    Description

      In case the properties file given to <variable> element is malformed,  then an IllegalArgumentException may be thrown.

      <configuration>
       <variable file="malformed.properties"/>
      </configuration> 

       if malformed.properties malformed, then the following exception may be thrown.

      java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
       at java.base/java.util.Properties.loadConvert(Properties.java:672)
       at java.base/java.util.Properties.load0(Properties.java:456)
       at java.base/java.util.Properties.load(Properties.java:408)
       at ch.qos.logback.core.model.processor.PropertyModelHandler.loadAndSetProperties(PropertyModelHandler.java:87)
       at ch.qos.logback.core.model.processor.PropertyModelHandler.handle(PropertyModelHandler.java:50)

       

      Attachments

        Activity

          People

            logback-dev Logback dev list
            ceki Ceki Gülcü
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: