You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/11/21 20:58:35 UTC
[jira] [Work started] (CAMEL-6996) Missing "throw" statements in
CdiCamelContext
[ https://issues.apache.org/jira/browse/CAMEL-6996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-6996 started by Claus Ibsen.
> Missing "throw" statements in CdiCamelContext
> ---------------------------------------------
>
> Key: CAMEL-6996
> URL: https://issues.apache.org/jira/browse/CAMEL-6996
> Project: Camel
> Issue Type: Bug
> Components: camel-cdi
> Affects Versions: 2.12.1
> Reporter: Natasha
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.11.3, 2.12.2, 2.13.0
>
>
> Hi everybody,
> please have a look into file "CdiCamelContext.java":
> In the methods "start" and "stop" "throw" statements are missing (see below).
> This error suppresses proper error handling and error information in case that the cdi camel context cannot be started (for example due to invalid endpoint uris).
> Thanks a lot in advance for the quick fix.
> Bye
> Natasha
> @PostConstruct
> @Override
> public void start() {
> try {
> super.start();
> } catch (Exception e) {
> ObjectHelper.wrapRuntimeCamelException(e); // <= Missing throw statement
> }
> }
> @PreDestroy
> @Override
> public void stop() {
> try {
> super.stop();
> } catch (Exception e) {
> ObjectHelper.wrapRuntimeCamelException(e); // <= Missing throw statement
> }
> }
--
This message was sent by Atlassian JIRA
(v6.1#6144)