![](/img/trans.png)
[英]Mule ESB CloudHub No listener found for request and Available listeners are
[英]mule esb No listener found for request : (GET) /echo
当尝试一个简单的mulesoft教程示例时,我没有该教程中说明的结果
教程链接:
https://docs.mulesoft.com/mule-user-guide/v/3.3/configuring-an-endpoint
影片连结:
流:
我已经像这样配置了HTTP元素:
对于Listner:
但是当我尝试在浏览器中获取:
这个没有显示/ echo
它在控制台中显示以下消息:
INFO 2016-12-13 12:34:22,652 [[echo2].HTTP_Listener_Configuration.worker.01] org.mule.module.http.internal.listener.HttpListenerRegistry: No listener found for request: (GET)/echo
有人有主意吗?
看起来您是在指3.3版文档/视频教程。 似乎您使用的是3.8版本的Mule运行时和任何最新的Studio,因此请参考3.8版本的文档。 可能是新版本中的功能可能已更改。
我重新创建了您的应用程序,这是因为您缺少http:listener组件上的path = / echo属性。
请比较我的工作配置。
<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8081" doc:name="HTTP Listener Configuration"/>
<flow name="echo-testFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/echo" doc:name="HTTP"/>
<logger message="Inside #[flow.name] with payload #[payload]" level="INFO" doc:name="Logger"/>
<echo-component doc:name="Echo"/>
</flow>
由于echo组件显示有效负载的内容。因此,您无法在日志中看到任何内容。此外,在路径中也必须使用“ / *”代替“ /”。 让我知道它的结果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.