Examples of AmqpException


Examples of org.apache.airavata.wsmg.client.amqp.AMQPException

                channel.close();
                connection.close();
            }
        } catch (IOException e) {
            throw new AMQPException(e);
        }
    }
View Full Code Here

Examples of org.apache.airavata.wsmg.client.amqp.AMQPException

                channel.close();
                connection.close();
            }
        } catch (IOException e) {
            throw new AMQPException(e);
        }
    }
View Full Code Here

Examples of org.apache.airavata.wsmg.client.amqp.AMQPException

               
                channel.close();
                connection.close();
            }
        } catch (IOException e) {
            throw new AMQPException(e);
        }
    }
View Full Code Here

Examples of org.springframework.amqp.AmqpException

        message.getMessageProperties().setReplyTo(defaultReplyTo);
        try {
          message.getMessageProperties().setCorrelationId(UUID.randomUUID().toString().getBytes("UTF-8"));
        }
        catch (UnsupportedEncodingException e) {
          throw new AmqpException(e);
        }
        return message;
      }
    });
  }
View Full Code Here

Examples of org.springframework.amqp.AmqpException

   */
  private Address getReplyToAddress(Message request) throws AmqpException {
    Address replyTo = request.getMessageProperties().getReplyToAddress();
    if (replyTo == null) {
      if (this.exchange == null) {
        throw new AmqpException(
            "Cannot determine ReplyTo message property value: "
                + "Request message does not contain reply-to property, and no default Exchange was set.");
      }
      replyTo = new Address(null, this.exchange, this.routingKey);
    }
View Full Code Here

Examples of org.springframework.amqp.AmqpException

        message.getMessageProperties().setReplyTo(new Address(defaultReplyTo));
        try {
          message.getMessageProperties().setCorrelationId(UUID.randomUUID().toString().getBytes("UTF-8"));
        }
        catch (UnsupportedEncodingException e) {
          throw new AmqpException(e);
        }
        return message;
      }
    });
  }
View Full Code Here

Examples of org.springframework.amqp.AmqpException

  public void testConvertRabbitAccessException() {

    assertThat(RabbitExceptionTranslator.convertRabbitAccessException(new PossibleAuthenticationFailureException(new RuntimeException())),
        instanceOf(AmqpAuthenticationException.class));

    assertThat(RabbitExceptionTranslator.convertRabbitAccessException(new AmqpException("")),
        instanceOf(AmqpException.class));

    assertThat(RabbitExceptionTranslator.convertRabbitAccessException(new ShutdownSignalException(false, false, null, null)),
        instanceOf(AmqpConnectException.class));
View Full Code Here

Examples of org.springframework.amqp.AmqpException

        try {
          byte[] newBody = new String(message.getBody(), "UTF-8").toUpperCase().getBytes("UTF-8");
          return new Message(newBody, message.getMessageProperties());
        }
        catch (Exception e) {
          throw new AmqpException("unexpected failure in test", e);
        }
      }
    });
    assertEquals("MESSAGE", received.get(1000, TimeUnit.MILLISECONDS));
    assertEquals("MESSAGE", result);
View Full Code Here

Examples of org.springframework.amqp.AmqpException

        try {
          byte[] newBody = new String(message.getBody(), "UTF-8").toUpperCase().getBytes("UTF-8");
          return new Message(newBody, message.getMessageProperties());
        }
        catch (Exception e) {
          throw new AmqpException("unexpected failure in test", e);
        }
      }
    });
    assertEquals("MESSAGE", received.get(1000, TimeUnit.MILLISECONDS));
    assertEquals("MESSAGE", result);
View Full Code Here

Examples of org.springframework.amqp.AmqpException

        try {
          byte[] newBody = new String(message.getBody(), "UTF-8").toUpperCase().getBytes("UTF-8");
          return new Message(newBody, message.getMessageProperties());
        }
        catch (Exception e) {
          throw new AmqpException("unexpected failure in test", e);
        }
      }
    });
    assertEquals("MESSAGE", received.get(1000, TimeUnit.MILLISECONDS));
    assertEquals("MESSAGE", result);
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.