gpt4 book ai didi

tomcat - tomcat中Mule Flow中的选择配置

转载 作者:行者123 更新时间:2023-11-28 23:29:40 24 4
gpt4 key购买 nike

我正在尝试根据 map 中存在的数据划分我的流程, map 是在使用 Mule Transformer XMLMapper 和 XML to Map 之后形成的。选择点的流程看起来是:

  <choice doc:name="Choice">
<when expression="#[message.payload['interfaceId'] == 'BK131108.1655.000698']" >
<processor-chain doc:name="AUB Encryption" />
...
</when>
......
</choice>

当我在 Windows 机器上的 Mule Studio 上运行它时,相同的流程工作正常。但是当我在 linux 机器上的 tomcat 上部署流程(与整个项目)时,我收到错误...

DEBUG 2015-08-25 11:46:43,908 [[eig-1.0].BankServiceJMS.stage1.02] com.comviva.mfs.eig.transformers.XmlToMap: The transformed object is of expected type. Type is: HashMap
ERROR 2015-08-25 11:46:43,914 [[eig-1.0].BankServiceJMS.stage1.02] org.mule.exception.DefaultMessagingExceptionStrategy: Caught exception in Exception Strategy: null
java.lang.NullPointerException
at org.mule.routing.filters.ExpressionFilter.getFullExpression(ExpressionFilter.java:140)
at org.mule.routing.filters.ExpressionFilter.accept(ExpressionFilter.java:104)
at org.mule.routing.ChoiceRouter.selectProcessors(ChoiceRouter.java:35)
at org.mule.routing.AbstractSelectiveRouter.process(AbstractSelectiveRouter.java:194)
at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:99)
at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:66)
at org.mule.processor.AbstractInterceptingMessageProcessorBase.processNext(AbstractInterceptingMessageProcessorBase.java:105)
at org.mule.interceptor.AbstractEnvelopeInterceptor.process(AbstractEnvelopeInterceptor.java:55)
at org.mule.processor.AsyncInterceptingMessageProcessor.processNextTimed(AsyncInterceptingMessageProcessor.java:111)
at org.mule.processor.AsyncInterceptingMessageProcessor$AsyncMessageProcessorWorker.doRun(AsyncInterceptingMessageProcessor.java:158)
at org.mule.work.AbstractMuleEventWork.run(AbstractMuleEventWork.java:43)
at org.mule.work.WorkerContext.run(WorkerContext.java:310)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)

任何建议....

最佳答案

Mule 3.4.1 的源代码。在抛出异常的第 140 行,是:{(参见:https://github.com/mulesoft/mule/blob/mule-3.4.1/core/src/main/java/org/mule/routing/filters/ExpressionFilter.java#L140)

因此,我怀疑您没有正确打包 WAR 文件,即未使用预期版本的 Mule。请手动检查WEB-INF/lib,查看打包了哪些mule-*.jar,确保所有版本一致。

关于tomcat - tomcat中Mule Flow中的选择配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32218281/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com