Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-964

StringFormattedMessage serialization is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.3
    • API
    • None

    Description

      The method writeObject(final ObjectOutputStream out) of the class org.apache.logging.log4j.message.StringFormattedMessage does not write the stringArgs array into the output stream. This causes readObject(final ObjectInputStream in) to throw an EOFException when trying to deserialize.

      There is another bug in the same method. The line stringArgs[i] = obj.toString(); throws a NullPointerException when obj is null.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jjyryla Jonne Jyrylä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: