congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
StartException.getCause
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.jboss.as/jboss-as-server

  public ModuleSpec getModuleSpec() throws ModuleLoadException {
    if (startException != null)
      throw new ModuleLoadException(startException.getCause());
    return moduleSpec;
  }
}
origin: wildfly/wildfly-core

  public ModuleSpec getModuleSpec() throws ModuleLoadException {
    if (startException != null)
      throw new ModuleLoadException(startException.getCause());
    return moduleSpec;
  }
}
origin: org.wildfly.core/wildfly-server

  public ModuleSpec getModuleSpec() throws ModuleLoadException {
    if (startException != null)
      throw new ModuleLoadException(startException.getCause());
    return moduleSpec;
  }
}
origin: org.wildfly/wildfly-server

  public ModuleSpec getModuleSpec() throws ModuleLoadException {
    if (startException != null)
      throw new ModuleLoadException(startException.getCause());
    return moduleSpec;
  }
}
origin: org.jboss.as/jboss-as-controller

private static ModelNode getServiceFailureDescription(final StartException exception) {
  final ModelNode result = new ModelNode();
  if (exception != null) {
    StringBuilder sb = new StringBuilder(exception.toString());
    Throwable cause = exception.getCause();
    while (cause != null) {
      sb.append("\n    Caused by: ");
      sb.append(cause.toString());
      cause = cause.getCause();
    }
    result.set(sb.toString());
  }
  return result;
}
origin: org.wildfly/wildfly-controller

private static ModelNode getServiceFailureDescription(final StartException exception) {
  final ModelNode result = new ModelNode();
  if (exception != null) {
    StringBuilder sb = new StringBuilder(exception.toString());
    Throwable cause = exception.getCause();
    while (cause != null) {
      sb.append("\n    Caused by: ");
      sb.append(cause.toString());
      cause = cause.getCause();
    }
    result.set(sb.toString());
  }
  return result;
}
origin: org.wildfly.core/wildfly-controller

private static ModelNode getServiceFailureDescription(final StartException exception) {
  final ModelNode result = new ModelNode();
  if (exception != null) {
    // This is a bit of inside knowledge of StartException. Its toString() prefixes
    // the main data with 'org...StartException in org.foo.bar: " stuff that
    // will be redundant in the overall output we are creating so we omit that if we can.
    String msg = exception.getLocalizedMessage();
    if (msg == null || msg.length() == 0) {
      msg = exception.toString();
    }
    StringBuilder sb = new StringBuilder(msg);
    Throwable cause = exception.getCause();
    while (cause != null) {
      sb.append("\n    Caused by: ");
      sb.append(cause.toString());
      cause = cause.getCause();
    }
    result.set(sb.toString());
  }
  return result;
}
origin: wildfly/wildfly-core

private static ModelNode getServiceFailureDescription(final StartException exception) {
  final ModelNode result = new ModelNode();
  if (exception != null) {
    // This is a bit of inside knowledge of StartException. Its toString() prefixes
    // the main data with 'org...StartException in org.foo.bar: " stuff that
    // will be redundant in the overall output we are creating so we omit that if we can.
    String msg = exception.getLocalizedMessage();
    if (msg == null || msg.length() == 0) {
      msg = exception.toString();
    }
    StringBuilder sb = new StringBuilder(msg);
    Throwable cause = exception.getCause();
    while (cause != null) {
      sb.append("\n    Caused by: ");
      sb.append(cause.toString());
      cause = cause.getCause();
    }
    result.set(sb.toString());
  }
  return result;
}
origin: org.wildfly.swarm/arquillian

  @Override
  public void transition(ServiceController<?> controller, ServiceController.Transition transition) {
    if (transition.enters(ServiceController.State.START_FAILED)) {
      StartException exception = controller.getStartException();
      Throwable cause = exception.getCause();
      testableArchiveService.setError(cause);
    }
  }
});
origin: io.thorntail/arquillian

  @Override
  public void transition(ServiceController<?> controller, ServiceController.Transition transition) {
    if (transition.enters(ServiceController.State.START_FAILED)) {
      StartException exception = controller.getStartException();
      Throwable cause = exception.getCause();
      testableArchiveService.setError(cause);
    }
  }
});
origin: org.wildfly.core/wildfly-domain-management

private synchronized X509TrustManager getDelegate() {
  if (theTrustStore.isModified()) {
    try {
      theTrustStore.load();
    } catch (StartException e1) {
      throw DomainManagementLogger.ROOT_LOGGER.unableToLoadKeyTrustFile(e1.getCause());
    }
    try {
      trustManagerFactory.init(theTrustStore.getKeyStore());
      TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
      for (TrustManager current : trustManagers) {
        if (current instanceof X509TrustManager) {
          delegate = (X509TrustManager) current;
          break;
        }
      }
    } catch (GeneralSecurityException e) {
      throw DomainManagementLogger.ROOT_LOGGER.unableToOperateOnTrustStore(e);
    }
  }
  if (delegate == null) {
    throw DomainManagementLogger.ROOT_LOGGER.unableToCreateDelegateTrustManager();
  }
  return delegate;
}
origin: wildfly/wildfly-core

private synchronized X509TrustManager getDelegate() {
  if (theTrustStore.isModified()) {
    try {
      theTrustStore.load();
    } catch (StartException e1) {
      throw DomainManagementLogger.ROOT_LOGGER.unableToLoadKeyTrustFile(e1.getCause());
    }
    try {
      trustManagerFactory.init(theTrustStore.getKeyStore());
      TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
      for (TrustManager current : trustManagers) {
        if (current instanceof X509TrustManager) {
          delegate = (X509TrustManager) current;
          break;
        }
      }
    } catch (GeneralSecurityException e) {
      throw DomainManagementLogger.ROOT_LOGGER.unableToOperateOnTrustStore(e);
    }
  }
  if (delegate == null) {
    throw DomainManagementLogger.ROOT_LOGGER.unableToCreateDelegateTrustManager();
  }
  return delegate;
}
origin: org.wildfly/wildfly-osgi-service

if (startex != null && startex.getCause() instanceof BundleException) {
  failure = (BundleException) startex.getCause();
} else {
  failure = MESSAGES.cannotActivateDeferredModulePhase(startex, bundle);
origin: org.jboss.as/jboss-as-osgi-service

if (startex != null && startex.getCause() instanceof BundleException) {
  failure = (BundleException) startex.getCause();
} else {
  failure = MESSAGES.cannotActivateDeferredModulePhase(startex, bundle);
org.jboss.msc.serviceStartExceptiongetCause

Popular methods of StartException

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

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ImageIO (javax.imageio)
  • Runner (org.openjdk.jmh.runner)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now