ColdFusion MX Mail Spooler Behavior Might Cause SpoolLockTimeoutException

The mail spooler for ColdFusion MX 6.x/7 locks the mail spool directory when writing mail to disk. If a mail thread is trying to write a mail file to disk and is waiting to obtain the lock, it will wait up to 30 seconds and then throw a coldfusion.mail.MailSpooler$SpoolLockTimeoutException or coldfusion.mail.MailSessionException. I'm still exploring what might require the lock for so long and prevent other mail from being spooled to disk, but so far it seems well correlated with having message bodies of 12-15 MB in one case. The 30 second wait for the lock is hard coded and immutable, but writing a large message to disk shouldn't take 30 seconds in most situations. I'll update this later if I find more.

StackTrace coldfusion.mail.MailSessionException: An exception occurred when setting up mail server parameters
at coldfusion.mail.MailSpooler.storeMail(MailSpooler.java:670)
at coldfusion.tagext.net.MailTag.doAfterBody(MailTag.java:618)


"Error","scheduler-1","06/08/05","09:03:24",,"A problem occurred when attempting to deliver mail. This exception was caused by: coldfusion.mail.MailSpooler$SpoolLockTimeoutException: A timeout occurred while waiting for the lock on the mail spool directory.."

Sys-con's Robert Diamond is very accommodating

So after my mini-rant late last night when I found a crappy photo of me up on MXDJ, Robert Diamond dropped me a note to smooth things out, and he asked for a photo that I would approve of to be used in lieu of said crappy photo. Nice guy! Thanks Robert!

I made the recommendation that they only pick up my ColdFusion RSS feed since that is what's relevant on MXDJ, not my Spain photos, rants, or biology blogs, and I even whipped up my own graphic to replace said crappy photo.







Voila! I love Adobe Photoshop :-)

I made this from a photo of me standing on Sentinel Bridge in Franconia Notch, New Hampshire. Although, I wouldn't be surprised if they scribbled a mustache, a missing tooth, and a eye patch on it ;-)

(note to self: use more emoticons to show I don't bite)

So, my formal apologies for being a weener and picking apart their website, and a big Thank You for asking!