glassfish
  1. glassfish
  2. GLASSFISH-4422

use of LogRecord class throws an exception java.lang.Throwable: Logger name is null

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.0pe
    • Fix Version/s: None
    • Component/s: logging
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      4,422

      Description

      the use of LogRecord

      LogRecord logr = new LogRecord(Level.WARNING, "WARNING");
      logger.log(logr);

      throws this exception

      Update error statistics failed
      java.lang.Throwable: Logger name is null.
      at
      com.sun.enterprise.server.logging.stats.ErrorStatistics.updateStatistics(ErrorStatistics.java:186)
      at
      com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:531)
      at java.util.logging.Logger.log(Logger.java:472)

      and generates a log with name: null

      using

      logger.log(Level.WARNING, msg.toString()); of logger.warn(msg); works correctly,

        Activity

        Hide
        jdbenitez added a comment -

        correct text

        Show
        jdbenitez added a comment - correct text
        Hide
        harpreet added a comment -

        Marking for 9.2 as this is not a critical issue.

        Show
        harpreet added a comment - Marking for 9.2 as this is not a critical issue.
        Hide
        sanandal added a comment -

        "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1
        release whose primary release driver is SailFin.
        This issue will be scrubbed after this release and will be given the right
        priority for the next release."

        Show
        sanandal added a comment - "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1 release whose primary release driver is SailFin. This issue will be scrubbed after this release and will be given the right priority for the next release."

          People

          • Assignee:
            dpatil
            Reporter:
            jdbenitez
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: