Mule null属性值

时间:2014-07-01 17:51:19

标签: mule

当为流量变量分配空值时,Mule 3.4.1会发出警告。

WARN setProperty(key, value) called with null value; removing key: _enricher.text;     please report the following stack trace to dev@mule.codehaus.org
java.lang.Throwable
at org.mule.DefaultMuleMessage.setProperty(DefaultMuleMessage.java:457)
...etc.

然而,有时候null是理想的。除了使用特定记录器进行查询外,有什么办法可以避免这种情况吗?例如,在下文中,描述性文本可以为空。如果可以避免的话,我不想让所有地方都传递空字符串。

<enricher>
    <flow-ref name="myFlow"/>
    <enrich target="#[variable:status]" source="#[message.payload.STATUS]"/>
    <enrich target="#[variable:descriptiveText]" source="#[message.payload.?TEXT]"/>
</enricher>  

1 个答案:

答案 0 :(得分:2)

org.mule.DefaultMuleMessage的log4j级别设置为ERROR

相关问题