Examples of ProviderException


Examples of org.efs.openreports.providers.ProviderException

      return output;
    }
    catch (Exception e)
    {
      throw new ProviderException(e);
    }
    finally
    {
      try
      {
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

    }
  } 
 
  public List buildParameterList(Report report) throws ProviderException
  {
    throw new ProviderException("JFreeReportEngine: buildParameterList not implemented.");
  }   
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

      {
        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
      {
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

      exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
      exporter.exportReport();
    }
    catch (Exception e)
    {
      throw new ProviderException(e.toString());
    }
   
    engineOutput.setImagesMap(imagesMap);
    engineOutput.setContent(outputStream.toByteArray());
   
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

      rs.close();
    }
    catch (Exception e)
    {
      throw new ProviderException("Error executing report query: " + e.getMessage());
    }
    finally
    {
      try
      {
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

     
      return parameters;
    }
    catch(JRException e)
    {
      throw new ProviderException(e);
    }
  }
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

        // advanced scheduling
        if (reportInput.getStartDate() != null)
        {
          if (!user.isAdvancedScheduler())
          {
            throw new ProviderException("Not Authorized: Advanced Scheduling permission required");         
          }
         
          schedule.setScheduleType(reportInput.getScheduleType().getCode());
          schedule.setStartDate(reportInput.getStartDate());
          schedule.setStartHour(reportInput.getStartHour());
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

      output.setContent(out.toByteArray());
    }
    catch (Throwable e)
    {
      log.error("generateReport Exception", e);     
      throw new ProviderException(e.toString());
    }   
   
    return output;
 
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

      design = engine.openReportDesign(designFile);
    }
    catch (Throwable e)
    {
      log.error("getParameterNames Exception", e);     
      throw new ProviderException(e.toString());
   
   
    IGetParameterDefinitionTask task = engine
        .createGetParameterDefinitionTask(design);
   
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

    if (reportEngine == null)
    {
      String message = report.getName() + " is invalid. Please verify report definition.";
     
      log.error(message);
      throw new ProviderException(message);
    }   
   
    return reportEngine;
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.