Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6996

Missing "throw" statements in CdiCamelContext

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.12.1
    • Fix Version/s: 2.11.3, 2.12.2, 2.13.0
    • Component/s: camel-cdi
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      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 }

      }

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              natasha Natasha
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: