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

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major 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.

      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.

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

              Created:
              Updated:
              Resolved: