Hi Continuum People,
I am looking at a problem whose solution has eluded me for the past
couple of hours.
I set up my continuum with a single notification address via the pom.xml
and everything worked. I then added extra email addresses delimited by
commas so:
<address>[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL
PROTECTED]</address>
and continuum 1.0.3 seemed to like it and picked it up and displayed it
in the project config. Javamail 1.3.2 though does not like it. I get the
stack trace:
javax.mail.internet.AddressException: Illegal route-addr in string
[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]''
(see more log output below).
Interestingly sendmail on my linux box where continuum runs is quite
happy with the format:
[EMAIL PROTECTED]:/ctxtools/continuum-1.0.3$ /usr/sbin/sendmail
[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]
Lastly, here's the application.xml for the notification. Any help
gratefully received.
Adam
<!--
| The mail notifier
|-->
<component>
<role>org.codehaus.plexus.notification.notifier.Notifier</role>
<role-hint>mail</role-hint>
<implementation>org.apache.maven.continuum.notification.mail.MailContinuumNotifier</implementation>
<requirements>
<requirement>
<role>org.codehaus.plexus.velocity.VelocityComponent</role>
</requirement>
<requirement>
<role>org.apache.maven.continuum.store.ContinuumStore</role>
</requirement>
<requirement>
<role>org.codehaus.plexus.mailsender.MailSender</role>
</requirement>
<requirement>
<role>org.apache.maven.continuum.configuration.ConfigurationService</role>
</requirement>
</requirements>
<configuration>
<from-mailbox></from-mailbox>
<from-name></from-name>
<timestamp-format>EEE, d MMM yyyy HH:mm:ss Z</timestamp-format>
<includeBuildResult>true</includeBuildResult>
<alwaysSend>true</alwaysSend>
</configuration>
</component>
<component>
<role>org.codehaus.plexus.notification.RecipientSource</role>
<implementation>org.apache.maven.continuum.notification.ContinuumRecipientSource</implementation>
<configuration>
<!--
Setting this propery will make Continuum send all emails to
this address instead the address specified in the project
configuration
-->
<to-override></to-override>
</configuration>
</component>
<component>
<role>org.codehaus.plexus.mailsender.MailSender</role>
<implementation>org.codehaus.plexus.mailsender.javamail.JavamailMailSender</implementation>
<configuration>
<smtp-host>localhost</smtp-host>
<smtp-port>25</smtp-port>
<sslProvider>com.sun.net.ssl.internal.ssl.Provider</sslProvider>
<username>soa</username>
<password>soa1</password>
<sslMode>false</sslMode>
</configuration>
</component>
jvm 1 | 2006-09-08 17:44:17,616 [Thread-2] INFO
ContinuumBuildExecutor:maven2 - Exit code: 1
jvm 1 | 2006-09-08 17:44:17,920 [Thread-2] INFO Notifier:mail
- Sending message: From '"[EMAIL PROTECTED]"
<[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]>'.
jvm 1 | 2006-09-08 17:44:17,920 [Thread-2] INFO Notifier:mail
- Recipient: To '<[EMAIL PROTECTED]>'.
jvm 1 | 2006-09-08 17:44:17,921 [Thread-2] INFO Notifier:mail
- Recipient: To '<[EMAIL PROTECTED]>'.
jvm 1 | 2006-09-08 17:44:17,922 [Thread-2] INFO Notifier:mail
- Recipient: To '<[EMAIL PROTECTED]>'.
jvm 1 | 2006-09-08 17:44:17,922 [Thread-2] INFO Notifier:mail
- Recipient: To '<[EMAIL PROTECTED]>'.
jvm 1 | DEBUG: JavaMail version 1.3.2
jvm 1 | DEBUG: java.io.FileNotFoundException:
/ctxtools/jdk1.5.0_06/jre/lib/javamail.providers (No such file or directory)
jvm 1 | DEBUG: !anyLoaded
jvm 1 | DEBUG: not loading resource: /META-INF/javamail.providers
jvm 1 | DEBUG: successfully loaded resource:
/META-INF/javamail.default.providers
jvm 1 | DEBUG: Tables of loaded providers
jvm 1 | DEBUG: Providers Listed By Class Name:
{com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
Microsystems, Inc],
com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc],
com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
Microsystems, Inc],
com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
Microsystems, Inc],
com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
Microsystems, Inc],
com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
Microsystems, Inc]}
jvm 1 | DEBUG: Providers Listed By Protocol:
{imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
Microsystems, Inc],
imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
Microsystems, Inc],
smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
Microsystems, Inc],
pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
Microsystems, Inc],
pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
Microsystems, Inc],
smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]}
jvm 1 | DEBUG: successfully loaded resource:
/META-INF/javamail.default.address.map
jvm 1 | DEBUG: !anyLoaded
jvm 1 | DEBUG: not loading resource: /META-INF/javamail.address.map
jvm 1 | DEBUG: java.io.FileNotFoundException:
/ctxtools/jdk1.5.0_06/jre/lib/javamail.address.map (No such file or
directory)
jvm 1 | DEBUG: setDebug: JavaMail version 1.3.2
jvm 1 | 2006-09-08 17:44:18,087 [Thread-2] ERROR
ContinuumNotificationDispatcher - Error while trying to use the
mailnotifier.
jvm 1 | org.codehaus.plexus.notification.NotificationException:
Exception while sending message.
jvm 1 | at
org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:403)
jvm 1 | at
org.apache.maven.continuum.notification.mail.MailContinuumNotifier.buildComplete(MailContinuumNotifier.java:307)
jvm 1 | at
org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendNotification(MailContinuumNotifier.java:202)
jvm 1 | at
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:173)
jvm 1 | at
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)
jvm 1 | at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:378)
jvm 1 | at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
jvm 1 | at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
jvm 1 | at java.lang.Thread.run(Thread.java:595)
jvm 1 | Caused by:
org.codehaus.plexus.mailsender.MailSenderException: Error while sending
mail.
jvm 1 | at
org.codehaus.plexus.mailsender.javamail.JavamailMailSender.send(JavamailMailSender.java:217)
jvm 1 | at
org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:399)
jvm 1 | ... 8 more
jvm 1 | Caused by: javax.mail.internet.AddressException: Illegal
route-addr in string
[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]''
jvm 1 | at
javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:857)
jvm 1 | at
javax.mail.internet.InternetAddress.parse(InternetAddress.java:793)
jvm 1 | at
javax.mail.internet.InternetAddress.parse(InternetAddress.java:529)
jvm 1 | at
javax.mail.internet.InternetAddress.<init>(InternetAddress.java:65)
jvm 1 | at
org.codehaus.plexus.mailsender.javamail.JavamailMailSender.send(JavamailMailSender.java:160)
jvm 1 | ... 9 more
jvm 1 | 2006-09-08 17:44:46,382 [SocketListener0-1] ERROR
VelocityComponent - RHS of #set statement is null. Context
will not be modified. screens/ProjectBuild.vm [line 103, column 3]