Examples of ResourceCreationException


Examples of org.jfree.resourceloader.ResourceCreationException

      handler.getDependencyCollector().add(targetKey, data.getVersion(manager));
      return createResource(targetKey, handler, createdProduct);
    }
    catch (ParserConfigurationException e)
    {
      throw new ResourceCreationException
          ("Unable to initialize the XML-Parser", e);
    }
    catch (SAXException e)
    {
      throw new ResourceCreationException("Unable to parse the document", e);
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Unable to read the stream", e);
    }
View Full Code Here

Examples of org.jfree.resourceloader.ResourceCreationException

      return finishResult (handler.getResult(), manager, new RawResourceData(targetKey), contextKey);
    }
    catch (ParserConfigurationException e)
    {
      throw new ResourceCreationException
          ("Unable to initialize the XML-Parser", e);
    }
    catch (SAXException e)
    {
      throw new ResourceCreationException("Unable to parse the document", e);
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Unable to read the stream", e);
    }
View Full Code Here

Examples of org.jfree.resourceloader.ResourceCreationException

          throws ResourceCreationException, ResourceLoadingException
  {
    final JFreeReport report = (JFreeReport) res;
    if (report == null)
    {
      throw new ResourceCreationException("Report has not been parsed.");
    }
    if (context != null)
    {
      report.setBaseResource(context);
    }
View Full Code Here

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

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

                                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

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

      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

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

          (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

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

                                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

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

      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

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

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