Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001361 [Resin] minor always 09-20-06 05:04 01-04-07 14:57
Reporter rydenius View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.0.21
Summary 0001361: com.caucho.log.MessageFormatter hides important stack information
Description com.caucho.log.MessageFormatter unwraps exceptions to the innermost cause and display only that in the log. That hides possibly important stack information from wrapping exceptions. I guess this is only a workaround for exceptions that overrides java.lang.Throwable's definition of printStackTrace(PrintStream), because that implementation automaticly prints all causes of the throwable too. Current implementation of MessageFormatter is useless for advanced debugging.
Additional Information According to the release notes, this bug was introduced in Resin 3.0.7, "MessageFormatter needs to unwrap exception (rep by Thomas Zehetbauer)". Source code is:

    Throwable rootExn = thrown;

    for (;
         rootExn != null && rootExn.getCause() != null;
         rootExn = rootExn.getCause()) {
    }
    
        rootExn.printStackTrace(os.getPrintWriter());
Attached Files

- Relationships

- Notes
(0001704)
ferg
01-04-07 14:57

server/023g
 

- Issue History
Date Modified Username Field Change
09-20-06 05:04 rydenius New Issue
01-04-07 14:57 ferg Note Added: 0001704
01-04-07 14:57 ferg Assigned To  => ferg
01-04-07 14:57 ferg Status new => closed
01-04-07 14:57 ferg Resolution open => fixed
01-04-07 14:57 ferg Fixed in Version  => 3.1.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker