Examples of FatalListenerExecutionException


Examples of org.springframework.amqp.rabbit.listener.exception.FatalListenerExecutionException

      logger.info("Receiving: " + value);
      if (failed.compareAndSet(false, true)) {
        // intentional error (causes exception on connection thread):
        // channel.abort();
        // throw new RuntimeException("Planned");
        throw new FatalListenerExecutionException("Planned");
      } else {
        latch.countDown();
      }
    }
View Full Code Here

Examples of org.springframework.amqp.rabbit.listener.exception.FatalListenerExecutionException

          TransactionSynchronizationManager.unbindResource(this.getConnectionFactory());
        }
      }
    }
    else if (listener != null) {
      throw new FatalListenerExecutionException("Only MessageListener and SessionAwareMessageListener supported: "
          + listener);
    }
    else {
      throw new FatalListenerExecutionException("No message listener specified - see property 'messageListener'");
    }
  }
View Full Code Here

Examples of org.springframework.amqp.rabbit.listener.exception.FatalListenerExecutionException

      public Object getKey(Object[] args) {
        Message message = (Message) args[1];
        if (messageKeyGenerator == null) {
          String messageId = message.getMessageProperties().getMessageId();
          if (messageId == null) {
            throw new FatalListenerExecutionException(
                "Illegal null id in message. Failed to manage retry for message: " + message);
          }
          return messageId;
        } else {
          return messageKeyGenerator.getKey(message);
View Full Code Here

Examples of org.springframework.amqp.rabbit.listener.exception.FatalListenerExecutionException

            }
          }
          catch (ListenerExecutionFailedException ex) {
            // Continue to process, otherwise re-throw
            if (ex.getCause() instanceof NoSuchMethodException) {
              throw new FatalListenerExecutionException("Invalid listener", ex);
            }
          }
          catch (AmqpRejectAndDontRequeueException rejectEx) {
            /*
             *  These will normally be wrapped by an LEFE if thrown by the
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.