camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Natasha (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-6996) Missing "throw" statements in CdiCamelContext
Date Thu, 21 Nov 2013 18:06:36 GMT
Natasha created CAMEL-6996:
------------------------------

             Summary: 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
            Priority: Critical


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)

Mime
View raw message