You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2005/06/06 14:58:57 UTC
DO NOT REPLY [Bug 35239] New: -
NullPointerException when saving displayed events
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35239>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35239
Summary: NullPointerException when saving displayed events
Product: Log4j
Version: 1.3alpha
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: normal
Priority: P2
Component: chainsaw
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: david.rudloff@francetelecom.com
CC: david.rudloff@francetelecom.com
On chainsaw-bundle (1.3.alpha7), I defined a LogFilePatternReceiver for a file
containing the following line:
<<
[02.11.14 10:55:46:743 CET] 14d0798 AdminServer A ADMS0002I: Initializing
WebSphere Administration server
>>
The receiver has the following definition:
<plugin name="logfile" class="org.apache.log4j.varia.LogFilePatternReceiver">
<param name="timestampFormat" value="yy.MM.dd HH:mm:ss:SSS"/>
<param name="logFormat" value="[TIMESTAMP *] * LOGGER CLASS: MESSAGE"/>
<param name="fileURL" value="file:///E:/trace.log"/>
<param name="tailing" value="true"/>
<param name="name" value="tracefile"/>
</plugin >
When trying the "Save as" action, the following exception occurs and the action
fails:
<<
java.lang.NullPointerException
at java.io.Writer.write(Writer.java:126)
at org.apache.log4j.xml.XMLLayout.format(XMLLayout.java:191)
at org.apache.log4j.Layout.format(Layout.java:57)
at
org.apache.log4j.chainsaw.FileSaveAction.actionPerformed(FileSaveAction.java:110)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
) at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5100)
>>
It seems that in this case the parser sets the null value to some fields instead
of the "?" value.
Any workaround ?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org