Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317918 - BIRT viewer shows java exception trace stack to user. It does not make sense.
Summary: BIRT viewer shows java exception trace stack to user. It does not make sense.
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportViewer CLA
QA Contact: mindan xu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-25 02:46 EDT by guangcai wang CLA
Modified: 2012-01-03 07:30 EST (History)
2 users (show)

See Also:


Attachments
screenshot for birt exception (69.80 KB, image/gif)
2010-06-25 02:49 EDT, guangcai wang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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