Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1361 | minor | always | 09-20-06 05:04 | 01-04-07 14:57 | |
|
|||||
Reporter: | rydenius | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.0.21 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.1 | ||
|
|||||
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. | ||||
Steps To Reproduce: | |||||
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()); |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|