| Summary: | BIRT viewer shows java exception trace stack to user. It does not make sense. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | guangcai wang <wanggc> | ||||
| Component: | BIRT | Assignee: | Birt-ReportViewer <Birt-ReportViewer-inbox> | ||||
| Status: | NEW --- | QA Contact: | mindan xu <mindan.xu> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bluesoldier, kkazmierczyk+eclipse | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 172710 [details]
screenshot for birt exception
|
Build Identifier: M20090211-1700 We user BIRT viewer to display some reports. When the database is shutdown, UI shows the whole jave exception trace stack. It does not make sense to user. If it shows the meaningful message, that's better. We identify the file birt/pages/common/Error.jsp. It shows like this: <TR><TD NOWRAP> <% if ( error != null ) { if ( error.getMessage( ) != null ) { out.println( ParameterAccessor.htmlEncode( new String( error.getMessage( ).getBytes( "ISO-8859-1" ),"UTF-8" ) ) ); } else { PrintWriter writer = new PrintWriter( out ); error.printStackTrace( writer ); } } %> </TD></TR> Can it be modified to show friendly message like "An operation error occurs, please contract your system administrator"? Reproducible: Always Steps to Reproduce: 1. create a jsp to hold a report created by BIRT 2. shut down database 3. run report