In first testing the 1.0.5 RC, I get the error below. This worked as is in 1.0.4. Something different with the count use in the RC?
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long which comes from this line as shown in more detail below:
count = new Integer(((Long)obj[2]).intValue());
This came out of getting a count out of a ReportByCriteria result set.
Where the columns look like:
private static final String[] crColumns = new String[]{"countryId", "regionId", "count(countryId)","count(regionId)"};
ReportQueryByCriteria query = new ReportQueryByCriteria(specificActiveServiceLocationQueryVO,
crColumns, crit, true);
.....
.....
obj = (Object[]) resultsIt.next();
count = new Integer(((Long)obj[2]).intValue());