Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2314

SortedArrayStringMap does allow only filterable ObjectInputStreams

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.11.0
    • Fix Version/s: None
    • Component/s: API
    • Labels:
    • Environment:
      • JAVA 8 1.8.0_151
      • Hibernate 5.2.16 (JPA 2.1)
      • Log4j2-core 2.11.0
      • Log4j2-jpa 2.11.0

      Description

      When using the JPA Appender it is not anymore possible to use Hibernate.

      During the write process on the appender log4j2 detects a incompatible instance of ObjectInputStream.

       

      The root of the problem seems to be this change.

      https://github.com/apache/logging-log4j2/commit/ce7d3fb6d2b20cea0b43db3e9ca3eb286699ca8c#diff-8cb9cfc9b0a2fb37c17778fb0b846ce1L581

       

      A full stack trace and config files can be found in the attachments.

        Attachments

        1. stacktrace.txt
          6 kB
          Sebastian Poxhofer
        2. persistence.xml
          2 kB
          Sebastian Poxhofer
        3. log4j2.xml
          0.6 kB
          Sebastian Poxhofer

          Activity

            People

            • Assignee:
              rgoers Ralph Goers
              Reporter:
              doxpox Sebastian Poxhofer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: