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/ReportEngineService.java
import org.eclipse.birt.report.resource.ResourceConstants;
import org.eclipse.birt.report.soapengine.api.Column;
import org.eclipse.birt.report.soapengine.api.ResultSet;
import org.eclipse.birt.report.utility.BirtUtility;
import org.eclipse.birt.report.utility.DataUtil;
import org.eclipse.birt.report.utility.ParameterAccessor;
/**
 * Provides all the services from Engine.
 */
public class ReportEngineService
{
	private static ReportEngineService instance;
	/**
	 * Report engine instance.
	 */
	private IReportEngine engine = null;
	/**
	 * Static engine config instance.
	 */
	private EngineConfig config = null;
	/**
	 * URL accesses images.
	 */
	private String imageBaseUrl = null;
	/**
	 * Image handler instance.
	 */
	private HTMLServerImageHandler imageHandler = null;
	/**
	 * Web app context path.