Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317918

Summary: BIRT viewer shows java exception trace stack to user. It does not make sense.
Product: z_Archived Reporter: guangcai wang <wanggc>
Component: BIRTAssignee: 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:
Description Flags
screenshot for birt exception none

Description guangcai wang CLA 2010-06-25 02:46:28 EDT
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
Comment 1 guangcai wang CLA 2010-06-25 02:49:31 EDT
Created attachment 172710 [details]
screenshot for birt exception