Bug 177864 Error message is not helpful when a BIRT function call has incorrect params
The attached report design contains a single data iten with expression BirtComp.like("a"). This expression has syntax error because BirtComp.like() function expects two parameters. Run this report in BIRT viewer and the only error you will get is: org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report This error message is not helpful. It should have pointed to the source of the report design error, and has an exception call stack.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/BirtRunAndRenderActionHandler.java
String format = attrBean.getFormat( );
		Locale locale = attrBean.getLocale( );
		boolean master = attrBean.isMasterPageContent( );
		Map params = attrBean.getParameters( );
		Map displayTexts = attrBean.getDisplayTexts( );
		IViewerReportDesignHandle reportDesignHandle = attrBean
				.getReportDesignHandle( context.getRequest( ) );
		boolean svgFlag = ParameterAccessor.getSVGFlag( context.getRequest( ) );
		String outputDocName = attrBean.getReportDocumentName( );
		InputOptions options = new InputOptions( );
		options.setOption( InputOptions.OPT_REQUEST, context.getRequest( ) );
		options.setOption( InputOptions.OPT_LOCALE, locale );
		options.setOption( InputOptions.OPT_RTL,
				new Boolean( attrBean.isRtl( ) ) );
		options.setOption( InputOptions.OPT_IS_MASTER_PAGE_CONTENT,
				new Boolean( master ) );
		options.setOption( InputOptions.OPT_SVG_FLAG, new Boolean( svgFlag ) );
		options.setOption( InputOptions.OPT_FORMAT, format );
		options.setOption( InputOptions.OPT_IS_DESIGNER, new Boolean( attrBean
				.isDesigner( ) ) );
		getReportService( ).runAndRenderReport( reportDesignHandle,
				outputDocName, options, params, os, new ArrayList( ),
				displayTexts );
	}
	protected IViewerReportService getReportService( )
	{
		return BirtReportServiceFactory.getReportService( );
	}
}