Package org.apache.qpid.server.util

Examples of org.apache.qpid.server.util.ServerScopedRuntimeException


                        factory.setWantClientAuth(true);
                    }
                }
                catch (GeneralSecurityException e)
                {
                    throw new ServerScopedRuntimeException("Cannot configure port " + port.getName() + " for transport " + Transport.SSL, e);
                }
                connector = new SslSocketConnector(factory);

            }
            else
View Full Code Here


            return sslContext;

        }
        catch (GeneralSecurityException e)
        {
            throw new ServerScopedRuntimeException("Unable to create SSLContext for key or trust store", e);
        }
    }
View Full Code Here

                }
            }
        }
        catch (AMQUnknownExchangeType e)
        {
            throw new ServerScopedRuntimeException("Unknown exchange type while attempting to initialise exchanges - " +
                                                   "this is because necessary jar files are not on the classpath", e);
        }
        catch (UnknownExchangeException e)
        {
            throw new ServerScopedRuntimeException("Unknown alternate exchange type while attempting to initialise " +
                                                   "a mandatory exchange which should not have an alternate: '" +
                                                   name + "'");
        }
    }
View Full Code Here

            serviceImplementations.add(serviceLoaderIterator.next());
        }

        if(atLeastOne && serviceImplementations.isEmpty())
        {
            throw new ServerScopedRuntimeException("At least one implementation of " + clazz + " expected");
        }

        if(_logger.isDebugEnabled())
        {
            _logger.debug("Found " + serviceImplementations.size() + " implementations of " + clazz);
View Full Code Here

            {
                configureExchange(config.getExchangeConfiguration(exchangeName));
            }
            catch (UnknownExchangeException e)
            {
                throw new ServerScopedRuntimeException("Could not configure exchange " + exchangeName, e);
            }
            catch (ReservedExchangeNameException e)
            {
                throw new ServerScopedRuntimeException("Could not configure exchange " + exchangeName, e);
            }
            catch (AMQUnknownExchangeType e)
            {
                throw new ServerScopedRuntimeException("Could not configure exchange " + exchangeName, e);
            }
        }

        String[] queueNames = config.getQueueNames();

        for (Object queueNameObj : queueNames)
        {
            String queueName = String.valueOf(queueNameObj);
            try
            {
                configureQueue(config.getQueueConfiguration(queueName));
            }
            catch (ConfigurationException e)
            {
                throw new ServerScopedRuntimeException("Could not configure queue " + queueName, e);
            }
        }
    }
View Full Code Here

                    _exchangeRegistry.registerExchange(_exchange);
                }
            }
            catch (AMQUnknownExchangeType e)
            {
                throw new ServerScopedRuntimeException("Unknown exchange type found when attempting to restore " +
                                                       "exchanges, check classpath", e);
            }
            catch (UnknownExchangeException e)
            {
                throw new ServerScopedRuntimeException("Unknown alternate exchange type found when attempting to restore " +
                                                       "exchanges: ", e);
            }
        }
View Full Code Here

                messageStore = (MessageStore) o;
            }
            catch (ClassNotFoundException e)
            {
                throw new ServerScopedRuntimeException("Failed to fina virtual host message store implementation, " +
                                                       "check the classpath and the configuration", e);
            }
            catch (InstantiationException e)
            {
                throw new ServerScopedRuntimeException("Failed to initialise virtual host store, " +
                                                       "check the configuration", e);
            }
            catch (IllegalAccessException e)
            {
                throw new ServerScopedRuntimeException("Failed to initialise virtual host store, " +
                                                       "check the configuration", e);
            }
        }
        else
        {
View Full Code Here

                                                         this);
            }
        }
        catch (ConfigurationException e)
        {
            throw new ServerScopedRuntimeException("Failed to create virtual host " + virtualHostName, e);
        }

        virtualHostRegistry.registerVirtualHost(_virtualHost);

        _virtualHost.addVirtualHostListener(this);
View Full Code Here

        }
        else
        {
            if (count < 0)
            {
                throw new ServerScopedRuntimeException("Reference count for message id " + debugIdentity()
                                                        + " has gone below 0.");
            }
        }
    }
View Full Code Here

                cert = keyStore.getCertificate(alias);
            }
            catch (KeyStoreException e)
            {
                // key store should be initialized above
                throw new ServerScopedRuntimeException("Key store has not been initialized", e);
            }
            if (cert == null)
            {
                throw new IllegalConfigurationException("Cannot find a certificate with alias " + alias
                        + "in key store : " + keyStorePath);
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.util.ServerScopedRuntimeException

Copyright © 2018 www.massapicom. 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.