Package org.efs.openreports.providers

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


      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

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

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

        // 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

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

      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

    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

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

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

TOP

Related Classes of org.efs.openreports.providers.ProviderException

Copyright © 2018 www.massapicom. 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.