WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Stability

Re: Stability

by John Eichelsdorfer :: Rate this Message:

| View in Thread

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());


John Eichelsdorfer
jobbank.com

 « Return to Thread: Stability