+ ". Please verify your truststore or configure ElastiCenterClient to skip the SSL Validation. "); } else if (t.getCause() instanceof ConnectException) { throw new ServiceUnavailableException("Unable to initialize. Failed to connect to " + elastiCenterAddress + ". Please verify the IP Address, Network Connectivity and ensure that Services are running on the ElastiCenter Server. "); throw new ServiceUnavailableException("Unable to initialize. Please contact your ElastiCenter Administrator. Exception " + t.getMessage()); throw new ServiceUnavailableException("Unable to execute command on the server");
if (e instanceof RemoteException && e.getCause() instanceof ConnectException) { e = (Exception) e.getCause(); throw (ServiceUnavailableException) new ServiceUnavailableException("Cannot list '" + name + "'.").initCause(e);
protected Namespace newNamespace( final Hashtable environment ) throws NamingException { try { final NamingProvider provider = (NamingProvider) environment.get( RemoteContext.NAMING_PROVIDER ); return new DefaultNamespace( provider.getNameParser() ); } catch ( final Exception e ) { if ( e instanceof NamingException ) { throw (NamingException) e; } else { final ServiceUnavailableException sue = new ServiceUnavailableException( e.getMessage() ); sue.setRootCause( e ); throw sue; } } } }
configInfo = (ConfigurationInfo) ctx.lookup("openejb/ConfigurationInfoBusinessRemote"); } catch (final ServiceUnavailableException e) { System.out.println(e.getCause().getMessage()); System.out.println(messages.format("cmd.deploy.serverOffline")); System.exit(1);
if (e instanceof RemoteException && e.getCause() instanceof ConnectException) { e = (Exception) e.getCause(); throw (ServiceUnavailableException) new ServiceUnavailableException("Cannot list '" + name + "'.").initCause(e);
new ServiceUnavailableException( e.getMessage() ); sue.setRootCause( e ); throw sue;
configInfo = (ConfigurationInfo) ctx.lookup("openejb/ConfigurationInfoBusinessRemote"); } catch (final ServiceUnavailableException e) { System.out.println(e.getCause().getMessage()); System.out.println(messages.format("cmd.deploy.serverOffline")); System.exit(1);
throw new InvalidParameterException(command + " does not exist on the ElastiCenter server. Please specify a valid command or contact your ElastiCenter Administrator."); } else { throw new ServiceUnavailableException("Internal Error. Please contact your ElastiCenter Administrator.");
if (e instanceof RemoteException && e.getCause() instanceof ConnectException) { e = (Exception) e.getCause(); throw (ServiceUnavailableException) new ServiceUnavailableException("Cannot lookup '" + name + "'.").initCause(e);
ServiceUnavailableException sue = new ServiceUnavailableException("Unexpected failure"); sue.setRootCause(t); throw sue;
configInfo = (ConfigurationInfo) ctx.lookup("openejb/ConfigurationInfoBusinessRemote"); } catch (javax.naming.ServiceUnavailableException e) { System.out.println(e.getCause().getMessage()); System.out.println(messages.format("cmd.deploy.serverOffline")); System.exit(1);
public NamingEnumeration<SearchResult> search( String name, Attributes matchingAttributes, String[] attributesToReturn ) throws NamingException { throw new ServiceUnavailableException( EXCEPTION_MSG ); }
if (e.getCause() instanceof ConnectException) { e = (Exception) e.getCause(); throw (ServiceUnavailableException) new ServiceUnavailableException("Cannot lookup '" + name + "'.").initCause(e); } else if (AuthenticationException.class.isInstance(e.getCause())) { throw AuthenticationException.class.cast(e.getCause());
deployer = (Deployer) ctx.lookup("openejb/DeployerBusinessRemote"); } catch (javax.naming.ServiceUnavailableException e) { System.out.println(e.getCause().getMessage()); System.out.println(Undeploy.messages.format("cmd.deploy.serverOffline")); throw new SystemExitException(-1);
public void addNamingListener( Name name, String s, Object[] objects, SearchControls searchControls, NamingListener namingListener ) throws NamingException { throw new ServiceUnavailableException( EXCEPTION_MSG ); }
deployer = (Deployer) ctx.lookup("openejb/DeployerBusinessRemote"); } catch (final ServiceUnavailableException e) { System.out.println(e.getCause().getMessage()); System.out.println(Undeploy.messages.format("cmd.deploy.serverOffline")); throw new SystemExitException(-1);
public NamingEnumeration<SearchResult> search( Name name, Attributes matchingAttributes, String[] attributesToReturn ) throws NamingException { throw new ServiceUnavailableException( EXCEPTION_MSG ); }
deployer = (Deployer) ctx.lookup("openejb/DeployerBusinessRemote"); } catch (final ServiceUnavailableException e) { System.out.println(e.getCause().getMessage()); System.out.println(Undeploy.messages.format("cmd.deploy.serverOffline")); throw new SystemExitException(-1);
public NamingEnumeration<SearchResult> search( String name, String filter, SearchControls cons ) throws NamingException { throw new ServiceUnavailableException( EXCEPTION_MSG ); }
deployer = (Deployer) ctx.lookup("openejb/DeployerBusinessRemote"); } catch (final ServiceUnavailableException e) { System.out.println(e.getCause().getMessage()); System.out.println(messages.format("cmd.deploy.serverOffline")); throw new SystemExitException(-1);