Package org.apache.qpid.server.util

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


                    return;
                }
            }
        }

        throw new ServerScopedRuntimeException("No default SaslServer found for mechanism:" + "CRAM-MD5");
    }
View Full Code Here


                    return;
                }
            }
        }

        throw new ServerScopedRuntimeException("No default SaslServer found for mechanism:" + "CRAM-MD5");
    }
View Full Code Here

        {
            encoded_password = data[1].getBytes(Base64MD5PasswordFilePrincipalDatabase.DEFAULT_ENCODING);
        }
        catch (UnsupportedEncodingException e)
        {
            throw new ServerScopedRuntimeException("MD5 encoding not supported, even though the Java standard requires it",e);
        }

        Base64 b64 = new Base64();
        byte[] decoded = b64.decode(encoded_password);
View Full Code Here

        {
            md = MessageDigest.getInstance("MD5");
        }
        catch (NoSuchAlgorithmException e)
        {
            throw new ServerScopedRuntimeException("MD5 not supported although Java compliance requires it");
        }

        for (byte b : data)
        {
            md.update(b);
View Full Code Here

            final Attribute attribute = _attributeTypes.get(name);
            _automatedFields.get(name).set(this, attribute.convert(value, this));
        }
        catch (IllegalAccessException e)
        {
            throw new ServerScopedRuntimeException("Unable to set the automated attribute " + name + " on the configure object type " + getClass().getName(),e);
        }
    }
View Full Code Here

                sslContext.init(null, _trustStore.getTrustManagers(), null);
            }
            catch (NoSuchAlgorithmException e)
            {
                _logger.error("Exception creating SSLContext", e);
                throw new ServerScopedRuntimeException("Error creating SSLContext for trust store : " + _trustStore.getName() , e);
            }
            catch (KeyManagementException e)
            {
                _logger.error("Exception creating SSLContext", e);
                throw new ServerScopedRuntimeException("Error creating SSLContext for trust store : " + _trustStore.getName() , e);
            }
            catch (GeneralSecurityException e)
            {
                _logger.error("Exception creating SSLContext", e);
                throw new ServerScopedRuntimeException("Error creating SSLContext for trust store : " + _trustStore.getName() , e);
            }

            Class<? extends AbstractLDAPSSLSocketFactory> clazz = LDAPSSLSocketFactoryGenerator.createSubClass(clazzName, sslContext.getSocketFactory());
            if (_logger.isDebugEnabled())
            {
View Full Code Here

        }
        if(objClass.isInterface() || Modifier.isAbstract(objClass.getModifiers()))
        {
            return null;
        }
        throw new ServerScopedRuntimeException("Unable to find field definition for automated field " + attr.getName() + " in class " + objClass.getName());
    }
View Full Code Here

                case NONE:
                case LINK:
                    // nothing to do as if link no link associated until there is a consumer associated
                    break;
                default:
                    throw new ServerScopedRuntimeException("Unknown exclusivity policy: "
                                                           + _exclusivityPolicy
                                                           + " this is a coding error inside Qpid");
            }
        }
        else if(_exclusivityPolicy == ExclusivityPolicy.PRINCIPAL)
View Full Code Here

        {
            ctx = createInitialDirContext(env);
        }
        catch (NamingException e)
        {
            throw new ServerScopedRuntimeException("Unable to establish anonymous connection to the ldap server at " + _providerUrl, e);
        }
        finally
        {
            closeSafely(ctx);
        }
View Full Code Here

                }
                break;
            case NONE:
                break;
            default:
                throw new ServerScopedRuntimeException("Unknown exclusivity policy " + _exclusivityPolicy);
        }

        boolean exclusive =  optionSet.contains(ConsumerImpl.Option.EXCLUSIVE);
        boolean isTransient =  optionSet.contains(ConsumerImpl.Option.TRANSIENT);
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.