logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saurabh Dani" <saur...@danicorp.com>
Subject Help with Exception Please
Date Sun, 19 Jun 2005 03:44:36 GMT


I recently deployed a new multithreaded, web application which uses remoting and log4net.
The IIS server hangs and stops responding after a few hours, and since am new to both Log4Net
and Remoting, I am trying to narrow down the cause.
Frequently, I am seeing following exception in my Log4Net logs i.e. the file which is specified
for collecting log4net's logs:

***************
2005-06-18 22:20:44,183|[1244]|DEBUG|RemoteClass.parser|RemoteClass.parser.ParseContent(:0)|[<log4net.Error>Exception
rendering object type [log4net.Util.ThreadContextStack]<stackTrace>System.NullReferenceException:
Object reference not set to an instance of an object.
   at log4net.Util.StackFrame.get_FullMessage()
   at log4net.Util.ThreadContextStack.GetFullMessage()
   at log4net.Util.ThreadContextStack.ToString()
   at log4net.ObjectRenderer.DefaultRenderer.RenderObject(RendererMap rendererMap, Object
obj, TextWriter writer)
   at log4net.ObjectRenderer.RendererMap.FindAndRender(Object obj, TextWriter writer)</stackTrace></log4net.Error>]|-

***********************************

I am using latest Beta 9 and this is how my config files look like:

For the Remoting Server virtual Directory:
*******************************
<log4net> 

<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">


<file value="Logs\Server.log" /> 

<appendToFile value="true" /> 

<rollingStyle value="Composite" /> 

<datePattern value="ddMMyyyy" /> 

<layout type="log4net.Layout.PatternLayout"> 

<conversionPattern value="%date|[%thread]|%-5level|%logger|%l|[%property{NDC}]|- %message%newline"
/> 

</layout> 

</appender> 

<root> 

<level value="INFO" /> 

<level value="DEBUG" /> 

<appender-ref ref="RollingLogFileAppender" /> 

</root> 

</log4net>
*********************************

Config for wwwroot - which is the main web site and the client for Remoting application:
*********************************

<log4net> 

<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">


<file value="Logs\Client.log" /> 

<appendToFile value="true" /> 

<rollingStyle value="Composite" /> 

<datePattern value="ddMMyyyy" /> 

<layout type="log4net.Layout.PatternLayout"> 

<conversionPattern value="%date|[%thread]|%-5level|%logger|%l|[%property{NDC}]|- %message%newline"
/> 

</layout> 

</appender> 

<root> 

<level value="INFO" /> 

<level value="DEBUG" /> 

<appender-ref ref="RollingLogFileAppender" /> 

</root> 

</log4net> 

*********************************

Any pointers to resolve this exception are highly appreciated.

Regards
Saurabh 

Mime
View raw message