On Jul 11, 2005, at 8:16 AM, Rob Oxspring wrote:

Hi,

We've stumbled across a scenario where the location information comes out with the method set to java and the classname ending with <init>. The problem occurs only after the first few calls to the constructors in question and we've only seen it on Aix under IBM's jre 1.4.0 - the suspicion is that their JIT is kicking in and messing the information up. Obviously, with this problem in place the likes of Chainsaw get very confused when trying to process the 'xml'.

The attached patch attempts to fix this by simply applying the same escaping mechanism to the classname as to the method name. If you could let me know what you guys think (any chance of inclusion in 1.2.12???) it would be much appreciated.

Thanks,

There are a decent number of scenarios where the current XMLLayout will generate non-wellformed XML. I had logged bug 34875 (http:// issues.apache.org/bugzilla/show_bug.cgi?id=34875) to serve as a TO-DO item to fix it in log4j 1.3, however fixing all the potential problems and the companion bug 34874 is a little bigger than what I'd be comfortable doing in the log4j 1.2 branch. However, just fixing the issue you raised in the message is probably appropriate for the log4j 1.2 branch.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to