You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2012/11/19 18:07:58 UTC

[jira] [Resolved] (LOG4J2-120) Socket/Syslog appenders throw IOException if destination socket is not open

     [ https://issues.apache.org/jira/browse/LOG4J2-120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers resolved LOG4J2-120.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-beta4
         Assignee: Ralph Goers

Fixed in revision 1411311. Please verify and close.
                
> Socket/Syslog appenders throw IOException if destination socket is not open
> ---------------------------------------------------------------------------
>
>                 Key: LOG4J2-120
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-120
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.0-beta2
>         Environment: Java 1.6.0_24
>            Reporter: Scott Severtson
>            Assignee: Ralph Goers
>             Fix For: 2.0-beta4
>
>         Attachments: log4j2.xml, TestConnectBehavior.java
>
>
> If Log4J2 is initialized with a configured Socket or Syslog appender, and the destination socket is not open, a IOException is thrown within TCPSocketManagerFactory on the "new Socket(data.host, data.port)" line.
> This exception results in either a NullPointerException thrown to the calling code, regardless if if suppressExceptions is true or false. No reconnect attempt is made, regardless if reconnectionDelay is set to a positive number.
> The socket can still be created by TCPSocketManagerFactory, but attempting to connect to the socket should wait until the first logging statement so that reconnection retries may be used.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org