GitHub user bsokolovu opened a pull request:
https://github.com/apache/logging-log4j2/pull/78
Fix writeObject in FormattedMessage.
To pass `FormattedMessage` completely we should pass string values from
`argArray` together with `argArray.length`.
For now there is such bug: on `readObject` it's `InputStream` brings
`length` of `stringArgs` but there is no values in `InputStream` to read. So if
`length > 0` there will be `EOFException` while reading `null` value from
`InputStream`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bsokolovu/logging-log4j2
Fix_writeObject_in_FormattedMessage
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/logging-log4j2/pull/78.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #78
----
commit aa698b37d7c44fb6c20142e7df7e978c4906bc53
Author: Borys Sokolov <[email protected]>
Date: 2017-05-16T07:49:08Z
Fix writeObject in FormattedMessage.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---