[seam-issues] [JBoss JIRA] (SEAMMAIL-18) Ssl and authentication is not properly supported
Cody Lerum (Closed) (JIRA)
jira-events at lists.jboss.org
Tue Oct 11 13:03:20 EDT 2011
[ https://issues.jboss.org/browse/SEAMMAIL-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cody Lerum closed SEAMMAIL-18.
------------------------------
Resolution: Done
> Ssl and authentication is not properly supported
> ------------------------------------------------
>
> Key: SEAMMAIL-18
> URL: https://issues.jboss.org/browse/SEAMMAIL-18
> Project: Seam Mail
> Issue Type: Bug
> Reporter: Marek Smigielski
> Assignee: Cody Lerum
> Fix For: 3.1.0.CR1
>
>
> 1. When ssl is configured client hung on:
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:129)
> at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:106)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> - locked <0x00000000f84a7420> (a java.io.BufferedInputStream)
> at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:84)
> at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1742)
> at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1523)
> at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:453)
> at javax.mail.Service.connect(Service.java:291)
> - locked <0x00000000f849d258> (a com.sun.mail.smtp.SMTPTransport)
> at javax.mail.Service.connect(Service.java:172)
> at javax.mail.Service.connect(Service.java:121)
> 2. Despite setting authentication credetntials i get from gmail server:
> Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530-5.5.1 Authentication Required. Learn more at
> 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 q18sm1346208bka.15
> at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1668) [:1.4.2]
> at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1207) [:1.4.2]
> at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:735) [:1.4.2]
> at javax.mail.Transport.send0(Transport.java:191) [:1.4.2]
> at javax.mail.Transport.send(Transport.java:120) [:1.4.2]
> at org.jboss.seam.mail.core.BaseMailMessage.send(BaseMailMessage.java:452) [:3.0.0-SNAPSHOT]
> ... 244 more
> Configuration:
> MailConfig mailConfig = new MailConfig();
>
> mailConfig.setServerHost("smtp.gmail.com");
> mailConfig.setServerPort(465);
> mailConfig.setSsl(true);
> mailConfig.setUsername("username");
> mailConfig.setPassword("password");
> mailConfig.setAuth(true);
> Session session = MailUtility.buildMailSession(mailConfig);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list