Community
Participate
Working Groups
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
Created attachment 181263 [details] Patch for org.eclipse.birt.data Feel free to use this patch in any legal way.
Created attachment 181264 [details] Patch for org.eclipse.birt.report.data.oda.jdbc Feel free to use this patch in any legal way.
Created attachment 181265 [details] Patch for org.eclipse.birt.report.engine Feel free to use this patch in any legal way.
Update for BIRT 2.6.1: The first issue is fixed (instead of a strange name, I see the code) but the other two are still there.
Created attachment 182697 [details] Test case for broken error messages This report shows the broken error messages in 2.5.2 and 2.6.1.
I have now applied my patches to 2.6.1. The line numbers changed a bit but otherwise, the data and engine patches are the same as for 2.5.2.
BIRT 2.6.2 contains most of my patch. The patch for org.eclipse.birt.data is no longer necessary. The JDBC patch is also obsolete. Only MessageConstants.SCRIPT_EVALUATION_ERROR still takes two arguments, so part of the patch for the report engine is still necessary.
Apply the changes to the classes according to the patch in head and 2.6.1 branch.
Verified in 3.7RC1.