error-handler-plugin icon indicating copy to clipboard operation
error-handler-plugin copied to clipboard

Two handlers get triggered for /error_2 and only one for /error_1

Open jbenhamou opened this issue 4 years ago • 1 comments

Both error propagate and error continue strategies are invoked for validation error (/api/error_2). This is alleviated when the on-error-continue strategy in the sample Mule app is set to not log the error. However, when /api/error_1 is invoked this is not an issue.

ERROR 2020-03-29 16:35:30,082 [[MuleRuntime].cpuLight.31: [test-app].get:\error_2:api-config.CPU_LITE @6eeca281] [event: f9df44a1-7215-11ea-8937-3ccd365d3abe] org.mule.runtime.core.internal.exception.OnErrorPropagateHandler:
********************************************************************************
Message               : My Custom validation failure message.
Error type            : VALIDATION:INVALID_BOOLEAN
Element               : get:\error_2:api-config/processors/1 @ test-app:api.xml:64 (Is true)
Element XML           : <validation:is-true doc:name="Is true" doc:id="ad241bbd-c253-43da-804d-33fb5a9d5764" message="My Custom validation failure message"></validation:is-true>

  (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************

ERROR 2020-03-29 16:35:30,092 [[MuleRuntime].cpuLight.30: [test-app].api-main.CPU_LITE @7cae64ae] [event: f9df44a1-7215-11ea-8937-3ccd365d3abe] org.mule.runtime.core.internal.exception.OnErrorContinueHandler:
********************************************************************************
Message               : My Custom validation failure message.
Error type            : VALIDATION:INVALID_BOOLEAN
Element               : api-main/processors/0 @ test-app:api.xml:20
Element XML           : <apikit:router config-ref="api-config"></apikit:router>

  (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************

INFO  2020-03-29 16:35:30,117 [[MuleRuntime].cpuLight.30: [test-app].api-main.CPU_LITE @7cae64ae] [event: f9df44a1-7215-11ea-8937-3ccd365d3abe] com.mulesoft.errorhandler.plugin: Error Type VALIDATION:INVALID_BOOLEAN
INFO  2020-03-29 16:35:30,119 [[MuleRuntime].cpuLight.30: [test-app].api-main.CPU_LITE @7cae64ae] [event: f9df44a1-7215-11ea-8937-3ccd365d3abe] com.mulesoft.errorhandler.plugin: UseStandard Error Type true

jbenhamou avatar Mar 30 '20 01:03 jbenhamou

@jbenhamou is this on the master branch or alt-option branch?

biswa-mohanty avatar Apr 13 '20 14:04 biswa-mohanty

closed as no response.

sf-charles avatar Dec 19 '22 18:12 sf-charles