Examples of LifecycleException


Examples of com.googlecode.jmxtrans.exceptions.LifecycleException

   *
   * @throws LifecycleException the lifecycle exception
   */
  public synchronized void start() throws LifecycleException {
    if (isRunning) {
      throw new LifecycleException("Process already started");
    } else {
      log.info("Starting Jmxtrans on : " + this.configuration.getJsonDirOrFile().toString());
      try {
        this.serverScheduler.start();

        this.startupWatchdir();

        this.startupSystem();

      } catch (Exception e) {
        log.error(e.getMessage(), e);
        throw new LifecycleException(e);
      }

      // Ensure resources are free
      Runtime.getRuntime().addShutdownHook(shutdownHook);
      isRunning = true;
View Full Code Here

Examples of io.fabric8.runtime.container.LifecycleException

        state = State.CREATED;

        try {
            doConfigure(configuration);
        } catch (Exception ex) {
            throw new LifecycleException("Cannot configure container", ex);
        }
    }
View Full Code Here

Examples of net.sourceforge.javautil.lifecycle.LifecycleException

  public L getLifecycle() { return this.getLifecycleInternal(); }

  @Override public synchronized void bind(IContainer childContainer, boolean autoStartChild) {
    switch (this.getLifecycle().getCurrentPhase()) {
      case DESTROY:
        throw new LifecycleException("Cannot bind child container after destroy", childContainer.getLifecycle());
       
      default:
        if (this.bindings.containsKey(childContainer))
          throw new IllegalArgumentException("Child container already bound");
       
View Full Code Here

Examples of org.apache.axis2.jaxws.lifecycle.LifecycleException

        Handler instance = null;
       
        try {
            instance = (Handler) handlerClass.newInstance();
        } catch (Exception e) {
            throw new LifecycleException("Failed to create handler", e);
        }
               
        return instance;
    }
View Full Code Here

Examples of org.apache.catalina.LifecycleException

   public void start() throws LifecycleException
   {
      // Validate and update our current component state
      if (started)
      {
         throw new LifecycleException
            (sm.getString("authenticator.alreadyStarted"));
      }

      if (LOG.isDebugEnabled())
      {
         LOG.debug("ClusteredSSO:  starting, clusterManagerClass=" + this.clusterManagerClass +
         ", maxEmptyLife = " + maxEmptyLife + "ms, processExpiresInterval = " + processExpiresInterval +"ms");

      }

      // Attempt to create an SSOClusterManager
      createClusterManager(this.clusterManagerClass);

      lifecycle.fireLifecycleEvent(START_EVENT, null);
      started = true;

      if (ssoClusterManager != null)
      {
         try
         {
            ssoClusterManager.start();
         }
         catch (LifecycleException e)
         {
            throw e;
         }
         catch (Exception e)
         {
            throw new LifecycleException("Caught exception starting " +
                  this.clusterManagerClass, e);
         }
      }

   }
View Full Code Here

Examples of org.apache.catalina.LifecycleException

   public void stop() throws LifecycleException
   {
      // Validate and update our current component state
      if (!started)
      {
         throw new LifecycleException
            (sm.getString("authenticator.notStarted"));
      }

      if (ssoClusterManager != null)
      {
         try
         {
            ssoClusterManager.stop();
         }
         catch (LifecycleException e)
         {
            throw e;
         }
         catch (Exception e)
         {
            throw new LifecycleException("Caught exception stopping " +
                  ssoClusterManager.getClass().getSimpleName(), e);
         }
      }

      lifecycle.fireLifecycleEvent(STOP_EVENT, null);
View Full Code Here

Examples of org.apache.catalina.LifecycleException

            ssoClusterManager = mgr;
            clusterManagerClass = className;
         }
         catch (Throwable t)
         {
            throw new LifecycleException("Cannot create " +
               "SSOClusterManager using " +
               className, t);
         }
      }
      else
      {
         Iterator<SSOClusterManager> managers = ServiceLoader.load(SSOClusterManager.class).iterator();
        
         if (!managers.hasNext())
         {
            throw new LifecycleException("No service provider found: " + SSOClusterManager.class.getName());
         }
         SSOClusterManager mgr = managers.next();
         mgr.setSSOLocalManager(this);
         ssoClusterManager = mgr;
         clusterManagerClass = this.ssoClusterManager.getClass().getName();
      }

      if (started)
      {
         try
         {
            ssoClusterManager.start();
         }
         catch (LifecycleException e)
         {
            throw e;
         }
         catch (Exception e)
         {
            throw new LifecycleException("Caught exception stopping " +
                  ssoClusterManager.getClass().getSimpleName(), e);
         }
      }
   }
View Full Code Here

Examples of org.apache.catalina.LifecycleException

         ccm = (CachedConnectionManager) server.getAttribute(new ObjectName(ccmName), "Instance");
         tm = (TransactionManager) server.getAttribute(new ObjectName(tmName), "TransactionManager");
      }
      catch (Exception e)
      {
         throw new LifecycleException(e);
      }
     
      // TODO unshareable resources
      support.fireLifecycleEvent(START_EVENT, this);
   }
View Full Code Here

Examples of org.apache.catalina.LifecycleException

   public void start() throws LifecycleException
   {
      // ctxLoader is set upon construction and nullified during stop
      if (this.ctxLoader == null)
         throw new LifecycleException("WebCtxLoader cannot be restarted");

      if (injectionContainer != null)
      {
         log.debug("injectionContainer enabled and processing beginning with JBoss WebCtxLoader");
         // we need to do this because the classloader is initialize by the web container and
View Full Code Here

Examples of org.apache.catalina.LifecycleException

   {
      log_.debug("Starting JBossManager");

      // Validate and update our current component state
      if (started_)
         throw new LifecycleException("JBossManager alreadyStarted");
     
      backgroundProcessAllowed.set(true);
     
      lifecycle_.fireLifecycleEvent(START_EVENT, null);
      started_ = true;
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.