在mule 3.4.2中的群集中,异步范围不起作用

时间:2015-10-26 13:40:43

标签: mule mule-component mule-el mule-cluster

asle scope在mule 3.4.2中的Clustering中不起作用。我们低于例外。

Message               : Interrupted while queueing event for "SEDA Stage Main_Flow.async1". Message payload is of type: ConfirmReceiveMessageResponse
Code                  : MULE_ERROR--2
--------------------------------------------------------------------------------
Exception stack is:
1. com.sample.client.ReceiveMessageResponse (java.io.NotSerializableException)
  java.io.ObjectOutputStream:1183 (null)
2. java.io.NotSerializableException: com.elexon.bmrs.ecp.client.ReceiveMessageResponse (org.apache.commons.lang.SerializationException)
  org.apache.commons.lang.SerializationUtils:111 (null)
3. Interrupted while queueing event for "SEDA Stage Main_Flow.async1". Message payload is of type: ConfirmReceiveMessageResponse (org.mule.api.service.FailedToQueueEventException)
  org.mule.processor.SedaStageInterceptingMessageProcessor:92 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/service/FailedToQueueEventException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
java.io.NotSerializableException: com.sample.client.ReceiveMessageResponse
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
    at org.apache.commons.collections.map.AbstractHashedMap.doWriteObject(AbstractHashedMap.java:1182)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)

删除异步范围后,我们可以测试应用程序。请帮助我们如何使应用程序与群集环境中的异步一起使用?

1 个答案:

答案 0 :(得分:0)

如果流ref使用异步处理策略,它会尝试将事件保存在我认为的集群中。而且你的对象不是Serializable。

如果您希望保留邮件,可以com.sample.client.ReceiveMessageResponse实施java.io.Serializable

或者你可以尝试强制你流动的流程 - 也许processingStrategy="synchronous"