[ 
https://issues.apache.org/jira/browse/LOG4J2-1795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15831136#comment-15831136
 ] 

Remko Popma commented on LOG4J2-1795:
-------------------------------------

I cannot reproduce the issue. The specified test passes for me. What is the 
error you are seeing?

We have a [unit 
test|https://github.com/apache/logging-log4j2/blob/master/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java]
  for this (except that this test uses SimpleMessage where your test used 
ParameterizedMessage.

I did notice that in ParameterizedMessage the array of parameter Objects is 
transient so message parameters will not survive serialization. (The formatted 
message is preserved correctly.) However, that is not verified in your test so 
I don't understand why or how your test fails...

> LogEvent serialization deserialization
> --------------------------------------
>
>                 Key: LOG4J2-1795
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1795
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.7
>            Reporter: Alexandru Ionita
>              Labels: serializable
>
> Deserialization of a LogEvent that has been serialized with the 
> Log4jLogEvent.serialize method fails after the serialized object went through 
> a byte stream.
> Here is a test that demonstrates the issue:
> https://github.com/nucatus/LogEventSerializationPOC



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to