Mule - Error Handling -


in mule i'm using catch exception strategy referenced "complex" flow. put jdbc component in exception strategy, update table record in case of error how can access exception stack trace log on table? checked payload @ beginning of exception strategy , of type org.apache.commons.httpclient.methods.postmethod in fact got error during http call.

in exception strategy exception not available in payload. available in exceptionpayload variable of message object.

use

exception exception = (exception)message.getexceptionpayload().getexception();

this give exceptionpaylaod object getexception() method provides exception object.

to stack trace use following.

stacktraceelement[] ste = exception.getcause().getstacktrace(); 

from there can continue need.

hope helps.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -