Mule附件返回值
流量变化:Mule附件返回值,mule,Mule,流量变化: ERROR 2015-05-27 13:43:51,846 [[qbiif].connector.http.mule.default.receiver.02] org.mule.exception.CatchMessagingExceptionStrategy: ******************************************************************************** Message : Unable
ERROR 2015-05-27 13:43:51,846 [[qbiif].connector.http.mule.default.receiver.02] org.mule.exception.CatchMessagingExceptionStrategy:
********************************************************************************
Message : Unable to process a synchronous event asynchronously. Message payload is of type: MuleResponseWriter$1
Code : MULE_ERROR--2
--------------------------------------------------------------------------------
Exception stack is:
1. Unable to process a synchronous event asynchronously. Message payload is of type: MuleResponseWriter$1 (org.mule.api.MessagingException)
org.mule.processor.AsyncInterceptingMessageProcessor:132 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
org.mule.api.MessagingException: Unable to process a synchronous event asynchronously. Message payload is of type: MuleResponseWriter$1
编辑-2
后续工作代码的最终更改
- Remove
:它将消息负载设置为自身,这是无用的 - 将
包装在
范围中,这样它的响应就不会与来自JAX-RS组件的响应相混淆异步
- 除非您确实需要通过HTTP公开
流,否则请删除其中的审核
HTTP:inbound端点
audit
流中使用http:inbound endpoint
的目的是什么?您打算直接通过HTTP调用此流吗?@DavidDossot,已将其删除。不需要。已删除http入站端点和负载。对异步错误进行更改后,将无法异步处理同步事件。更新了上面的问题明白了,用
ERROR 2015-05-27 13:43:51,846 [[qbiif].connector.http.mule.default.receiver.02] org.mule.exception.CatchMessagingExceptionStrategy:
********************************************************************************
Message : Unable to process a synchronous event asynchronously. Message payload is of type: MuleResponseWriter$1
Code : MULE_ERROR--2
--------------------------------------------------------------------------------
Exception stack is:
1. Unable to process a synchronous event asynchronously. Message payload is of type: MuleResponseWriter$1 (org.mule.api.MessagingException)
org.mule.processor.AsyncInterceptingMessageProcessor:132 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
org.mule.api.MessagingException: Unable to process a synchronous event asynchronously. Message payload is of type: MuleResponseWriter$1
<flow name="audit" doc:name="audit" processingStrategy="asynchronous">
<db:insert config-ref="QB_Oracle_Configuration" doc:name="Audit" transactionalAction="NOT_SUPPORTED">
<db:parameterized-query><![CDATA[INSERT INTO SIAS_AUDIT(ACCESS_ID,EMPLID) VALUES('1','value1')]]></db:parameterized-query>
</db:insert>
<set-payload value="===Audit Log ===" name="AuditStatus" doc:name="Status"/>
</flow>
<flow name="audit" doc:name="audit">
<async>
<db:insert config-ref="QB_Oracle_Configuration" doc:name="Audit" transactionalAction="NOT_SUPPORTED">
<db:parameterized-query><![CDATA[INSERT INTO SIAS_AUDIT(ACCESS_ID,EMPLID) VALUES('1','value1')]]></db:parameterized-query>
</db:insert>
<set-payload value="===Audit Log ===" name="AuditStatus" doc:name="Status"/>
</async>
</flow>