Hide Forgot
TypeProcessor - line 453 and others When an expression has to be execute on a header there is a check to verify the header is present. If not a WARN is logged but an expression is still evaluated, which can lead to exceptions in the script. Also if exception is thrown inside MVEL scirpt the exception is logged only at debug level, event is not recored and it is difficult to identify what happened.
Re: the last para of the description, wasn't able to reproduce this - if the header was missing, I got: 11:56:19,420 WARNING [org.overlord.rtgov.activity.processor.TypeProcessor] (http-/127.0.0.1:8080-1) Property evaluator 'contentType' failed to find a header: org.switchyard.contentTypeXX 11:56:19,422 SEVERE [org.overlord.rtgov.internal.switchyard.camel.AbstractExchangeEventProcessor] (http-/127.0.0.1:8080-1) Failed to report activity event: [Error: null pointer or function not found: toString] [Near : {... toString() ....}] ^ [Line: 1, Column: 1] at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:1015) [mvel2-2.1.6.Final.jar:] at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:980) [mvel2-2.1.6.Final.jar:] at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:340) [mvel2-2.1.6.Final.jar:]
Gary Brown <gary> updated the status of jira RTGOV-305 to Resolved
Verified in ER7
Gary Brown <gary> updated the status of jira RTGOV-305 to Closed