Bug 328221 Several error messages are confusing/useless
Build Identifier: BIRT 2.5.2 I've fixed a couple of error messages in BIRT 2.5.2 which are confusing/useless. See the attached patches. I'm aware that this patch is for an old version of BIRT but maybe they are still useful for someone stuck with BIRT 2.5.2. I didn't check whether the errors are still there in 2.6; feel free to have a look. Bugs fixed: 1. When a pre-compiled method is run and an error happens, the source of the method is included (so you get more than "There was an error in __bm_OPEN"). 2. Instead of "data.engine.BadFetchScriptReturnType", you get a real error message with the method name and the value returned. 3. If logging is enabled for jdbc.Statement, the log would fill with thousands of stack traces warning that "setSpecification is not supported." Feel free to use the patches in any legal way. Reproducible: Always
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/i18n/ResourceConstants.java
public final static String CLOB_READ_ERROR = "data.engine.readcloberror";
	public final static String BLOB_OPEN_ERROR = "data.engine.openbloberror";
	public final static String BLOB_READ_ERROR = "data.engine.readbloberror";
	
	
	public final static String DESTINDEX_OUTOF_RANGE = "data.engine.BadDestIndex";
	public final static String WRITE_TEMPFILE_ERROR = "data.engine.WriteTempError";
	public final static String READ_TEMPFILE_ERROR = "data.engine.ReadTempError";
	
	
	public final static String CREATE_CACHE_TEMPFILE_ERROR = "data.engine.CreateCacheTempError";
	public final static String OPEN_CACHE_TEMPFILE_ERROR = "data.engine.OpenCacheTempError";
	public final static String WRITE_CACHE_TEMPFILE_ERROR = "data.engine.WriteCacheTempError";
	public final static String READ_CACHE_TEMPFILE_ERROR = "data.engine.ReadCacheTempError";
	public final static String CLOSE_CACHE_TEMPFILE_ERROR = "data.engine.CloseCacheTempError";
	public final static String FAIL_LOAD_COLUMN_VALUE = "data.engine.FailedLoadColumnValue";
	public final static String FAIL_LOAD_CLASS = "data.engine.FailedLoadClass";
	
	
	
	public final static String LOAD_FACTORY_ERROR = "load.factory.error";
	
	
	public final static String DATATYPEUTIL_ERROR = "data.engine.DataConversionError";
	public final static String BAD_COMPARE_EXPR = "data.engine.BadCompareExpr";
	public final static String BAD_COMPARE_SINGLE_WITH_MULITI = "data.engine.BadCompareSingleValueWithMultiValues";
	public final static String WRAPPED_BIRT_EXCEPTION = "data.engine.BirtException";
	
	
	public final static String DATASETCACHE_SAVE_ERROR = "data.engine.datasetcache.save.error";