Package org.pentaho.reporting.libraries.base.boot

Examples of org.pentaho.reporting.libraries.base.boot.ModuleInitializeException


  {
    final URL expressionMetaSource = ObjectUtilities.getResource
        (source, ElementMetaDataParser.class);
    if (expressionMetaSource == null)
    {
      throw new ModuleInitializeException("Error: Could not find the expression meta-data description file: " + source);
    }
    try
    {
      ExpressionRegistry.getInstance().registerFromXml(expressionMetaSource);
    }
    catch (Exception e)
    {
      logger.debug("Failed:", e);
      throw new ModuleInitializeException("Error: Could not parse the expression meta-data description file", e);
    }
  }
View Full Code Here


  public static void initializeOptionalElementMetaData(final String source) throws ModuleInitializeException
  {
    final URL metaDataSource = ObjectUtilities.getResource(source, ElementMetaDataParser.class);
    if (metaDataSource == null)
    {
      throw new ModuleInitializeException("Error: Could not find the optional element meta-data description file: " + source);
    }
    try
    {
      ElementTypeRegistry.getInstance().registerFromXml(metaDataSource);
    }
    catch (Exception e)
    {
      logger.debug("Failed:", e);
      throw new ModuleInitializeException("Error: Could not parse the element meta-data description file", e);
    }

  }
View Full Code Here

  public static void initializeOptionalDataFactoryMetaData(final String source) throws ModuleInitializeException
  {
    final URL expressionMetaSource = ObjectUtilities.getResource(source, ElementMetaDataParser.class);
    if (expressionMetaSource == null)
    {
      throw new ModuleInitializeException("Error: Could not find the datafactory meta-data description file");
    }
    try
    {
      DataFactoryRegistry.getInstance().registerFromXml(expressionMetaSource);
    }
    catch (Exception e)
    {
      logger.debug("Failed:", e);
      throw new ModuleInitializeException("Error: Could not parse the datafactory meta-data description file", e);
    }
  }
View Full Code Here

  {
    final InputStream in = ObjectUtilities.getResourceRelativeAsStream
        ("coremodule.properties", ClassicEngineCoreModule.class);
    if (in == null)
    {
      throw new ModuleInitializeException
          ("File 'coremodule.properties' not found in JFreeReport package.");
    }
    loadModuleInfo(in);
  }
View Full Code Here

      // I'm not going through and fix that now.
      logger.debug("Failedt to init Datasource dialog dependencies", e);

      // Should not happen, as there is no code in that method that could possibly raise
      // a Kettle exception.
      throw new ModuleInitializeException("Failed to initialize Kettle");
    }

  }
View Full Code Here

      // I'm not going through and fix that now.
      logger.debug("Failedt to init Datasource dialog dependencies", e);

      // Should not happen, as there is no code in that method that could possibly raise
      // a Kettle exception.
      throw new ModuleInitializeException("Failed to initialize Kettle");
    }
  }
View Full Code Here

          baseDirectoryFile = new File(homeDirectory, baseDirectory);
        }
      }
      catch (Exception e)
      {
        throw new ModuleInitializeException
                ("Failed to create the file config storage.", e);
      }
    }

    if (baseDirectoryFile.exists() == false)
    {
      if (baseDirectoryFile.mkdirs() == false)
      {
        throw new ModuleInitializeException
                ("Unable to create the specified directory.");
      }
    }
    else
    {
      if (baseDirectoryFile.canRead() == false ||
              baseDirectoryFile.canWrite() == false)
      {
        throw new ModuleInitializeException
                ("Unable to access the specified directory.");
      }
    }
    return baseDirectoryFile;
  }
View Full Code Here

  public void initialize (final SubSystem subSystem)
          throws ModuleInitializeException
  {
    if (isClassLoadable("com.lowagie.text.Document", PdfOutputModule.class) == false)
    {
      throw new ModuleInitializeException("Unable to load iText classes. " +
              "Check your classpath configuration.");
    }

    if ("onInit".equals(subSystem.getGlobalConfig().getConfigProperty
        ("org.jfree.layouting.modules.output.pdf.AutoInit")))
View Full Code Here

  {
    final InputStream in = ObjectUtilities.getResourceRelativeAsStream
            ("coremodule.properties", JFreeReportCoreModule.class);
    if (in == null)
    {
      throw new ModuleInitializeException
              ("File 'coremodule.properties' not found in JFreeReport package.");
    }
    loadModuleInfo(in);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.base.boot.ModuleInitializeException

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.