Package org.springframework.messaging

Examples of org.springframework.messaging.MessagingException


    }
    if (ex instanceof org.springframework.jms.support.converter.MessageConversionException) {
      return new MessageConversionException(ex.getMessage(), ex);
    }
    // Fallback
    return new MessagingException(ex.getMessage(), ex);
  }
View Full Code Here


          FileCopyUtils.copy(stream, out);
        }

      });
      if (!result) {
        throw new MessagingException("Error during file transfer");
      }
      else {
        return RepeatStatus.FINISHED;
      }
    }
View Full Code Here

        writer.close();
      }

    });
    if (!result) {
      throw new MessagingException("Error during file transfer");
    }
    else {
      if (logger.isDebugEnabled()) {
        logger.debug("Transferred " + filePath + " to HDFS");
      }
View Full Code Here

      else if (payload instanceof String) {
        try {
          return Double.parseDouble((String) payload);
        }
        catch (Exception e) {
          throw new MessagingException("cannot convert payload to double", e);
        }
      }
    }
    throw new MessagingException("cannot convert "
        + (payload == null ? "null" : payload.getClass().getName() + " to double"));
  }
View Full Code Here

      else if (payload instanceof String) {
        try {
          return Long.parseLong((String) payload);
        }
        catch (Exception e) {
          throw new MessagingException("cannot convert payload to long", e);
        }
      }
    }
    throw new MessagingException("cannot convert "
        + (payload == null ? "null" : payload.getClass().getName() + " to long"));
  }
View Full Code Here

    }
    if (ex instanceof org.springframework.amqp.support.converter.MessageConversionException) {
      return new MessageConversionException(ex.getMessage(), ex);
    }
    // Fallback
    return new MessagingException(ex.getMessage(), ex);
  }
View Full Code Here

TOP

Related Classes of org.springframework.messaging.MessagingException

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.