public ModuleSpec getModuleSpec() throws ModuleLoadException { if (startException != null) throw new ModuleLoadException(startException.getCause()); return moduleSpec; } }
public ModuleSpec getModuleSpec() throws ModuleLoadException { if (startException != null) throw new ModuleLoadException(startException.getCause()); return moduleSpec; } }
public ModuleSpec getModuleSpec() throws ModuleLoadException { if (startException != null) throw new ModuleLoadException(startException.getCause()); return moduleSpec; } }
public ModuleSpec getModuleSpec() throws ModuleLoadException { if (startException != null) throw new ModuleLoadException(startException.getCause()); return moduleSpec; } }
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; }
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; }
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; }
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; }
@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); } } });
@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); } } });
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; }
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; }