骆驼 IMAP 端点:"FailedToCreateRouteException ... Failed to resolve endpoint: ... due to: host must be specified and not empty"
Camel IMAP endpoint: "FailedToCreateRouteException ... Failed to resolve endpoint: ... due to: host must be specified and not empty"
以下是我的 POM:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-mail</artifactId>
<version>2.22.0<version>
</dependency>
我的端点配置来自 https://camel.apache.org/mail.html、示例 部分:
...
from("imap://{{mail_user}}@{{imaps_server}} password={{mail_password}}&unseen=true&consumer.delay={{poll_interval}}")
...
这导致:
...
Exception in thread "main" org.apache.camel.FailedToCreateRouteException:
Failed to create route route1: Route(route1)[[From[imap://{{mail_user}}@{{imaps_server}} pa...
because of Failed to resolve endpoint:
imap://********@mail.upcmail.at%20password=********&unseen=true&consumer.delay=10000
due to: host must be specified and not empty
...
但是 mail.upcmail.at
是主机,不是吗?我在这里错过了什么?
你的 post 是不是打错了?您的 uri 中缺少问号 (?)。
这应该是:
来自("imap://{{mail_user}}@{{imaps_server}}?password=...")
以下是我的 POM:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-mail</artifactId>
<version>2.22.0<version>
</dependency>
我的端点配置来自 https://camel.apache.org/mail.html、示例 部分:
...
from("imap://{{mail_user}}@{{imaps_server}} password={{mail_password}}&unseen=true&consumer.delay={{poll_interval}}")
...
这导致:
...
Exception in thread "main" org.apache.camel.FailedToCreateRouteException:
Failed to create route route1: Route(route1)[[From[imap://{{mail_user}}@{{imaps_server}} pa...
because of Failed to resolve endpoint:
imap://********@mail.upcmail.at%20password=********&unseen=true&consumer.delay=10000
due to: host must be specified and not empty
...
但是 mail.upcmail.at
是主机,不是吗?我在这里错过了什么?
你的 post 是不是打错了?您的 uri 中缺少问号 (?)。 这应该是: 来自("imap://{{mail_user}}@{{imaps_server}}?password=...")