Codota Logo
StartException.printStackTrace
Code IndexAdd Codota to your IDE (free)

How to use
printStackTrace
method
in
org.jboss.msc.service.StartException

Best Java code snippets using org.jboss.msc.service.StartException.printStackTrace (Showing top 3 results out of 315)

  • Common ways to obtain StartException
private void myMethod () {
StartException s =
  • Codota IconThrowable cause;new StartException(cause)
  • Codota IconServiceController controller;controller.getStartException()
  • Codota IconString str;Throwable cause;new StartException(str, cause)
  • Smart code suggestions by Codota
}
origin: fakereplace/fakereplace

@Override
public void failed(StartException reason) throws IllegalStateException {
  reason.printStackTrace();
  startLatch.countDown();
}
origin: wildfly/wildfly-core

@Override
public void start(StartContext context) throws StartException {
  try {
    super.start(context);
  } catch (StartException e) {
    error = e;
    e.printStackTrace();
    latch.countDown();
    throw e;
  } catch (Throwable t) {
    error = t;
    latch.countDown();
    throw new StartException(t);
  }
}
origin: liveoak-io/liveoak

protected static boolean awaitStability(long timeout, TimeUnit unit, Set<? super ServiceController<?>> failed, Set<? super ServiceController<?>> problem) throws InterruptedException {
  boolean stable = system.awaitStability(timeout, unit, failed, problem);
  if (!stable) {
    log.warn("awaitStability() may require an increased timeout duration.");
  }
  if (failed != null && !failed.isEmpty()) {
    Iterator<? super ServiceController<?>> failedIterator = failed.iterator();
    while (failedIterator.hasNext()) {
      ServiceController controller = (ServiceController) failedIterator.next();
      log.errorf(CONTROLLER_MESSAGE, controller.getName(), controller.getState(), controller.getSubstate(), controller.getMode());
      if (controller.getStartException() != null) {
        controller.getStartException().printStackTrace();
      }
    }
  }
  if (problem != null && !problem.isEmpty()) {
    Iterator<? super ServiceController<?>> problemIterator = problem.iterator();
    while (problemIterator.hasNext()) {
      ServiceController controller = (ServiceController) problemIterator.next();
      log.errorf(CONTROLLER_MESSAGE, controller.getName(), controller.getState(), controller.getSubstate(), controller.getMode());
      if (controller.getStartException() != null) {
        controller.getStartException().printStackTrace();
      }
    }
  }
  return stable;
}
org.jboss.msc.serviceStartExceptionprintStackTrace

Popular methods of StartException

  • <init>
    Constructs a StartException with the specified cause. The detail message is set to:(cause == null ?
  • getStackTrace
  • setStackTrace
  • getCause
  • toString
  • getLocalizedMessage
  • getMessage

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now