Package org.jboss.seam.reports

Examples of org.jboss.seam.reports.ReportException


    public void afterBeanDiscovery(@Observes AfterBeanDiscovery abd) {
        try {
            ClassicEngineBoot.getInstance().start();
        } catch (Throwable t) {
            abd.addDefinitionError(new ReportException("Error loading Pentaho Reporting Engine"));
        }
    }
View Full Code Here


            // TODO Figure out a non-deprecated way to load a report from InputStream
            final ReportGenerator generator = ReportGenerator.createInstance();
            final InputSource repDefInputSource = new InputSource(input);
            return generator.parseReport(repDefInputSource, null);
        } catch (Exception ex) {
            throw new ReportException("Unable to load report", ex);
        }
    }
View Full Code Here

        try {
            rmgr.registerDefaults();
            Resource resource = rmgr.createDirectly(new URL(name), MasterReport.class);
            return (MasterReport) resource.getResource();
        } catch (MalformedURLException ex) {
            throw new ReportException("Invalid report path: " + name, ex);
        } catch (Exception ex) {
            throw new ReportException("Error loading report with name '" + name + "'", ex);
        }
    }
View Full Code Here

            } else if ("CSV".equals(an.value())) {
                CSVReportUtil.createCSV(mr, output, "UTF-8");
            } else if ("XML".equals(an.value())) {
                XmlTableReportUtil.createStreamXML(mr, output);
            } else {
                throw new ReportException("Unknown output format: " + an);
            }
        } catch (ReportProcessingException ex) {
            throw new ReportException("Error rendering report", ex);
        } catch (IOException io) {
            throw new ReportException("Error rendering report", io);
        }
    }
View Full Code Here

        try {
            JRDataSource ds = dataSource.getDelegate();
            JasperPrint filledReport = JasperFillManager.fillReport(getCompiledReport(), parameters,ds);
            return new JasperSeamReport(filledReport);
        } catch (JRException e) {
            throw new ReportException(e);
        }
    }
View Full Code Here

    public JasperSeamReportDefinition loadReportDefinition(InputStream input) throws ReportException {
        try {
            JasperReport report = (JasperReport)JRLoader.loadObject(input);
            return new JasperSeamReportDefinition(report);
        } catch (JRException e) {
            throw new ReportException(e);
        }
    }
View Full Code Here

    public Report loadReport(InputStream input) throws ReportException {
        try {
            JasperPrint print = (JasperPrint)JRLoader.loadObject(input);
            return new JasperSeamReport(print);
        } catch (JRException e) {
            throw new ReportException(e);
        }
    }
View Full Code Here

    public JasperSeamReportDefinition loadReportDefinition(String name) throws ReportException {
        try {
            JasperReport report = (JasperReport)JRLoader.loadObject(name);
            return new JasperSeamReportDefinition(report);
        } catch (JRException e) {
            throw new ReportException(e);
        }
    }
View Full Code Here

    public Report loadReport(String name) throws ReportException {
        try {
            JasperPrint print = (JasperPrint)JRLoader.loadObject(name);
            return new JasperSeamReport(print);
        } catch (JRException e) {
            throw new ReportException(e);
        }
    }
View Full Code Here

    public JasperSeamReportDefinition compile(InputStream input) throws ReportException {
        try {
            JasperReport compiledReport = JasperCompileManager.compileReport(input);
            return new JasperSeamReportDefinition(compiledReport);
        } catch (JRException e) {
            throw new ReportException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.seam.reports.ReportException

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.