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

Splitter does not allow errorhandler to handle exception in the splitter-expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.4, 2.10.0, 2.10.1, 2.10.2
    • 2.9.5, 2.10.3, 2.11.0
    • camel-core
    • None
    • Unknown

    Description

      This might relate to CAMEL-5024

      The following route works ok in camel 2.9.3

      from("direct:sampleUri")
        .errorHandler(deadLetterChannel("direct:errorhandler").disableRedelivery())
        .multicast()
          .stopOnException()
          .split(simple("${body.list}"))
            .streaming()
            .stopOnException()
            .process(new Processor() {
              @Override
      	public void process(Exchange exchange) throws Exception {
      
      	
      	}
      	
           }).end()
          .end()
          .to("direct:somewhere_else_1")
          .to("direct:somewhere_else_2")
      .end();
      

      -> if an exception is thrown by body.list the errorhandler kicks in and the
      message is handled by "direct:errorhandler". Since 2.9.4 (and also with the latest version, 2.10.2) the errorhandler is no longer
      active.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              chris889 C S
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: