如何解决出现错误“Service SchedulerService 未启动”在 Anypoint Studio 上运行 mule 项目
我对 Mule 还很陌生。我正在尝试使用 Mule Server 4.3.0 EE 请求 HTTP GET 并将响应存储在 Anypoint Studio 7.8.0 中的文件中。
项目的xml:
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd">
<http:request-config name="HTTP_Request_configuration" doc:name="HTTP Request configuration" doc:id="19e17a26-e3c2-46a0-8794-d7b5213c942a" basePath="/admin/api/2021-01/" >
<http:request-connection protocol="HTTPS" host="username:password@example.myshopify.com" />
<http:default-headers >
<http:default-header key="Content-Type" value="application/json" />
</http:default-headers>
</http:request-config>
<http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config" doc:id="c716e1b1-cf8b-4467-88c5-af2cfed0ee0c" basePath="/" >
<http:listener-connection host="0.0.0.0" port="8089" />
</http:listener-config>
<file:config name="File_Config" doc:name="File Config" doc:id="e6928375-981e-4823-b4ae-e7f86badba51" >
</file:config>
<flow name="hitshopifyapiFlow" doc:id="fafc03fd-ee64-4372-b9fd-4190e329bf59" >
<http:listener doc:name="Listener" doc:id="cbede4fb-c4e0-4c28-9ea9-2285c3c0cd85" config-ref="HTTP_Listener_config" path="shopify-data/"/>
<http:request method="GET" doc:name="Get Products" doc:id="24fc2e36-f033-44a1-9436-a2c540763666" config-ref="HTTP_Request_configuration" path="/products.json"/>
<file:write doc:name="Write" doc:id="f1ee9885-e418-4494-bb6e-29116d5d9e35" config-ref="File_Config" path="/Users/sagarsinha/AnypointStudio/studio-workspace/hitshopifyapi/src/test/resources/output/output.json"/>
</flow>
</mule>
分享部分控制台响应(因为无法提交完整响应):
Caused by: java.lang.IllegalStateException: Service SchedulerService 未启动。 ... ... ... ... org.mule.runtime.module.deployment.internal.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:154) ~[mule-module-deployment-4.3.0-20210304.jar:4.3.0-20210304] 在 org.mule.runtime.module.deployment.internal.MuleDeploymentService.start(MuleDeploymentService.java:143) ~[mule-module-deployment-4.3.0-20210304.jar:4.3.0-20210304] 在 org.mule.runtime.module.launcher.MuleContainer.start(MuleContainer.java:254) ~[mule-module-launcher-4.3.0-20210304.jar:4.3.0-20210304] 在 jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] 在 jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) ~[?:?] 在 jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] 在 java.lang.reflect.Method.invoke(Method.java:564) ~[?:?] 在 org.mule.runtime.module.reboot.internal.MuleContainerWrapper.start(MuleContainerWrapper.java:49) ~[mule-module-boot-ee-4.3.0-20210304.jar:4.3.0-20210304] 在 org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:4514) ~[wrapper-3.5.45.jar:3.5.45] 信息 2021-03-19 15:15:40,739 [WrapperListener_start_runner] org.mule.runtime.core.internal.logging.LogUtil: ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++
- Mule 起身踢腿(每 5000 毫秒)+ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++ INFO 2021-03-19 15:15:40,740 [WrapperListener_start_runner] org.mule.runtime.core.internal.logging.LogUtil:
**********************************************************************
* - - + DOMAIN + - - * - - + STATUS + - - *
**********************************************************************
* default * DEPLOYED *
**********************************************************************
*******************************************************************************************************
* - - + APPLICATION + - - * - - + DOMAIN + - - * - - + STATUS + - - *
*******************************************************************************************************
* hit-shopify-api * default * FAILED *
它在谈论什么服务?
是 XML 还是 Anypoint Studio 配置有问题,还是我完全不在状态? 顺便说一句,这发生在我创建的任何项目中,无论它多么基础。我是不是在安装过程中做错了什么?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。