Examples of ResourceCreationException


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

      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

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

    {
      throw new ResourceLoadingException("IOError", ioe);
    }
    catch (Exception e)
    {
      throw new ResourceCreationException("Generic Error", e);
    }
    finally
    {
      try
      {
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

                                final ResourceKey context) throws ResourceCreationException, ResourceLoadingException
  {
    final CrosstabElement report = (CrosstabElement)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 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

      }
      return null;
    }
    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 ResourceCreationException("Unable to parse the document.", e);
    }
  }
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 ResourceDataInputSource input = new ResourceDataInputSource(data, manager);
      return new DomResource(data.getKey(), db.parse(input), data.getVersion(manager));
    }
    catch (ParserConfigurationException e)
    {
      throw new ResourceCreationException("Unable to initialize the XML-Parser", e);
    }
    catch (SAXException e)
    {
      throw new ResourceCreationException("Unable to parse the document: " + data.getKey(), e);
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Unable to read the stream from document: " + data.getKey(), e);
    }
View Full Code Here

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

  public Resource create(final ResourceManager caller, final ResourceData data, final ResourceKey context) throws ResourceCreationException, ResourceLoadingException
  {
    if (parent == null)
    {
      throw new ResourceCreationException("Cannot create resource: Batik libraries are not available.");
    }
    return parent.create(caller, data, context);
  }
View Full Code Here

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

  public Resource create(final ResourceManager caller, final ResourceData data, final ResourceKey context) throws ResourceCreationException, ResourceLoadingException
  {
    if (parent == null)
    {
      throw new ResourceCreationException("Cannot create resource: Batik libraries are not available.");
    }
    return parent.create(caller, data, context);
  }
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.