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 2008/04/03 16:41:30 UTC

DO NOT REPLY [Bug 44745] New: AsyncAppender fails on changing Throwable

https://issues.apache.org/bugzilla/show_bug.cgi?id=44745

           Summary: AsyncAppender fails on changing Throwable
           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: julien.ayme@gmail.com


Created an attachment (id=21776)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21776)
The proposed patch.

If I use an AsyncAppender to log a Throwable object that is changed after the
call
of the logging method, the logging will sometime show up the value changed
afterwards.

(This issue is similar to Bug #43599, excepts that it concerns Throwables).

I propose the following fix (again, same as revision #587252):
in AsyncAppender#append:
     event.getRenderedMessage();
+    event.getThrowableStrRep();

...

which assures that the ThrowableInformation is correctly initialized, and will
not change afterwards.


-- 
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


DO NOT REPLY [Bug 44745] AsyncAppender fails on changing Throwable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44745


Curt Arnold <ca...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Curt Arnold <ca...@apache.org>  2008-08-12 13:33:54 PST ---
Committed rev 685304.


-- 
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


DO NOT REPLY [Bug 44745] AsyncAppender fails on changing Throwable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44745


Thorbjørn Ravn Andersen <th...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |45527




-- 
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


DO NOT REPLY [Bug 44745] AsyncAppender fails on changing Throwable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44745


Curt Arnold <ca...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|45527                       |




-- 
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