我将我的应用程序从mule 3.4.2升级到3.5.2版本,之后我在处理x12文件时遇到下面给出的异常。
2014-12-18 06:41:41,062 [[unionstation-15.1-SNAPSHOT].httpsConnector.receiver.18] ERROR org.mule.exception.DefaultMessagingExceptionStrategy - ******************************************************************************** Message : Expression Evaluator "header" with expression "invocation:username" returned null but a value was required. (org.mule.api.expression.RequiredValueException). Message payload is of type: ContentLengthInputStream Code : MULE_ERROR-29999 -------------------------------------------------------------------------------- Exception stack is: 1. Expression Evaluator "header" with expression "invocation:username" returned null but a value was required. (org.mule.api.expression.RequiredValueException) org.mule.expression.ExpressionUtils:235 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/expression/RequiredValueException.html) 2. Expression Evaluator "header" with expression "invocation:username" returned null but a value was required. (org.mule.api.expression.RequiredValueException). Message payload is of type: ContentLengthInputStream (org.mule.api.MessagingException) org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:32 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: org.mule.api.expression.RequiredValueException: Expression Evaluator "header" with expression "invocation:username" returned null but a value was required. at org.mule.expression.ExpressionUtils.getPropertyInternal(ExpressionUtils.java:235) at org.mule.expression.ExpressionUtils.getPropertyWithScope(ExpressionUtils.java:63) at org.mule.expression.ExpressionUtils.getPropertyWithScope(ExpressionUtils.java:46) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ********************************************************************************
有人在某个时候遇到同样的问题吗?
答案 0 :(得分:1)
由于未确定的原因,您在应用程序的该点上没有流变量用户名。请查看您添加该变量的位置并检查代码是否已实际执行。
如果您需要进一步的帮助,您应该分享设置和读取该变量所涉及的流程。
答案 1 :(得分:0)
我在mule studio 3.5.0中遇到了同样的错误。
我读取所有标题并访问地图中的元素作为解决方法:
batch_file_name
batch_file_size
batch_content_type
batch_updated_at