https://issues.apache.org/bugzilla/show_bug.cgi?id=46404
--- Comment #7 from Curt Arnold <[email protected]> 2009-04-07 20:54:50 PST --- Could anyone who has this problem check if the following patch resolves the issue. Basically, it forces the evaluation of the message's toString() and the exception if any's printStackTrace() to occur before the start of writeObject(). Index: src/main/java/org/apache/log4j/net/SocketAppender.java =================================================================== --- src/main/java/org/apache/log4j/net/SocketAppender.java (revision 746252 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=746252 )) +++ src/main/java/org/apache/log4j/net/SocketAppender.java (working copy) @@ -244,6 +244,8 @@ if (application != null) { event.setProperty("application", application); } + event.getRenderedMessage(); + event.getThrowableStrRep(); oos.writeObject(event); //LogLog.debug("=========Flushing."); oos.flush(); -- 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: [email protected] For additional commands, e-mail: [email protected]
