The alpha version of log4j doesn't see a logger name on the serialized event, which generates a null pointer exception...looks like there's a bug that needs fixed.
Thanks for finding it. Scott -----Original Message----- From: Lawrence, Philip [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 1:24 PM To: '[EMAIL PROTECTED]' Subject: log4j 1.2.8 and Chainsaw v2 Hi, Is it possible to send events from a program using log4j version 1.2.8 to Chainsaw v2? I'm trying to do this with no luck. It works OK with the Chainsaw from log4j 1.2.8. My log4jInit.XML file has the following appender for Chainsaw: <appender name="CHAINSAW_CLIENT" class="org.apache.log4j.net.SocketAppender"> <param name="RemoteHost" value="localhost"/> <param name="Port" value="4445"/> </appender> I start Chainsaw v2 first. It starts up, displays a warning popup - "You have no Receivers defined...". I choose "Let me use a simple Receiver:" - SocketReceiver, port 4445. I then start my program with DEBUG messages enabled. My program gives this error: log4j:WARN Detected problem with connection: java.net.SocketException: Software caused connection abort: socket write error In Chainsaw v2, I get this event: Level ERROR Logger org.apache.log4j.net.SocketNode Time 2004-05-13 16:21:36,076 Thread Thread-1 Message Unexpected exception. Closing connecition. NDC null Class Method Line File Properties {{log4jid,1}} Throwable java.lang.NullPointerException at org.apache.log4j.CategoryKey. (CategoryKey.java:29) at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:425) at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:407) at org.apache.log4j.plugins.Receiver.doPost(Receiver.java:105) at org.apache.log4j.net.SocketReceiver.doPost(SocketReceiver.java:397) at org.apache.log4j.net.SocketNode.run(SocketNode.java:143) at java.lang.Thread.run(Thread.java:534) Any help would be greatly appreciated. Thank you, - Phil Philip Lawrence Siemens Network Convergence LLC 271 Mill Road Chelmsford, MA 01824 978-923-3302 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
