[logback-dev] [JIRA] Commented: (LBCLASSIC-323) SMTPAppender does not send messages

Patrick Houk (JIRA) noreply-jira at qos.ch
Fri May 4 03:37:27 CEST 2012


    [ http://jira.qos.ch/browse/LBCLASSIC-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12414#action_12414 ] 

Patrick Houk commented on LBCLASSIC-323:
----------------------------------------

I also experienced lost emails after upgrading from 0.9.30 to 1.0.0, but I think the reason is different (I use Java 6).  I think the problem in my case is that SMTPAppender was changed in 1.0 to send emails asynchronously.  I often use SMTPAppender to send alert emails when there is a fatal error, and then exit the application.  My theory is that the sending thread simply doesn't have time to process the message before the process dies.  Perhaps a configuration option can be added to specify synchronous sending?

> SMTPAppender does not send messages
> -----------------------------------
>
>                 Key: LBCLASSIC-323
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-323
>             Project: logback-classic
>          Issue Type: Bug
>          Components: appender
>    Affects Versions: 1.0.0
>         Environment: JDK 1.5
> FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Apr 15 17:37:45 CEST 2008 amd64
> Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01)
> Java HotSpot(TM) 64-Bit Server VM (build diablo-1.5.0_07-b01, mixed mode)
>            Reporter: Lutz Huehnken
>            Assignee: Ceki Gulcu
>             Fix For: 1.0.3
>
>         Attachments: logback-smtp-copy.xml, pom.xml, SmtpTest.java
>
>
> After upgrading from 0.9.30 to 1.0.0, the ch.qos.logback.classic.net.SMTPAppender seizes to work. It just does not send any messages anymore.
> This behaviour has apparently been observed by others as well and is also described in this thread:
> http://old.nabble.com/SMTPAppender-mail-not-sent-%28logback-1.0.0%2C-JDK-1.5%29-to33164248.html
> It resumes working when - while making no other changes - logback is downgraded to version 0.9.30

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list