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

Serialization of objectArray in LoggingEvent does not always work

    XMLWordPrintable

Details

    • 100

    Description

      I think this is happening:

      • Logback is sending a serialized LoggingEvent over the socket
      • the LoggingEvent has a reference to the foo.bar.Car instance
      • the Eclipse plugin receives the bytes over the wire and tries to
        deserialize the LoggingEvent, this fails because the foo.bar.Car class
        is not on the classpath.

      Resolution: I think the SocketAppender should only send the formattedMessage
      over the wire and not the argumentArray.
      In other words: argumentArray should be declared transient.

      Let's see what the LogBack developers think about that ...

      Attachments

        1. LB100_serialization_bug.patch
          0.7 kB
          Joern Huxhorn
        2. LoggingEventPatch.patch
          7 kB
          Joern Huxhorn
        3. LoggingEventPatch3.patch
          8 kB
          Joern Huxhorn
        4. LoggingEventStringArgs.patch
          12 kB
          Joern Huxhorn

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: