Package org.pentaho.reporting.libraries.resourceloader

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceCreationException


                                final ResourceKey context) throws ResourceCreationException, ResourceLoadingException
  {
    final IndexElement report = (IndexElement) res;
    if (report == null)
    {
      throw new ResourceCreationException("Report has not been parsed.");
    }

    // subreports use the content-base of their master-report for now. This is safe for the old platform reports
    // and for bundle-reports.
    report.setDefinitionSource(data.getKey());
View Full Code Here


                                final ResourceKey context) throws ResourceCreationException, ResourceLoadingException
  {
    final TocElement report = (TocElement) res;
    if (report == null)
    {
      throw new ResourceCreationException("Report has not been parsed.");
    }

    // subreports use the content-base of their master-report for now. This is safe for the old platform reports
    // and for bundle-reports.
    report.setDefinitionSource(data.getKey());
View Full Code Here

      throws ResourceCreationException, ResourceLoadingException
  {
    final MasterReport report = (MasterReport) res;
    if (report == null)
    {
      throw new ResourceCreationException("Report has not been parsed.");
    }

    if (context != null)
    {
      report.setContentBase(context);
View Full Code Here

          (fontType, encoding, embedded, false, ttfAfm, pfb);
      return new CompoundResource(key, dc, baseFont, getFactoryType());
    }
    catch (Exception e)
    {
      throw new ResourceCreationException
          ("Failed to create the font " + fontType, e);
    }
  }
View Full Code Here

                                final ResourceKey context) throws ResourceCreationException, ResourceLoadingException
  {
    final SubReport report = (SubReport) res;
    if (report == null)
    {
      throw new ResourceCreationException("Report has not been parsed.");
    }

    // subreports use the content-base of their master-report for now. This is safe for the old platform reports
    // and for bundle-reports.
    report.setDefinitionSource(data.getKey());
View Full Code Here

      CSSParserContext.getContext().destroy();

      final CSSDeclarationRule styleRule = handler.getStyleRule();
      if (styleRule == null)
      {
        throw new ResourceCreationException("Damn, the style rule is null");
      }
      return new CompoundResource(data.getKey(), dependencies, styleRule, getFactoryType());
    }
    catch (CSSParserInstantiationException e)
    {
      throw new ResourceCreationException("Failed to parse the stylesheet.");
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Failed to load the stylesheet.");
    }
View Full Code Here

      return new CompoundResource
          (data.getKey(), dependencies, handler.getStyleSheet(), getFactoryType());
    }
    catch (CSSParserInstantiationException e)
    {
      throw new ResourceCreationException("Failed to parse the stylesheet.", e);
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Failed to load the stylesheet.", e);
    }
View Full Code Here

      final StaticDocumentBundle bundle = new StaticDocumentBundle(repository, manager, bdata.getBundleKey());
      return new SimpleResource(data.getKey(), bundle, getFactoryType(), data.getVersion(manager));
    }
    catch (ResourceException e)
    {
      throw new ResourceCreationException("Unable to interpret document-bundle", e);
    }
  }
View Full Code Here

    {
      throw new ResourceLoadingException("IOError", ioe);
    }
    catch (Exception e)
    {
      throw new ResourceCreationException("Generic Error", e);
    }
    finally
    {
      try
      {
View Full Code Here

      throws ResourceCreationException, ResourceLoadingException
  {
    final MasterReport report = (MasterReport) res;
    if (report == null)
    {
      throw new ResourceCreationException("Report has not been parsed.");
    }

    if (context != null)
    {
      report.setContentBase(context);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.resourceloader.ResourceCreationException

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.