<< Back to previous view

[GLASSFISH-4422] use of LogRecord class throws an exception java.lang.Throwable: Logger name is null Created: 13/Mar/08  Updated: 06/Jan/11

Status: Open
Project: glassfish
Component/s: logging
Affects Version/s: 9.0pe
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: jdbenitez Assignee: dpatil
Resolution: Unresolved Votes: 1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 4,422
Tags:
Participants: dpatil, harpreet, jdbenitez and sanandal

 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,



 Comments   
Comment by jdbenitez [ 13/Mar/08 03:52 PM ]

correct text

Comment by harpreet [ 27/Mar/08 01:17 PM ]

Marking for 9.2 as this is not a critical issue.

Comment by sanandal [ 11/Jan/09 07:01 AM ]

"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."

Generated at Thu Apr 24 07:39:34 UTC 2014 using JIRA 4.0.2#472.