[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to