Examples of AMQConnectionException


Examples of org.apache.qpid.AMQConnectionException

                        _logger.info("Closing connection due to: " + e.getMessage());
                    }

                    closeSession();

                    AMQConnectionException ce =
                        evt.getMethod().getConnectionException(AMQConstant.CHANNEL_ERROR,
                            AMQConstant.CHANNEL_ERROR.getName().toString());

                    _stateManager.changeState(AMQState.CONNECTION_CLOSING);
                    writeFrame(ce.getCloseFrame(channelId));
                }
            }
            catch (AMQConnectionException e)
            {
                if (_logger.isInfoEnabled())
View Full Code Here

Examples of org.apache.qpid.AMQConnectionException

                }
            }
            else if (!exchange.getType().equals(body.type))
            {

                throw new AMQConnectionException(AMQConstant.NOT_ALLOWED, "Attempt to redeclare exchange: " + body.exchange + " of type " + exchange.getType() + " to " + body.type +".",body.getClazz(), body.getMethod(),body.getMajor(),body.getMinor());   
            }

        }
        if(!body.nowait)
        {
View Full Code Here

Examples of org.apache.qpid.AMQConnectionException

        return new AMQChannelException(code, message, getClazz(), getMethod(), getMajor(), getMinor(), cause);
    }

    public AMQConnectionException getConnectionException(AMQConstant code, String message)
    {
        return new AMQConnectionException(code, message, getClazz(), getMethod(), getMajor(), getMinor(), null);
    }
View Full Code Here

Examples of org.apache.qpid.AMQConnectionException

        return new AMQConnectionException(code, message, getClazz(), getMethod(), getMajor(), getMinor(), null);
    }

    public AMQConnectionException getConnectionException(AMQConstant code, String message, Throwable cause)
    {
        return new AMQConnectionException(code, message, getClazz(), getMethod(), getMajor(), getMinor(), cause);
    }
View Full Code Here

Examples of org.apache.qpid.AMQConnectionException

                }
            }
            else if (!exchange.getTypeShortString().equals(body.getType()))
            {

                throw new AMQConnectionException(AMQConstant.NOT_ALLOWED, "Attempt to redeclare exchange: " + body.getExchange() + " of type " + exchange.getTypeShortString() + " to " + body.getType() +".",body.getClazz(), body.getMethod(),body.getMajor(),body.getMinor(),null);
            }
        }
        if(!body.getNowait())
        {
            MethodRegistry methodRegistry = session.getMethodRegistry();
View Full Code Here

Examples of org.apache.qpid.AMQConnectionException

                    if (_logger.isInfoEnabled())
                    {
                        _logger.info("Closing connection due to: " + e.getMessage());
                    }

                    AMQConnectionException ce =
                            evt.getMethod().getConnectionException(AMQConstant.CHANNEL_ERROR,
                                                                   AMQConstant.CHANNEL_ERROR.getName().toString());

                    _logger.info(e.getMessage() + " whilst processing:" + methodBody);
                    closeConnection(channelId, ce);
                }
            }
            catch (AMQConnectionException e)
            {
                _logger.info(e.getMessage() + " whilst processing:" + methodBody);
                closeConnection(channelId, e);
            }
            catch (AMQSecurityException e)
            {
                AMQConnectionException ce = evt.getMethod().getConnectionException(AMQConstant.ACCESS_REFUSED, e.getMessage());
                _logger.info(e.getMessage() + " whilst processing:" + methodBody);
                closeConnection(channelId, ce);
            }
        }
        catch (Exception e)
View Full Code Here

Examples of org.apache.qpid.AMQConnectionException

        writeFrame(responseBody.generateFrame((Integer)session.getID()));
    }

    public void close(AMQConstant cause, String message) throws AMQException
    {
        closeConnection(0, new AMQConnectionException(cause, message, 0, 0,
                    getProtocolOutputConverter().getProtocolMajorVersion(),
                    getProtocolOutputConverter().getProtocolMinorVersion(),
                    (Throwable) null));
    }
View Full Code Here

Examples of org.apache.qpid.AMQConnectionException

                    if (_logger.isInfoEnabled())
                    {
                        _logger.info("Closing connection due to: " + e.getMessage());
                    }

                    AMQConnectionException ce =
                            evt.getMethod().getConnectionException(AMQConstant.CHANNEL_ERROR,
                                                                   AMQConstant.CHANNEL_ERROR.getName().toString());

                    _logger.info(e.getMessage() + " whilst processing:" + methodBody);
                    closeConnection(channelId, ce);
                }
            }
            catch (AMQConnectionException e)
            {
                _logger.info(e.getMessage() + " whilst processing:" + methodBody);
                closeConnection(channelId, e);
            }
            catch (AMQSecurityException e)
            {
                AMQConnectionException ce = evt.getMethod().getConnectionException(AMQConstant.ACCESS_REFUSED, e.getMessage());
                _logger.info(e.getMessage() + " whilst processing:" + methodBody);
                closeConnection(channelId, ce);
            }
        }
        catch (Exception e)
View Full Code Here

Examples of org.apache.qpid.AMQConnectionException

        writeFrame(responseBody.generateFrame(channelId));
    }

    public void close(AMQConstant cause, String message) throws AMQException
    {
        closeConnection(0, new AMQConnectionException(cause, message, 0, 0,
                    getProtocolOutputConverter().getProtocolMajorVersion(),
                    getProtocolOutputConverter().getProtocolMinorVersion(),
                    (Throwable) null));
    }
View Full Code Here

Examples of org.apache.qpid.AMQConnectionException

        return new AMQChannelException(code, message, getClazz(), getMethod(), getMajor(), getMinor(), cause);
    }

    public AMQConnectionException getConnectionException(AMQConstant code, String message)
    {
        return new AMQConnectionException(code, message, getClazz(), getMethod(), getMajor(), getMinor(), null);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.