Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-25260

[GSS](7.4.z) LOGMGR-330 - ObjectInputStream filtering logs not logged by jboss-logging

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.4.11.GA
    • Logging
    • None
    • False
    • None
    • False
    • Hide

      The reproducer is in EAPSUP-1250.

      Show
      The reproducer is in EAPSUP-1250.

    Description

      The ObjectInputStream uses following snippet to instantiate a logger:

              static {
                  Logger filterLog = System.getLogger("java.io.serialization");
                  filterLogger = (filterLog.isLoggable(Logger.Level.DEBUG)
                          || filterLog.isLoggable(Logger.Level.TRACE)) ? filterLog : null;
              }
      

      The `System.getLogger("java.io.serialization")` call, when called from ObjectInputStream produces a "system logger". The configuration of this system logger is merged with an actual configured jboss-logmanager logger instance via `Logger.mergeWithSystemLogger(sysLogger)` call. This merge fails to transfer handlers from jboss-logmanager logger instance into the "system logger". The result of the handlers not being merged is that filtering logs ObjectInputStream are swallowed.

      Attachments

        Issue Links

          Activity

            People

              thofman Tomas Hofman
              rhn-support-aogburn Aaron Ogburn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: