i am kind of in an emergency situation. a webserver we have crashes very
frequently with no apparent reason for it.
the log has an entry like this:
"Error","scheduler-2","12/16/05","07:45:14",,""
java.lang.NullPointerException
at java.util.Arrays$ArrayList.<init>(Arrays.java:2342)
at java.util.Arrays.asList(Arrays.java:2328)
at coldfusion.mail.MailSpooler.refreshSpoolFiles(MailSpooler.java:1503)
at coldfusion.mail.MailSpooler.run(MailSpooler.java:897)
at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:201)
at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:70)
once this error occurrs, the server is no long available but the machine
continues to run and there are no win events reported. any ideas? here are
links to another post i have made as well as others with the same problem.
thanks!
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=143&thre
adid=1094444&enterthread=y
BKBK - 17 Dec 2005 10:55 GMT
Probable cause:
A tag, most likely cfmail, accessed an undefined value. When such a value is
passed down to system code, the error may escalate from a simple, one-off
Application type to a more serious, intermittent System exception.
Recommendations:
1. In CF Administrator, use settings that would ensure robust mail
performance. In particular, spooling is a good thing. For example,
Spool Interval (seconds): 5
(checked) Spool mail messages for delivery
Error Log Severity: Warning
(checked) Log all mail messages sent by ColdFusion
Default CFMail Charset: UTF-8 (8-Bit Unicode Transformation Format)
2. Enclose all your <cfmail> code within try-catch blocks, to trap exceptions
before they get any chance to escalate.
<cftry>
<cfmail>
<!--- Mail code --->
</cfmail>
<cfcatch type="any">
<!--- Code for error-handling and reporting --->
</cfcatch>
</cftry>
3. Use cfmail attributes that ensure robust performance. For example,
FailTo = "mailFail@myDomain.com"
charset = "UTF-8"
spoolEnable = "yes"
timeout = "60" (in seconds) - adjust according to load on the cfmail tag;
overrides CF Admin value
4. For e-mail addresses use
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000297.htm is more
robust than using just one.
blst - 19 Dec 2005 17:47 GMT
Thanks for the replies. I am going to try this immediately to see if this is the solution. It's an easy fix so I hope it works.
surffcs - 30 Jan 2006 05:14 GMT
Hi BKBK,
Thanks for your suggestions but I have the same problem and your suggestions havn't helped. Is there any other possible causes/solutions?
Thanks
BKBK - 30 Jan 2006 12:05 GMT
> I have the same problem
My advice is that you start your own thread, describing your own problem,
including your system setup, version, etc. and then the difficulties you face,
the error messages, and so on. Fresh start and all that.