You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Simon Chester (JIRA)" <ji...@apache.org> on 2013/06/24 13:54:23 UTC

[jira] [Commented] (LOG4NET-382) TargetInvocationException occurs because MESSAGE_SIZE fields in EventLogAppender are initialized in wrong order

    [ https://issues.apache.org/jira/browse/LOG4NET-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13691901#comment-13691901 ] 

Simon Chester commented on LOG4NET-382:
---------------------------------------

Hi Dominik,

Thank you for the fix.  I passed this over to one of my devs and he tells me that this has fixed the problem.

Thanks,

Simon.





                
> TargetInvocationException occurs because MESSAGE_SIZE fields in EventLogAppender are initialized in wrong order
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-382
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-382
>             Project: Log4net
>          Issue Type: Bug
>          Components: Appenders
>            Reporter: Simon Chester
>            Assignee: Dominik Psenner
>            Priority: Blocker
>             Fix For: 1.2.12
>
>
> In log4net.Appender.EventLogAppender:
> The MAX_EVENTLOG_MESSAGE_SIZE field is initiated before MAX_EVENTLOG_MESSAGE_SIZE_DEFAULT and MAX_EVENTLOG_MESSAGE_SIZE_VISTA_OR_NEWER.  Therefore, when MAX_EVENTLOG_MESSAGE_SIZE is set during construction, MAX_EVENTLOG_MESSAGE_SIZE_DEFAULT and MAX_EVENTLOG_MESSAGE_SIZE_VISTA_OR_NEWER are zero.
> The end result is that a TargetInvocationException occurs in log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(System.Xml.XmlElement appenderElement) (Line 303) and that the message recorded in the event log is empty.

--
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