https://issues.apache.org/bugzilla/show_bug.cgi?id=48220

           Summary: LoggingEvent.mdcCopy not transient
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
        AssignedTo: [email protected]
        ReportedBy: [email protected]


The field mdcCopy in LoggingEvent should be transient. Otherwise it is tried to
serialize the Hashtable with all its elements (e.g. in SocketAppender). But
these elements doesn't have to be serializable. And if they are not I get an
exception and the Logger is unusable for the rest of the Java process.

How to reproduce
- MDC.put("key", notSerializableObject)
- Log on a SocketAppender

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to