You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Michelle Weber <mi...@gmail.com> on 2006/09/05 15:43:25 UTC
Uncaught exception: System.IndexOutOfRangeException
I'm using log4net 1.2.9 and got these uncaught exceptions thrown from
my application causing it to crash this past weekend:
System.IndexOutOfRangeException: Probable I/O race condition detected
while copying memory.
I am using log4net with an asp.net 1.1 web service, and am writing
entries to the log for every request. This is on a windows 2003
server, using iis6, and web gardening is turned on, so multiple
instances of w3wp.exe are running and processing requests.
Here is the full stack trace:
System.Web.Services.Protocols.SoapException: Server was unable to
process request. ---> System.IndexOutOfRangeException: Probable I/O
race condition detected while copying memory. The I/O package is not
thread safe by default. In multithreaded applications, a stream must
be accessed in a thread-safe way, such as a thread-safe wrapper
returned by TextReader's or TextWriter's Synchronized methods. This
also applies to classes like StreamWriter and StreamReader. at
System.Buffer.InternalBlockCopy(Array src, Int32 srcOffset, Array dst,
Int32 dstOffset, Int32 count) at System.IO.StreamWriter.Write(Char[]
buffer, Int32 index, Int32 count) at
System.IO.TextWriter.WriteLine(String value) at
System.IO.SyncTextWriter.WriteLine(String value) at
log4net.Util.LogLog.Error(String message, Exception exception) at
log4net.Util.AppenderAttachedImpl.AppendLoopOnAppenders(LoggingEvent
loggingEvent) at
log4net.Repository.Hierarchy.Logger.CallAppenders(LoggingEvent
loggingEvent) at log4net.Repository.Hierarchy.Logger.ForcedLog(Type
callerStackBoundaryDeclaringType, Level level, Object message,
Exception exception) at log4net.Repository.Hierarchy.Logger.Log(Type
callerStackBoundaryDeclaringType, Level level, Object message,
Exception exception) at log4net.Core.LogImpl.Error(Object message) at
My.Online.App.Logger.Error(String msg) at
My.Online.App.ComcastMSOOffersService..ctor() --- End of inner
exception stack trace ---
Thanks,
Michelle Weber
How to pass data to custom ADONetAppender parameters?
Posted by ha...@pnc.com.
Hello,
I am trying to find a way to write my own custom parameters that I would
log
to a SQL Server Database. I am a newbie to this, so I got the
"out-of-the-box" implementation of logging an exception, message, dates
that
writes to SQL Server using the ADONetAppender. However, I want to pass my
own custom data variables to the database. So, my DB table would have
these
fields:
Table name = CustomStuff
Custom Log Fields:
MyCustomMessage
MyCustomContactName
MyCustomPhoneNumber
I found code that creates a custom ADONetAppender, but there's more to it
and I can seem to bridge even how that would translate into C# code on how
to pass this data in the parameters.
I hope what I am asking makes sense, but if not I can provide more details.
Thanks in advance,
Harry
The contents of this email are the property of PNC. If it was not addressed to you, you have no legal right to read it. If you think you received it in error, please notify the sender. Do not forward or copy without permission of the sender. This message may contain an advertisement of a product or service and thus may constitute a commercial electronic mail message under US Law. PNC�s postal address is 249 Fifth Avenue, Pittsburgh, PA 15222. If you do not wish to receive any additional advertising or promotional messages from PNC at this e-mail address, click here to Unsubscribe. https://pnc.p.delivery.net/m/u/pnc/uni/p.asp By unsubscribing to this message, you will be unsubscribed from all advertising or promotional messages from PNC. Removing your e-mail address from this mailing list will not affect your subscription to alerts, e-newsletters or account servicing e-mails..