{
conn = dataSourceProvider.getConnection(dataSource.getId());
jp = JasperFillManager.fillReport(jr, jasperReportMap, conn);
}
if (jp == null || jp.getPages().size() < 1) throw new ProviderException(LocalStrings.ERROR_REPORT_EMPTY);
return jp;
}
catch (Exception e)
{
if (!e.getMessage().equals(LocalStrings.ERROR_REPORT_EMPTY)) log.error("JasperReportEngine.fillReport", e);
throw new ProviderException(e.getMessage());
}
finally
{
try
{