logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46271] New: NullPointException from SyslogAppender
Date Mon, 24 Nov 2008 03:07:08 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46271

           Summary: NullPointException from SyslogAppender
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: hatchet@orcon.net.nz


When no Layout is set for the SyslogAppender, every call to log generates a
NullPointerException


Caused by: java.lang.NullPointerException
        at org.apache.log4j.net.SyslogAppender.append(SyslogAppender.java:312)
        at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        at org.apache.log4j.Category.callAppenders(Category.java:206)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.log(Category.java:856)
        at
org.apache.commons.logging.impl.Log4JLogger.warn(Log4JLogger.java:222)


SyslogAppender.java:312
    String packet = layout.format(event);


The appender assume a layout will always be set and does not set a default if
none is provided


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message