异步作用域在mule 3.4.2中的群集中不起作用

异步作用域在mule 3.4.2中的群集中不起作用,mule,mule-component,mule-el,mule-cluster,Mule,Mule Component,Mule El,Mule Cluster,异步作用域在mule 3.4.2的集群中不起作用。我们正处在一个例外之下 Message : Interrupted while queueing event for "SEDA Stage Main_Flow.async1". Message payload is of type: ConfirmReceiveMessageResponse Code : MULE_ERROR--2 -------------------------

异步作用域在mule 3.4.2的集群中不起作用。我们正处在一个例外之下

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)

删除异步作用域后,我们可以测试应用程序。请帮助我们如何使应用程序在cluster env中使用async

如果flow ref使用异步处理策略,它将尝试在集群中持久化事件。并且您的对象不可序列化

如果希望持久化消息,可以使com.sample.client.ReceiveMessageResponse实现java.io.Serializable


或者,您可以尝试强制执行您正在flow-ref'ing processingStrategy=synchronous的流程。

您使用的是社区版还是企业版?带群集代理的Mule EE 3.4.2。请帮助我们,您可以发布配置吗?你是否有可能在异步块中使用流引用?是的!!!我们在异步范围内使用flow ref。我们不能使用?消息将被持久化的位置?它将被持久化在java堆区域、物理VMfilesystem或其他任何地方。