3 Replies Latest reply on Sep 8, 2008 8:12 AM by Stefan Lecho

    AuthenticationFailedException when connecting to pop.gmail.c

    Stefan Lecho Newbie

      I've configured a MailListenerAction that polls a mailbox on pop.gmail.com. When deploying the ESB archive, a AuthenticationFailedException is thrown.

      The action-config I'm using:

      <activation-config>
       <property name="mailServer" value="pop.gmail.com"/>
       <property name="storeProtocol" value="pop3"/>
       <property name="mailFolder" value=""/>
       <property name="userName" value="testaccount60"/>
       <property name="password" value="t3staccount"/>
       <!-- specified in milliseconds -->
       <property name="pollingInterval" value="10000"/>
      </activation-config>


      Is there a way to specify the following properties: mail.pop3.socketFactory.class, mail.pop3.socketFactory.fallback, mail.pop3.socketFactory.port ?

      11:51:10,314 ERROR [MailActivation] Failed to execute folder check, spec=MailActivationSpec(mailServer=pop.gmail.com, storeProtocol=pop3, mailFolder=, pollingInterval=10000, messageSelector=null, userName=testaccount60, maxMessages=1)
      javax.mail.AuthenticationFailedException: EOF on socket
       at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:146)
       at javax.mail.Service.connect(Service.java:275)
       at javax.mail.Service.connect(Service.java:156)
       at org.jboss.resource.adapter.mail.inflow.MailFolder.open(MailFolder.java:71)
       at org.jboss.resource.adapter.mail.inflow.MailActivation.run(MailActivation.java:121)
       at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
       at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
       at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
       at java.lang.Thread.run(Thread.java:595)


      Regards, Stefan Lecho.