SMTPAppender mail not sent (logback 1.0.0, JDK 1.5)

I've found the source of the SMTPAppender issues. It with the ThreadPoolExecutor defined in the ContextBase class // 0 idle threads, 2 maximum threads, no idle waiting ExecutorService executorService = new ThreadPoolExecutor(0, 2, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>()); If you increase the first parameter (which is the initial pool size) from 0 to 2, then it works as expected in both JRE 1.5 and 1.6. -dave

On 03.05.2012 01:48, Dave wrote:
I've found the source of the SMTPAppender issues. It with the ThreadPoolExecutor defined in the ContextBase class
// 0 idle threads, 2 maximum threads, no idle waiting ExecutorService executorService = new ThreadPoolExecutor(0, 2, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>());
If you increase the first parameter (which is the initial pool size) from 0 to 2, then it works as expected in both JRE 1.5 and 1.6.
Thank you Dave. Indeed, under JDK 1.5, if corePoolSize is set to 0, as is done in ContextBase, no thread gets created. Best regards,
-dave
-- Ceki http://twitter.com/#!/ceki
participants (2)
-
ceki
-
Dave