Package org.apache.camel

Examples of org.apache.camel.RuntimeCamelException


        }
        buildDirectory(channel, fileName.substring(0, fileName.lastIndexOf('/')));
        try {
            channel.put(payload, fileName);
        } catch (SftpException e) {
            throw new RuntimeCamelException("error sending file", e);
        }
    }
View Full Code Here


     */
    public JmsConfiguration copy() {
        try {
            return (JmsConfiguration)clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeCamelException(e);
        }
    }
View Full Code Here

        this.timerName = u.getPath();

    }

    public Producer<BeanExchange> createProducer() throws Exception {
        throw new RuntimeCamelException("Cannot produce to a TimerEndpoint: " + getEndpointUri());
    }
View Full Code Here

                    response = e.getOutMessage();
                    binding.storeCxfResponse(exchange, response);
                }
            }
        } catch (IOException e) {
            throw new RuntimeCamelException(e);
        }
    }
View Full Code Here

        return new LanguageProducer(this);
    }

    public Consumer createConsumer(Processor processor) throws Exception {
        throw new RuntimeCamelException("Cannot consume to a LanguageEndpoint: " + getEndpointUri());
    }
View Full Code Here

        List params = exchange.getIn().getBody(List.class);
        Object[] response = null;
        try {
            response = client.invoke(endpoint.getProperty(CxfConstants.METHOD), params.toArray());
        } catch (Exception e) {
            throw new RuntimeCamelException(e);
        }

        CxfBinding binding = endpoint.getBinding();
        binding.storeCxfResponse(exchange, response);
    }
View Full Code Here

    public ZooKeeperConfiguration copy() {
        try {
            return (ZooKeeperConfiguration)clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeCamelException(e);
        }
    }
View Full Code Here

        if (uri == null) {
            // lazily create the URI which may fail as not all camel uriText are valid URI text
            try {
                uri = new URI(uriText);
            } catch (URISyntaxException e) {
                throw new RuntimeCamelException(e);
            }
        }
        return uri;
    }
View Full Code Here

        // lets raise a warning afterwards that we should update the metadata on the endpoint class
        T answer;
        try {
            answer = (T)IntrospectionSupport.getProperty(endpoint, name);
        } catch (Exception e) {
            throw new RuntimeCamelException(
                    "Failed to get property '" + name + "' on " + endpoint + " due " + e.getMessage(), e);
        }
        if (config == null) {
            warnMissingUriParamOnProperty(name);
        }
View Full Code Here

        // then if the injection fails we will get a valid error otherwise
        // lets raise a warning afterwards that we should update the metadata on the endpoint class
        try {
            IntrospectionSupport.setProperty(endpoint, name, value);
        } catch (Exception e) {
            throw new RuntimeCamelException(
                    "Failed to set property '" + name + "' on " + endpoint + " to value " + value + " due "
                            + e.getMessage(), e);
        }
        if (config == null) {
            warnMissingUriParamOnProperty(name);
View Full Code Here

TOP

Related Classes of org.apache.camel.RuntimeCamelException

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.