NPE in AggregateCalculator with Birt 4.4.1 [message #1536948] |
Tue, 30 December 2014 09:38  |
Eclipse User |
|
|
|
I've seen messages for this error with BIrt 2.x, but not with 4.4.1. The messages I've seen indicate this error was fixed some time ago.
I'm running 4.4.1 in an OSGi environment. My report uses Total.count() to display the total number of records. The report works fine when Previewed from Eclipse, but fails in my run time environment.
The error occurs at line 288 of AggregateCalculator class:
assert argDefs.length == aggrArgs[aggrIndex].length;
The code works OK for the first row in the result set. Right after this assert statement is a call to calculateArguments. This routine contains the following code:
if ( aggrInfo.args == null || aggrInfo.args.length == 0 )
{
aggrArgs[aggrIndex] = null;
}
aggrInfo.args.length is equal to 0, so aggrArgs[aggrindex] is set to null.
When the second row from the result set is processed, the assert statement at line 288 throws an NPE because aggrArgs[aggrIndex] is now null.
I don't understand the overall BIrt functionality well enough to understand why aggrArgs[aggrIndex] is set to null in calculateArguments method.
Any help would be greatly appreciated.
Precise version of Birt report engine is 4.4.1.v201409160530
Earl
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03366 seconds