You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@continuum.apache.org by "tianxiang (JIRA)" <ji...@codehaus.org> on 2008/04/04 13:03:58 UTC

[jira] Created: (CONTINUUM-1717) The mail notifier causes Exception [user james as MailServer]

The mail notifier causes Exception [user james as MailServer]
-------------------------------------------------------------

                 Key: CONTINUUM-1717
                 URL: http://jira.codehaus.org/browse/CONTINUUM-1717
             Project: Continuum
          Issue Type: Bug
          Components: Notifier - Mail
         Environment: continuum1.1 + maven2 + james
            Reporter: tianxiang


it's my configurations:
-------------------------------------------------------------
plexus.xml
...........
<resource>
            <name>mail/Session</name>
            <type>javax.mail.Session</type>
            <properties>
              <property>
                <name>mail.smtp.host</name>
                <value>qtx.cn</value>
              </property>
              <property>
                <name>mail.smtp.port</name>
                <value>25</value>
              </property>

              <!-- account -->
              <property> 
                <name>mail.smtp.auth</name>
                <value>true</value>
              </property>
              <property>
                <name>mail.smtp.user</name>
                <value>qtx@qtx.cn</value>
              </property>
              <property>
                <name>password</name>
                <value>1111111</value>
              </property>
              <property>
                <name>mail.smtp.debug</name>
                <value>true</value>
              </property>
              <property>
                <name>mail.smtp.starttls.enable</name>
                <value>true</value>
              </property>
              <property>
                <name>mail.smtp.socketFactory.class</name>
                <value>javax.net.ssl.SSLSocketFactory</value>
              </property>
            </properties>
          </resource>
---------------------------------------------------------------------------------
pom.xml:
<ciManagement>
	<system>Continuum</system>
	<url>http://localhost:8080/continuum</url>
	<notifiers>
	   <notifier>
	      <type>mail</type>
	      <address>tianxiang@qtx.cn</address>
	  </notifier>

	  <notifier>
	    <type>mail</type>
	    <address>qtx@qtx.cn</address>
	  </notifier>
	</notifiers>
  </ciManagement>

The Exception logged in continuum log file :
--------------------------------------------------------------------------------
org.codehaus.plexus.notification.NotificationException: Exception while sending message.                                                
	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:566)                 
	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.buildComplete(MailContinuumNotifier.java:387)               
	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendNotification(MailContinuumNotifier.java:254)            
	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDis
	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDis
	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispat
	at org.apache.maven.continuum.buildcontroller.DefaultBuildController.endBuild(DefaultBuildController.java:221)                    
	at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:175)                       
	at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50)              
	at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)   
	at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)                              
	at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)                                             
	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)                  
	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)                      
	at java.lang.Thread.run(Thread.java:619)                                                                                          
Caused by: org.codehaus.plexus.mailsender.MailSenderException: Error while sending the message.                                         
	at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:226)                   
	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:562)                 
	... 14 more                                                                                                                       
Caused by: javax.mail.MessagingException: Exception reading response;                                                                   
  nested exception is:                                                                                                                  
	javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                                                       
	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)                                                    
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)                                                            
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)                                                        
	at javax.mail.Service.connect(Service.java:275)                                                                                   
	at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:212)                   
	... 15 more                                                                                                                       
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                                                  
	at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)                                             
	at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)                                                            
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)                                                  
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)                                    
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:744)                                              
	at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)                                                       
	at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)                                                              
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)                                                                 
	at java.io.BufferedInputStream.read(BufferedInputStream.java:237)                                                                 
	at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)                                                            
	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)                                                    
	... 19 more                                                                                                                       
2008-04-04 17:57:20,671 [pool-1-thread-1] INFO  org.codehaus.plexus.notification.notifier.Notifier:mail  - Message Subject: '[continuum]
2008-04-04 17:57:20,671 [pool-1-thread-1] INFO  org.codehaus.plexus.notification.notifier.Notifier:mail  - Sending message: From '"Conti
2008-04-04 17:57:20,671 [pool-1-thread-1] INFO  org.codehaus.plexus.notification.notifier.Notifier:mail  - Recipient: To '<qt...@qtx.cn>'.
DEBUG: setDebug: JavaMail version 1.4ea                                                                                                 
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]                
DEBUG SMTP: useEhlo true, useAuth true                                                                                                  
DEBUG SMTP: trying to connect to host "qtx.cn", port 25, isSSL false                                                                    
DEBUG SMTP: exception reading response: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                     
2008-04-04 17:57:20,687 [pool-1-thread-1] ERROR org.apache.maven.continuum.notification.ContinuumNotificationDispatcher:default  - Error
org.codehaus.plexus.notification.NotificationException: Exception while sending message.                                                
	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:566)                 
	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.buildComplete(MailContinuumNotifier.java:387)               
	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendNotification(MailContinuumNotifier.java:254)            
	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDis
	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDis
	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispat
	at org.apache.maven.continuum.buildcontroller.DefaultBuildController.endBuild(DefaultBuildController.java:221)                    
	at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:175)                       
	at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50)              
	at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)   
	at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)                              
	at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)                                             
	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)                  
	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)                      
	at java.lang.Thread.run(Thread.java:619)                                                                                          
Caused by: org.codehaus.plexus.mailsender.MailSenderException: Error while sending the message.                                         
	at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:226)                   
	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:562)                 
	... 14 more                                                                                                                       
Caused by: javax.mail.MessagingException: Exception reading response;                                                                   
  nested exception is:                                                                                                                  
	javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                                                       
	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)                                                    
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)                                                            
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)                                                        
	at javax.mail.Service.connect(Service.java:275)                                                                                   
	at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:212)                   
	... 15 more                                                                                                                       
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                                                  
	at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)                                             
	at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)                                                            
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)                                                  
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)                                    
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:744)                                              
	at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)                                                       
	at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)                                                              
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)                                                                 
	at java.io.BufferedInputStream.read(BufferedInputStream.java:237)                                                                 
	at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)                                                            
	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)                                                    
	... 19 more                                                                                                                       

Thanks!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CONTINUUM-1717) The mail notifier causes Exception [user james as MailServer]

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-1717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129789#action_129789 ] 

Emmanuel Venisse commented on CONTINUUM-1717:
---------------------------------------------

It seems your SMTP server isn't configured with SSL and/or TLS: 
"Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?"

If it's a plain text connection (standard), you don't need to use starttls and socketFactory class parameters

> The mail notifier causes Exception [user james as MailServer]
> -------------------------------------------------------------
>
>                 Key: CONTINUUM-1717
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-1717
>             Project: Continuum
>          Issue Type: Bug
>          Components: Notifier - Mail
>         Environment: continuum1.1 + maven2 + james
>            Reporter: tianxiang
>
> it's my configurations:
> -------------------------------------------------------------
> plexus.xml
> ...........
> <resource>
>             <name>mail/Session</name>
>             <type>javax.mail.Session</type>
>             <properties>
>               <property>
>                 <name>mail.smtp.host</name>
>                 <value>qtx.cn</value>
>               </property>
>               <property>
>                 <name>mail.smtp.port</name>
>                 <value>25</value>
>               </property>
>               <!-- account -->
>               <property> 
>                 <name>mail.smtp.auth</name>
>                 <value>true</value>
>               </property>
>               <property>
>                 <name>mail.smtp.user</name>
>                 <value>qtx@qtx.cn</value>
>               </property>
>               <property>
>                 <name>password</name>
>                 <value>1111111</value>
>               </property>
>               <property>
>                 <name>mail.smtp.debug</name>
>                 <value>true</value>
>               </property>
>               <property>
>                 <name>mail.smtp.starttls.enable</name>
>                 <value>true</value>
>               </property>
>               <property>
>                 <name>mail.smtp.socketFactory.class</name>
>                 <value>javax.net.ssl.SSLSocketFactory</value>
>               </property>
>             </properties>
>           </resource>
> ---------------------------------------------------------------------------------
> pom.xml:
> <ciManagement>
> 	<system>Continuum</system>
> 	<url>http://localhost:8080/continuum</url>
> 	<notifiers>
> 	   <notifier>
> 	      <type>mail</type>
> 	      <address>tianxiang@qtx.cn</address>
> 	  </notifier>
> 	  <notifier>
> 	    <type>mail</type>
> 	    <address>qtx@qtx.cn</address>
> 	  </notifier>
> 	</notifiers>
>   </ciManagement>
> The Exception logged in continuum log file :
> --------------------------------------------------------------------------------
> org.codehaus.plexus.notification.NotificationException: Exception while sending message.                                                
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:566)                 
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.buildComplete(MailContinuumNotifier.java:387)               
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendNotification(MailContinuumNotifier.java:254)            
> 	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDis
> 	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDis
> 	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispat
> 	at org.apache.maven.continuum.buildcontroller.DefaultBuildController.endBuild(DefaultBuildController.java:221)                    
> 	at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:175)                       
> 	at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50)              
> 	at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)   
> 	at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)                              
> 	at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)                                             
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)                  
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)                      
> 	at java.lang.Thread.run(Thread.java:619)                                                                                          
> Caused by: org.codehaus.plexus.mailsender.MailSenderException: Error while sending the message.                                         
> 	at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:226)                   
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:562)                 
> 	... 14 more                                                                                                                       
> Caused by: javax.mail.MessagingException: Exception reading response;                                                                   
>   nested exception is:                                                                                                                  
> 	javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                                                       
> 	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)                                                    
> 	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)                                                            
> 	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)                                                        
> 	at javax.mail.Service.connect(Service.java:275)                                                                                   
> 	at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:212)                   
> 	... 15 more                                                                                                                       
> Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                                                  
> 	at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)                                             
> 	at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)                                                            
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)                                                  
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)                                    
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:744)                                              
> 	at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)                                                       
> 	at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)                                                              
> 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)                                                                 
> 	at java.io.BufferedInputStream.read(BufferedInputStream.java:237)                                                                 
> 	at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)                                                            
> 	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)                                                    
> 	... 19 more                                                                                                                       
> 2008-04-04 17:57:20,671 [pool-1-thread-1] INFO  org.codehaus.plexus.notification.notifier.Notifier:mail  - Message Subject: '[continuum]
> 2008-04-04 17:57:20,671 [pool-1-thread-1] INFO  org.codehaus.plexus.notification.notifier.Notifier:mail  - Sending message: From '"Conti
> 2008-04-04 17:57:20,671 [pool-1-thread-1] INFO  org.codehaus.plexus.notification.notifier.Notifier:mail  - Recipient: To '<qt...@qtx.cn>'.
> DEBUG: setDebug: JavaMail version 1.4ea                                                                                                 
> DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]                
> DEBUG SMTP: useEhlo true, useAuth true                                                                                                  
> DEBUG SMTP: trying to connect to host "qtx.cn", port 25, isSSL false                                                                    
> DEBUG SMTP: exception reading response: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                     
> 2008-04-04 17:57:20,687 [pool-1-thread-1] ERROR org.apache.maven.continuum.notification.ContinuumNotificationDispatcher:default  - Error
> org.codehaus.plexus.notification.NotificationException: Exception while sending message.                                                
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:566)                 
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.buildComplete(MailContinuumNotifier.java:387)               
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendNotification(MailContinuumNotifier.java:254)            
> 	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDis
> 	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDis
> 	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispat
> 	at org.apache.maven.continuum.buildcontroller.DefaultBuildController.endBuild(DefaultBuildController.java:221)                    
> 	at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:175)                       
> 	at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50)              
> 	at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)   
> 	at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)                              
> 	at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)                                             
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)                  
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)                      
> 	at java.lang.Thread.run(Thread.java:619)                                                                                          
> Caused by: org.codehaus.plexus.mailsender.MailSenderException: Error while sending the message.                                         
> 	at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:226)                   
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:562)                 
> 	... 14 more                                                                                                                       
> Caused by: javax.mail.MessagingException: Exception reading response;                                                                   
>   nested exception is:                                                                                                                  
> 	javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                                                       
> 	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)                                                    
> 	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)                                                            
> 	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)                                                        
> 	at javax.mail.Service.connect(Service.java:275)                                                                                   
> 	at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:212)                   
> 	... 15 more                                                                                                                       
> Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                                                  
> 	at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)                                             
> 	at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)                                                            
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)                                                  
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)                                    
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:744)                                              
> 	at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)                                                       
> 	at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)                                                              
> 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)                                                                 
> 	at java.io.BufferedInputStream.read(BufferedInputStream.java:237)                                                                 
> 	at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)                                                            
> 	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)                                                    
> 	... 19 more                                                                                                                       
> Thanks!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (CONTINUUM-1717) The mail notifier causes Exception [user james as MailServer]

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-1717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed CONTINUUM-1717.
-----------------------------------

    Resolution: Not A Bug

based on Emmanuel's comment, it appears to be a problem outside of Continuum

> The mail notifier causes Exception [user james as MailServer]
> -------------------------------------------------------------
>
>                 Key: CONTINUUM-1717
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-1717
>             Project: Continuum
>          Issue Type: Bug
>          Components: Notifier - Mail
>         Environment: continuum1.1 + maven2 + james
>            Reporter: tianxiang
>
> it's my configurations:
> -------------------------------------------------------------
> plexus.xml
> ...........
> <resource>
>             <name>mail/Session</name>
>             <type>javax.mail.Session</type>
>             <properties>
>               <property>
>                 <name>mail.smtp.host</name>
>                 <value>qtx.cn</value>
>               </property>
>               <property>
>                 <name>mail.smtp.port</name>
>                 <value>25</value>
>               </property>
>               <!-- account -->
>               <property> 
>                 <name>mail.smtp.auth</name>
>                 <value>true</value>
>               </property>
>               <property>
>                 <name>mail.smtp.user</name>
>                 <value>qtx@qtx.cn</value>
>               </property>
>               <property>
>                 <name>password</name>
>                 <value>1111111</value>
>               </property>
>               <property>
>                 <name>mail.smtp.debug</name>
>                 <value>true</value>
>               </property>
>               <property>
>                 <name>mail.smtp.starttls.enable</name>
>                 <value>true</value>
>               </property>
>               <property>
>                 <name>mail.smtp.socketFactory.class</name>
>                 <value>javax.net.ssl.SSLSocketFactory</value>
>               </property>
>             </properties>
>           </resource>
> ---------------------------------------------------------------------------------
> pom.xml:
> <ciManagement>
> 	<system>Continuum</system>
> 	<url>http://localhost:8080/continuum</url>
> 	<notifiers>
> 	   <notifier>
> 	      <type>mail</type>
> 	      <address>tianxiang@qtx.cn</address>
> 	  </notifier>
> 	  <notifier>
> 	    <type>mail</type>
> 	    <address>qtx@qtx.cn</address>
> 	  </notifier>
> 	</notifiers>
>   </ciManagement>
> The Exception logged in continuum log file :
> --------------------------------------------------------------------------------
> org.codehaus.plexus.notification.NotificationException: Exception while sending message.                                                
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:566)                 
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.buildComplete(MailContinuumNotifier.java:387)               
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendNotification(MailContinuumNotifier.java:254)            
> 	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDis
> 	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDis
> 	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispat
> 	at org.apache.maven.continuum.buildcontroller.DefaultBuildController.endBuild(DefaultBuildController.java:221)                    
> 	at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:175)                       
> 	at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50)              
> 	at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)   
> 	at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)                              
> 	at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)                                             
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)                  
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)                      
> 	at java.lang.Thread.run(Thread.java:619)                                                                                          
> Caused by: org.codehaus.plexus.mailsender.MailSenderException: Error while sending the message.                                         
> 	at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:226)                   
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:562)                 
> 	... 14 more                                                                                                                       
> Caused by: javax.mail.MessagingException: Exception reading response;                                                                   
>   nested exception is:                                                                                                                  
> 	javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                                                       
> 	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)                                                    
> 	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)                                                            
> 	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)                                                        
> 	at javax.mail.Service.connect(Service.java:275)                                                                                   
> 	at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:212)                   
> 	... 15 more                                                                                                                       
> Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                                                  
> 	at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)                                             
> 	at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)                                                            
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)                                                  
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)                                    
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:744)                                              
> 	at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)                                                       
> 	at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)                                                              
> 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)                                                                 
> 	at java.io.BufferedInputStream.read(BufferedInputStream.java:237)                                                                 
> 	at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)                                                            
> 	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)                                                    
> 	... 19 more                                                                                                                       
> 2008-04-04 17:57:20,671 [pool-1-thread-1] INFO  org.codehaus.plexus.notification.notifier.Notifier:mail  - Message Subject: '[continuum]
> 2008-04-04 17:57:20,671 [pool-1-thread-1] INFO  org.codehaus.plexus.notification.notifier.Notifier:mail  - Sending message: From '"Conti
> 2008-04-04 17:57:20,671 [pool-1-thread-1] INFO  org.codehaus.plexus.notification.notifier.Notifier:mail  - Recipient: To '<qt...@qtx.cn>'.
> DEBUG: setDebug: JavaMail version 1.4ea                                                                                                 
> DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]                
> DEBUG SMTP: useEhlo true, useAuth true                                                                                                  
> DEBUG SMTP: trying to connect to host "qtx.cn", port 25, isSSL false                                                                    
> DEBUG SMTP: exception reading response: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                     
> 2008-04-04 17:57:20,687 [pool-1-thread-1] ERROR org.apache.maven.continuum.notification.ContinuumNotificationDispatcher:default  - Error
> org.codehaus.plexus.notification.NotificationException: Exception while sending message.                                                
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:566)                 
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.buildComplete(MailContinuumNotifier.java:387)               
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendNotification(MailContinuumNotifier.java:254)            
> 	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDis
> 	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDis
> 	at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispat
> 	at org.apache.maven.continuum.buildcontroller.DefaultBuildController.endBuild(DefaultBuildController.java:221)                    
> 	at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:175)                       
> 	at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50)              
> 	at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)   
> 	at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)                              
> 	at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)                                             
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)                  
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)                      
> 	at java.lang.Thread.run(Thread.java:619)                                                                                          
> Caused by: org.codehaus.plexus.mailsender.MailSenderException: Error while sending the message.                                         
> 	at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:226)                   
> 	at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:562)                 
> 	... 14 more                                                                                                                       
> Caused by: javax.mail.MessagingException: Exception reading response;                                                                   
>   nested exception is:                                                                                                                  
> 	javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                                                       
> 	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)                                                    
> 	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)                                                            
> 	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)                                                        
> 	at javax.mail.Service.connect(Service.java:275)                                                                                   
> 	at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:212)                   
> 	... 15 more                                                                                                                       
> Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?                                                  
> 	at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)                                             
> 	at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)                                                            
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)                                                  
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)                                    
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:744)                                              
> 	at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)                                                       
> 	at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)                                                              
> 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)                                                                 
> 	at java.io.BufferedInputStream.read(BufferedInputStream.java:237)                                                                 
> 	at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)                                                            
> 	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)                                                    
> 	... 19 more                                                                                                                       
> Thanks!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira