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

        jdbenitez created issue -
        kenaiadmin made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 4422 36026
        Chris Kasso made changes -
        Fix Version/s 9.2 [ 11147 ]

          People

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

            Dates

            • Created:
              Updated: