Package org.pentaho.reporting.engine.classic.core

Examples of org.pentaho.reporting.engine.classic.core.ReportProcessingException


        element.setAttribute(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.AGGREGATION_TYPE, null);
        definition.addExpression(o);
      }
      catch (Exception e)
      {
        throw new ReportProcessingException("Failed to pre-process the report", e);
      }
    }
  }
View Full Code Here


      {
        return s;
      }
      i += 1;
    }
    throw new ReportProcessingException("Unable to create a unique name for the given pattern");
  }
View Full Code Here

      {
        return s;
      }
      i += 1;
    }
    throw new ReportProcessingException("Unable to create a unique name for the given pattern");
  }
View Full Code Here

        final Resource resource = resourceManager.create(resourceKey, contentBase, WizardSpecification.class);
        return (WizardSpecification) resource.getResource();
      }
      catch (ResourceKeyCreationException e)
      {
        throw new ReportProcessingException("Failed to load the wizard-specification", e);
      }
      catch (ResourceException e)
      {
        throw new ReportProcessingException("Failed to load the wizard-specification", e);
      }
    }

    try
    {
      final ResourceKey contentBase = definition.getContentBase();
      final ResourceKey resourceKey = resourceManager.deriveKey(contentBase, "wizard-specification.xml");
      final Resource resource = resourceManager.create(resourceKey, contentBase, WizardSpecification.class);
      return (WizardSpecification) resource.getResource();
    }
    catch (final ResourceKeyCreationException e)
    {
      // not a error.
    }
    catch (final ResourceLoadingException e)
    {
      // not a error
    }
    catch (ResourceException e)
    {
      throw new ReportProcessingException("Failed to load the wizard-specification", e);
    }
    return null;
  }
View Full Code Here

        }
      }
    }
    catch (final CloneNotSupportedException cne)
    {
      throw new ReportProcessingException("Cloning failed", cne);
    }

    registerAsChild(rootGroup);
    registerAsChild(reportHeader);
    registerAsChild(reportFooter);
View Full Code Here

      generate(report, flowController);
      return report;
    }
    catch (CloneNotSupportedException e)
    {
      throw new ReportProcessingException("Unable to derive a working copy", e);
    }
  }
View Full Code Here

      generate(report, flowController);
      return report;
    }
    catch (CloneNotSupportedException e)
    {
      throw new ReportProcessingException("Unable to derive a working copy", e);
    }
  }
View Full Code Here

      }
      storage.put(key, copy);
    }
    catch (CloneNotSupportedException e)
    {
      throw new ReportProcessingException("Storing expressions failed.");
    }
  }
View Full Code Here

      return copy;
    }
    catch (CloneNotSupportedException e)
    {
      throw new ReportProcessingException("Restoring expressions failed.");
    }
  }
View Full Code Here

    final DefaultFlowController fc = next.getFlowController();
    final boolean advanceRequested = fc.isAdvanceRequested();
    final boolean advanceable = fc.getMasterRow().isAdvanceable();
    if (isRootGroup(next))
    {
      throw new ReportProcessingException("This report is invalid. A CR-Row-Group cannot be a root group.");
    }

    final Group parentGroup = next.getReport().getGroup(next.getCurrentGroupIndex());
    if (advanceRequested == false || advanceable == false)
    {
      // This happens for empty - reports. Empty-Reports are never advanceable, therefore we can
      // reach an non-advance state where inner group-footers are printed.
      if (parentGroup instanceof CrosstabRowGroup)
      {
        next.setAdvanceHandler(EndCrosstabRowAxisHandler.HANDLER);
      }
      else if (parentGroup instanceof CrosstabGroup)
      {
        next.setAdvanceHandler(EndCrosstabHandler.HANDLER);
      }
      else if (parentGroup instanceof CrosstabOtherGroup)
      {
        next.setAdvanceHandler(EndCrosstabOtherAxisHandler.HANDLER);
      }
      else
      {
        throw new ReportProcessingException("This report is invalid.");
      }
      return next;
    }

    // This group is not the outer-most group ..
    final DefaultFlowController cfc = fc.performCommit();
    if (ProcessState.isLastItemInGroup(parentGroup, fc.getMasterRow(), cfc.getMasterRow()))
    {
      // continue with an other EndGroup-State ...
      if (parentGroup instanceof CrosstabRowGroup)
      {
        next.setAdvanceHandler(EndCrosstabRowAxisHandler.HANDLER);
      }
      else if (parentGroup instanceof CrosstabGroup)
      {
        next.setAdvanceHandler(EndCrosstabHandler.HANDLER);
      }
      else if (parentGroup instanceof CrosstabOtherGroup)
      {
        next.setAdvanceHandler(EndCrosstabOtherAxisHandler.HANDLER);
      }
      else
      {
        throw new ReportProcessingException("This report is invalid.");
      }
      return next;
    }
    else
    {
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.ReportProcessingException

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.