首页 > 解决方案 > 无法在 Flow Designer 中运行测试

问题描述

我正在阅读 MuleSoft 的“开发基础知识(Mule 4)”,并且正在执行其中一项演练 - “WT 2-3:使用使用 API 的 Flow Designer 创建集成应用程序”以及其中一个步骤(步骤 23 ) 测试按钮不运行,因此我无法测试 REST 端点,因为我没有发送请求的 URL。

当我单击“测试”按钮时,它会切换到“刷新”,并在按钮左侧显示“需要刷新项目”。

但是,当我单击“刷新”按钮并等待几分钟进行刷新时,它会返回到“测试”按钮,该按钮再次不起作用并在单击时显示“项目需要刷新”,所以我陷入了这个无休止的循环.

我尝试删除到目前为止我所做的所有事情并从头开始,但是当我再次进行该演练时,我遇到了同样的问题。

我在 Flow Designer 中只有一个 HTTP 侦听器和“美国航班 API”。添加 API 后出现问题。在添加 API 之前,我使用 HTTP 侦听器和记录器成功运行了测试。

HTTP 侦听器配置:

“美国航班 API”配置:

运行时管理器中的日志显示 LifecycleException,但我不知道是什么原因导致它或如何防止它。

这是运行时管理器的日志:

[2021-08-22 14:56:32.872] INFO    com.mulesoft.ch.queue.boot.PersistentQueueCoreExtension [qtp1112210076-38]: The PersistentQueueManager is NOT configured. The normal VM queue manager will be used.
[2021-08-22 14:56:40.483] INFO    org.mule.runtime.api.el.AbstractBindingContextBuilderFactory [qtp1112210076-38]: Loaded BindingContextBuilderFactory implementation 'org.mule.runtime.core.api.el.DefaultBindingContextBuilderFactory' from classloader 'org.mule.runtime.module.reboot.internal.MuleContainerSystemClassLoader@740e48c1'
[2021-08-22 14:56:40.874] INFO    org.mule.runtime.core.internal.util.journal.TransactionJournal [qtp1112210076-38]: Using files for tx logs /opt/mule/mule-4.3.0/./.mule/americanflightsapp-xslg/queue-tx-log/tx1.log and /opt/mule/mule-4.3.0/./.mule/americanflightsapp-xslg/queue-tx-log/tx2.log
[2021-08-22 14:56:40.882] INFO    org.mule.runtime.core.internal.util.journal.TransactionJournal [qtp1112210076-38]: Using files for tx logs /opt/mule/mule-4.3.0/./.mule/americanflightsapp-xslg/queue-xa-tx-log/tx1.log and /opt/mule/mule-4.3.0/./.mule/americanflightsapp-xslg/queue-xa-tx-log/tx2.log
[2021-08-22 14:56:41.137] INFO    com.mulesoft.ch.batch.BatchCoreExtension [qtp1112210076-38]: Persistent queues is not enabled for batch module as it was not configured in Cloudhub console
[2021-08-22 14:56:41.168] INFO    org.mule.runtime.core.internal.util.queue.QueueXaResourceManager [ArtifactDeployer.start.01]: Starting ResourceManager
[2021-08-22 14:56:41.169] INFO    org.mule.runtime.core.internal.util.queue.QueueXaResourceManager [ArtifactDeployer.start.01]: Started ResourceManager
[2021-08-22 14:56:41.207] INFO    org.mule.runtime.core.internal.logging.LogUtil [ArtifactDeployer.start.01]: 
**********************************************************************
* Application: americanflightsapp-xslg                               *
* OS encoding: UTF-8, Mule encoding: UTF-8                           *
*                                                                    *
**********************************************************************
[2021-08-22 14:59:47.852] INFO    org.mule.runtime.core.internal.util.queue.QueueXaResourceManager [qtp1112210076-39]: Stopping ResourceManager
[2021-08-22 14:59:47.852] INFO    org.mule.runtime.core.internal.util.queue.QueueXaResourceManager [qtp1112210076-39]: Stopped ResourceManager
[2021-08-22 14:59:47.867] INFO    org.mule.runtime.core.internal.lifecycle.RegistryLifecycleCallback [qtp1112210076-39]: Failure executing phase stop over object DefaultBatchEngine, error is: org.mule.runtime.api.lifecycle.LifecycleException(Failed to invoke lifecycle phase "stop" on object: com.mulesoft.mule.runtime.module.batch.internal.engine.DefaultBatchEngine@2fd96fde)
[2021-08-22 14:59:47.869] INFO    org.mule.runtime.module.deployment.impl.internal.artifact.AbstractDeployableArtifact [qtp1112210076-39]: Stopping app 'americanflightsapp-xslg' with no mule context
[2021-08-22 14:59:47.922] INFO    org.mule.runtime.core.internal.logging.LogUtil [qtp1112210076-39]: 
**********************************************************************
* Application "americanflightsapp-xslg" shut down normally on:       *
* 8/22/21 2:59 PM                                                    *
* Up for: 0 days, 0 hours, 3 mins, 6.753 sec                         *
**********************************************************************

欢迎任何帮助,谢谢。

标签: mulesoft

解决方案


问题出在 MuleSoft 方面。我在他们的帮助中心上报告了这个问题,并得到回复说这个问题正在调查中。几天后,问题得到解决,Flow Designer 页面上的测试按钮现在可以正常工作。


推荐阅读