camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8477) Apache Camel HTTP4 component does not suppress exception when using throwExceptionOnFailure
Date Thu, 12 Mar 2015 07:51:39 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-8477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14358236#comment-14358236
] 

Claus Ibsen commented on CAMEL-8477:
------------------------------------

Yes that option is only for server side response code, eg if the response code is 3xx, 4xx,
5xx etc. Those exception you list are prior to calling the remote server and those will happen
regardless.
 

> Apache Camel HTTP4 component does not suppress exception when using throwExceptionOnFailure
> -------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-8477
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8477
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http4
>    Affects Versions: 2.13.0
>            Reporter: Christian Damsgaard
>
> When using the URI endpoint option 'throwExceptionOnFailure=true' on the HTTP4 component
I'm not expected to receive exception such as:
> - java.net.ConnectException in case of a connection refuse problem
> - java.net.UnknownHostException in case of an invalid hostname
> - java.net.SocketTimeoutException in case of an non reachable server.
> Is this an expected behavior?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message