Hi Geert,

Nope.. happened whether or not I add/set the cc and Bcc addresses. Just to see what would happen, using phpPgAdmin, I set the Cc/Bcc addresses to a single space directly in the database row, and then to and empty string and watched the queue run. Same result.

At this point the code itself only set the To/From/Subject lines and set the body.

By default since the Cc/Bcc weren't set, Postgres set them to NULL.

I then went and modified the code to set the Cc/Bcc to empty strings, then tried to registered a new user ... same result.

Here's the code fragment from my registration processing (liberally snarfed for the most part from Bamboo, I think):

        Email email = new Email();
email.setFromAddress(Config.getRepInstance().getString ("SUPPORT_EMAIL"));
        email.addTo(mAccount.getEmail());
        email.setSubject(activationmail.getBlock("subject"));
        email.setBody(activationmail.getBlock("content"));

        DatabaseMailQueueFactory.getInstance(mDatasource).queue(email);

I am thinking its something to do with the the JDBC retrieval of that element of the row. I'm running:
                postgresql-8.0.8-1.FC4.1
postgresql-jdbc-8.0.8-1.FC4.1 * with this jdbc jar copied into my project's lib directory
                postgresql-odbc-08.00.0100-1
                postgresql-libs-8.0.8-1.FC4.1
                postgresql-server-8.0.8-1.FC4.1

David
On Jan 2, 2007, at 1:49 PM, Geert Bevin wrote:

Hi David,

this seems to happen during the creation of a JavaMail InternetAddress instance for the CC addresses. Can you check if you're by any chance using an empty string for those instead of null?

Best regards,

Geert

On 02 Jan 2007, at 19:47, David HM Spector wrote:

The email looks okay to me; not sure why the email component is upset...

David


Jan 2, 2007 1:21:00 PM com.uwyn.rife.mail.executors.DatabaseMailQueueExecutor$SendEmails gotBeanInstance
WARNING: Email not sent due to an error while building the message.
Email{mId=1, [EMAIL PROTECTED], [EMAIL PROTECTED], mSubject=NELA: Please activate your new account, mBody=Greetings from the team at Never Eat Lunch Alone!

Welcome to Never Eat Lunch Alone (NELA)!

Your account has been created, please click the below link to complete the activation.

http://0.0.0.0:8080/activate? code=5c64f375c21c3b3457e3434482cdc21c&id=1, mCcAddresses=, mBccAddresses=}
javax.mail.internet.AddressException: Illegal address in string ``''
at javax.mail.internet.InternetAddress.<init> (InternetAddress.java:94) at javax.mail.internet.InternetAddress.<init> (InternetAddress.java:119) at com.uwyn.rife.mail.executors.DatabaseMailQueueExecutor $SendEmails.gotBeanInstance(DatabaseMailQueueExecutor.java:333) at com.uwyn.rife.mail.executors.DatabaseMailQueueExecutor $SendEmails.gotBeanInstance(DatabaseMailQueueExecutor.java:257) at com.uwyn.rife.database.DbBeanFetcher.processRow (DbBeanFetcher.java:272) at com.uwyn.rife.database.DbRowProcessor.processRowWrapper (DbRowProcessor.java:118) at com.uwyn.rife.database.DbQueryManager.fetch (DbQueryManager.java:2933) at com.uwyn.rife.database.DbQueryManager.fetchAll (DbQueryManager.java:2967) at com.uwyn.rife.database.DbQueryManager.executeFetchAll (DbQueryManager.java:2397) at com.uwyn.rife.database.DbQueryManager.executeFetchAll (DbQueryManager.java:2345) at com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryMana ger._restore(AbstractGenericQueryManager.java:708) at com.uwyn.rife.database.querymanagers.generic.databasedrivers.generic. restore(generic.java:183) at com.uwyn.rife.mail.executors.DatabaseMailQueueExecutor.executeTask (DatabaseMailQueueExecutor.java:232) at com.uwyn.rife.scheduler.ExecutorThread.run(ExecutorThread.java: 33)
        at java.lang.Thread.run(Thread.java:613)

Jan 2, 2007 1:21:00 PM com.uwyn.rife.mail.executors.DatabaseMailQueueExecutor executeTask
INFO: 0 mails were sent



--------------------------------------------------------------------- ----------------------
                                          David HM Spector
spector (at) zeitgeist.com http://www.zeitgeist.com/ voice: +1 631.261.5013 fax: +1 212.656.1443
                                                    ~ ~ ~
"New and stirring things are belittled because if they are not belittled, the humiliating question arises, 'Why then are you not taking part in them?'" --H. G. Wells

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

------------------------------------------------------------------------ -------------------
                                          David HM Spector
spector (at) zeitgeist.com http://www.zeitgeist.com/ voice: +1 631.261.5013 fax: +1 212.656.1443
                                                    ~ ~ ~
"New and stirring things are belittled because if they are not belittled, the humiliating question arises, 'Why then are you not taking part in them?'" --H. G. Wells

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to