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

LoggingEventVO failed to serialize when argument toString() throws exception

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 0.9.26
    • None
    • None

    Description

      LoggingEventVO.writeObject() don't handle situation when argument toString() throws exception.
      LoggingEventVO become only serialized to OutputStream partiality, and deserialization failed with exception

      java.lang.ArrayStoreException: ch.qos.logback.classic.spi.LoggingEventVO
      at ch.qos.logback.classic.spi.LoggingEventVO.readObject(LoggingEventVO.java:190) ~[logback-classic-0.9.26.jar:na]

      Suppose same fail-safe behavior required as in MessageFormatter.safeObjectAppend

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            eugen Eugen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: