Package com.consol.citrus.exceptions

Examples of com.consol.citrus.exceptions.ActionTimeoutException


            message = findReplyMessage(selector);
        }

        if (message == null) {
            throw new ActionTimeoutException("Action timeout while receiving Http response from from server");
        }

        return message;
    }
View Full Code Here


            message = endpointConfiguration.getMessageConverter().convertInbound(vertxMessageHandler.getMessage(), endpointConfiguration);
        }

        if (message == null) {
            throw new ActionTimeoutException("Action timed out while receiving message on Vert.x event bus address '" + endpointConfiguration.getAddress() + "'");
        }

        log.info("Received message on Vert.x event bus address: '" + endpointConfiguration.getAddress() + "'");

        onInboundMessage(message, context);
View Full Code Here

            message = findReplyMessage(selector);
        }

        if (message == null) {
            throw new ActionTimeoutException("Action timeout while receiving WebService response from from server");
        }

        return message;
    }
View Full Code Here

            message = endpointConfiguration.getMessageConverter().convertInbound(
                    endpointConfiguration.getMessagingTemplate().receive((PollableChannel) destinationChannel), endpointConfiguration);
        }

        if (message == null) {
            throw new ActionTimeoutException("Action timeout while receiving message from channel '"
                    + destinationChannelName + "'");
        }

        return message;
    }
View Full Code Here

        org.springframework.messaging.Message replyMessage = endpointConfiguration.getMessagingTemplate().sendAndReceive(getDestinationChannel(),
                endpointConfiguration.getMessageConverter().convertOutbound(message, endpointConfiguration));

        if (replyMessage == null) {
            throw new ActionTimeoutException("Reply timed out after " +
                    endpointConfiguration.getTimeout() + "ms. Did not receive reply message on reply channel");
        } else {
            log.info("Received synchronous response message from reply channel");
        }
View Full Code Here

            log.info("Waiting for reply message on destination: '{}'", replyToDestination);

            javax.jms.Message jmsReplyMessage = (endpointConfiguration.getTimeout() >= 0) ? messageConsumer.receive(endpointConfiguration.getTimeout()) : messageConsumer.receive();

            if (jmsReplyMessage == null) {
                throw new ActionTimeoutException("Reply timed out after " +
                        endpointConfiguration.getTimeout() + "ms. Did not receive reply message on reply destination");
            }

            Message responseMessage = endpointConfiguration.getMessageConverter().convertInbound(jmsReplyMessage, endpointConfiguration);
View Full Code Here

            message = findReplyMessage(selector);
        }

        if (message == null) {
            throw new ActionTimeoutException("Action timeout while receiving synchronous reply on destination");
        }

        return message;
    }
View Full Code Here

        } else {
            receivedJmsMessage = endpointConfiguration.getJmsTemplate().receive();
        }

        if (receivedJmsMessage == null) {
            throw new ActionTimeoutException("Action timed out while receiving JMS message on '" + destinationName + "'");
        }

        Message receivedMessage = endpointConfiguration.getMessageConverter().convertInbound(receivedJmsMessage, endpointConfiguration);

        log.info("Received JMS message on destination: '" + destinationName + "'");
View Full Code Here

        log.info("Receiving message from camel endpoint: '" + endpointConfiguration.getEndpointUri() + "'");

        Exchange exchange = endpointConfiguration.getCamelContext().createConsumerTemplate().receive(endpointConfiguration.getEndpointUri(), timeout);

        if (exchange == null) {
            throw new ActionTimeoutException("Action timed out while receiving message from camel endpoint '" + endpointConfiguration.getEndpointUri() + "'");
        }

        log.info("Received message from camel endpoint: '" + endpointConfiguration.getEndpointUri() + "'");

        Message message = endpointConfiguration.getMessageConverter().convertInbound(exchange, endpointConfiguration);
View Full Code Here

            message = replyManager.find(selector);
        }

        if (message == null) {
            throw new ActionTimeoutException("Action timeout while receiving synchronous reply on channel");
        }

        return message;
    }
View Full Code Here

TOP

Related Classes of com.consol.citrus.exceptions.ActionTimeoutException

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.