RE: ArrayIndexOutOfBoundsException in AsyncAppender

2001-12-16 Thread Ceki Gulcu
2001 +, you wrote: >| >Thanx, Ceki. >| > >| >Again, allow me to suggest that the loop in Dispatcher is guarded by a >| >try/catch block, thus preventing it from exiting disgracefully. >| > >| >-- >| > >| >Thomas >| > >| >| -Original Message-

RE: ArrayIndexOutOfBoundsException in AsyncAppender

2001-12-16 Thread Thomas Tuft Muller
omas | -Original Message- | From: Ceki Gulcu [mailto:[EMAIL PROTECTED]] | Sent: 16 December 2001 11:31 | To: Log4J Users List | Subject: RE: ArrayIndexOutOfBoundsException in AsyncAppender | | | | Thomas, | | This is a very interesting comment. I disagree with it for the | following reason. W

RE: ArrayIndexOutOfBoundsException in AsyncAppender

2001-12-16 Thread Ceki Gulcu
to:[EMAIL PROTECTED]] >| Sent: 14 December 2001 22:11 >| To: Log4J Users List >| Subject: Re: ArrayIndexOutOfBoundsException in AsyncAppender >| >| >| >| Thomas, >| >| Looks like a bug to me. Thanks for the info. The likely cause of >| this problem is that the &#

RE: ArrayIndexOutOfBoundsException in AsyncAppender

2001-12-16 Thread Thomas Tuft Muller
| Subject: Re: ArrayIndexOutOfBoundsException in AsyncAppender | | | | Thomas, | | Looks like a bug to me. Thanks for the info. The likely cause of | this problem is that the 'vw' static variable of type | VectorWriter is not accessed in a synchronized manner. You have | two threads trying to lo

Re: ArrayIndexOutOfBoundsException in AsyncAppender

2001-12-14 Thread Ceki Gulcu
Thomas, Looks like a bug to me. Thanks for the info. The likely cause of this problem is that the 'vw' static variable of type VectorWriter is not accessed in a synchronized manner. You have two threads trying to log an event containing an exception near simultaneously. One easy solution is