Examples of InitializationException


Examples of org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

        {
            initializeDefaultContinuumBuildDefintions();
        }
        catch ( BuildDefinitionServiceException e )
        {
            throw new InitializationException( e.getMessage(), e );
        }
    }
View Full Code Here

Examples of org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

            {
                mavenProjectBuilder = (MavenProjectBuilder) container.lookup( MavenProjectBuilder.ROLE );
            }
            catch ( ComponentLookupException e )
            {
                throw new InitializationException( "Failed to lookup project builder after it was NOT injected via component requirement." );
            }
        }
       
        if ( modelInterpolator == null )
        {
            warnOfIncompleteComponentConfiguration( ModelInterpolator.ROLE );
            try
            {
                modelInterpolator = (ModelInterpolator) container.lookup( ModelInterpolator.ROLE );
            }
            catch ( ComponentLookupException e )
            {
                throw new InitializationException( "Failed to lookup model interpolator after it was NOT injected via component requirement." );
            }
        }
       
        if ( configInterpolator == null )
        {
            warnOfIncompleteComponentConfiguration( ConfigurationInterpolator.ROLE );
            try
            {
                configInterpolator = (ConfigurationInterpolator) container.lookup( ConfigurationInterpolator.ROLE );
            }
            catch ( ComponentLookupException e )
            {
                throw new InitializationException( "Failed to lookup plugin-configuration interpolator after it was NOT injected via component requirement." );
            }
        }
    }
View Full Code Here

Examples of org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

        {
            myPlexus.setConfigurationResource( r );
        }
        catch ( PlexusConfigurationResourceException e )
        {
            throw new InitializationException( "Unable to initialize container configuration", e );
        }

        if ( contextValues != null )
        {
            for ( Iterator i = contextValues.keySet().iterator(); i.hasNext(); )
            {
                String name = (String) i.next();

                myPlexus.addContextValue( name, contextValues.getProperty( name ) );
            }
        }

        try
        {
            myPlexus.initialize();
        }
        catch ( PlexusContainerException e )
        {
            throw new InitializationException( "Error initializing container", e );
        }
    }
View Full Code Here

Examples of org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

            {
                compiledPattern = compiler.compile( pattern );
            }
            catch ( MalformedPatternException e )
            {
                throw new InitializationException( "Regular expression pattern is malformed.", e );
            }
        }
        else
        {
            throw new InitializationException( "Regular expression cannot be null." );
        }
    }
View Full Code Here

Examples of org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

    {
        String mavenVersion = rtInfo.getMavenVersion();

        if ( StringUtils.isEmpty( mavenVersion ) )
        {
            throw new InitializationException( "Unable to read Maven version from maven-core" );
        }

        applicationVersion = new DefaultArtifactVersion( mavenVersion );
    }
View Full Code Here

Examples of org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

            properties.load( resourceAsStream );

            String property = properties.getProperty( "version" );
            if ( property == null )
            {
                throw new InitializationException( "maven-core properties did not include the version" );
            }

            applicationVersion = new DefaultArtifactVersion( property );
        }
        catch ( IOException e )
        {
            throw new InitializationException( "Unable to read properties file from maven-core", e );
        }
        finally
        {
            IOUtil.close( resourceAsStream );
        }
View Full Code Here

Examples of org.dbpedia.spotlight.exceptions.InitializationException

        try {
            unigramClassifier.classify(unigramOccurrence);
            ngramClassifier.classify(ngramOccurrence);
        } catch (Exception e) {
            throw new InitializationException("An error occurred while classifying a test spot using the co-occurrence " +
                    "based spot selector. This is most probably caused by an outdated spot selector model. Please " +
                    "check the spot selector models defined 'org.dbpedia.spotlight.spot.cooccurrence.classifier.*'.", e);
        }
        LOG.info("Done.");

View Full Code Here

Examples of org.fcrepo.server.errors.InitializationException

       
        m_DOManager = (DOManager)server.getBean(DOManager.class.getName());
        m_policyIndex = (PolicyIndex)server.getBean(PolicyIndex.class.getName());
        if (m_DOManager == null) {
            LOG.error("DOManager module was not set");
            throw new InitializationException("DOManager module was not set");
        }

        if (m_policyIndex == null) {
            LOG.error("PolicyIndex was not set");
            throw new InitializationException("PolicyIndex was not set");
        }

    }
View Full Code Here

Examples of org.jivesoftware.util.InitializationException

        try {
            cacheFactoryStrategy = (CacheFactoryStrategy) Class
                        .forName(localCacheFactoryClass).newInstance();
        }
        catch (InstantiationException e) {
             throw new InitializationException(e);
        }
        catch (IllegalAccessException e) {
             throw new InitializationException(e);
        }
        catch (ClassNotFoundException e) {
            throw new InitializationException(e);
        }
    }
View Full Code Here

Examples of org.nasutekds.server.types.InitializationException

          DirectoryServer.registerAlternateRootDN(rootUserCfg.dn(),
                                                  alternateBindDN);
        }
        catch (DirectoryException de)
        {
          throw new InitializationException(de.getMessageObject());
        }
      }

      alternateBindDNs.put(rootUserCfg.dn(), altBindDNs);
    }
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.