https://issues.apache.org/bugzilla/show_bug.cgi?id=49481

--- Comment #1 from Curt Arnold <carn...@apache.org> 2010-06-21 22:00:57 EDT ---
An ArrayOutOfBoundsException at that line has been previously reported on
log4j-user and also in contexts that are independent of log4j (search for
OutputStreamWriter ArrayOutOfBoundsException).  For the exception that you
reported, the issue is either a JDK level bug or a misuse of the JDK (such as
concurrent use of a non-thread safe object) resulting in undefined behavior. 
log4j passes a String to OutputStreamWriter and can't be responsible for
iterating outside of an array.

log4j has a global lock that should have prevented concurrent calls to
OutputStreamWriter.

The line number in OutputStreamWriter does not correspond to the current Sun
JDK source code available at http://download.java.net/jdk6/source/ since
OutputStreamWriter.java has only 218 lines in the version.

I checked the Java bug database and found no reports that seemed to correspond.

As far as I can tell you are running into a JDK bug.  While log4j is involved
in the crash, don't have any indication that it is anything other than an
innocent victim.

Are you able to upgrade to JDK 6?  If not, do you have access to the JDK code
corresponding the JDK that you are running and can you identify what might be
going wrong on line 250 of OutputStreamWriter.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to