Gmail 不能';t在mule esb中连接POP3

Gmail 不能';t在mule esb中连接POP3,gmail,mule,mule-studio,pop3,mule-component,Gmail,Mule,Mule Studio,Pop3,Mule Component,我在使用POP3连接器接收gmail邮件时遇到问题。。 我得到了身份验证错误和套接字EOF错误 org.mule.module.launcher.DeploymentStartException: AuthenticationFailedException: EOF on socket at org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:155)

我在使用POP3连接器接收gmail邮件时遇到问题。。 我得到了身份验证错误和套接字EOF错误

org.mule.module.launcher.DeploymentStartException: AuthenticationFailedException: EOF on socket
    at org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:155)
    at org.mule.module.launcher.artifact.ArtifactWrapper$4.execute(ArtifactWrapper.java:98)
    at org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129)
    at org.mule.module.launcher.artifact.ArtifactWrapper.start(ArtifactWrapper.java:93)
    at org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:26)
    at org.mule.module.launcher.DefaultArchiveDeployer.guardedDeploy(DefaultArchiveDeployer.java:310)
    at org.mule.module.launcher.DefaultArchiveDeployer.deployArtifact(DefaultArchiveDeployer.java:330)
    at org.mule.module.launcher.DefaultArchiveDeployer.deployExplodedApp(DefaultArchiveDeployer.java:297)
    at org.mule.module.launcher.DefaultArchiveDeployer.deployExplodedArtifact(DefaultArchiveDeployer.java:108)
    at org.mule.module.launcher.DeploymentDirectoryWatcher.deployExplodedApps(DeploymentDirectoryWatcher.java:290)
    at org.mule.module.launcher.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:151)
    at org.mule.module.launcher.MuleDeploymentService.start(MuleDeploymentService.java:99)
    at org.mule.module.launcher.MuleContainer.start(MuleContainer.java:152)
    at org.mule.tooling.server.application.ApplicationDeployer.main(ApplicationDeployer.java:15)
Caused by: org.mule.api.lifecycle.LifecycleException: Failed to start inbound endpoint "endpoint.pop3.mailaddress.gmail.com"
    at org.mule.endpoint.DefaultInboundEndpoint.start(DefaultInboundEndpoint.java:118)
    at org.mule.construct.AbstractFlowConstruct.startIfStartable(AbstractFlowConstruct.java:322)
    at org.mule.construct.AbstractPipeline.doStart(AbstractPipeline.java:315)
    at org.mule.construct.AbstractFlowConstruct$2.onTransition(AbstractFlowConstruct.java:141)
    at org.mule.construct.AbstractFlowConstruct$2.onTransition(AbstractFlowConstruct.java:137)
    at org.mule.lifecycle.AbstractLifecycleManager.invokePhase(AbstractLifecycleManager.java:138)
    at org.mule.construct.FlowConstructLifecycleManager.fireStartPhase(FlowConstructLifecycleManager.java:92)
    at org.mule.construct.AbstractFlowConstruct.start(AbstractFlowConstruct.java:136)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:622)
    at org.mule.lifecycle.phases.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:237)
    at org.mule.lifecycle.RegistryLifecycleManager$RegistryLifecycleCallback.onTransition(RegistryLifecycleManager.java:273)
    at org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:152)
    at org.mule.lifecycle.RegistryLifecycleManager.fireLifecycle(RegistryLifecycleManager.java:123)
    at org.mule.registry.AbstractRegistryBroker.fireLifecycle(AbstractRegistryBroker.java:76)
    at org.mule.registry.MuleRegistryHelper.fireLifecycle(MuleRegistryHelper.java:136)
    at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:91)
    at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:87)
    at org.mule.lifecycle.MuleContextLifecycleManager.invokePhase(MuleContextLifecycleManager.java:69)
    at org.mule.lifecycle.MuleContextLifecycleManager.fireLifecycle(MuleContextLifecycleManager.java:61)
    at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:278)
    at org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:133)
    ... 13 more
我的流程是

<pop3:connector checkFrequency="100" doc:name="POP3" name="POP3" validateConnections="true" />

<flow name="incoming-orders" doc:name="incoming-orders">


        <pop3:inbound-endpoint connector-ref="POP3" doc:name="POP3" host="pop.gmail.com" password="pwd" port="995" responseTimeout="1000" user="mail%40gmail.com"/>

        <logger message="#[payload]" level="INFO" doc:name="Logger"/>

</flow>

我想接收我的邮件…我无法连接到gmail…我的pwd和用户名是正确的,但我得到了身份验证错误。 在我的gmail帐户中,POP3已启用。。
如何解决此问题???

尝试删除用户属性中的'@gmail.com'部分。

我在看你的评论,我也遇到了同样的问题,只工作了一次,但后来像这样更改了我的POP3配置,它工作了,我希望也能为你工作

<pop3s:connector name="pop3sConnector" checkFrequency="30000" doc:name="POP3" validateConnections="true">
    <pop3s:tls-client path="*" storePassword="*"/>
    <pop3s:tls-trust-store path="*" storePassword="*"/>
</pop3s:connector>


然后还有另一个问题,但是如果您在尝试建立连接时检查日志,您将看到“@”是隐式添加的,因此用户不应该拥有它。关于另一个问题,我想到了两件事:1)在gmail帐户中启用POP和不太安全的应用程序,2)gmail要求你使用SSL。实际上,我没有足够的声誉来评论下面的帖子,我已经尝试过了,显然你需要超过50个声誉。此外,@thing是提供的配置中的一个问题,它会导致这样的应用程序失败。不过,谢谢你,我期待着跨越50个代表的障碍,这样我就可以在任何地方发表评论,并以适当的方式提供帮助。@user3855589刚刚在3.6.0中尝试过这一点,它成功了。注意
pop3s
mail
的变化。我希望这能帮上忙。你有没有收到一个例外,或者邮件只是没有被处理?我相信只有未读邮件才会被处理,所以如果你运行应用程序,并在处理完邮件后将邮件标记为已读,应用程序将不会再次接收邮件。是否可能。每次我收到两封邮件都被阅读和未阅读?