https://bz.apache.org/bugzilla/show_bug.cgi?id=59607

--- Comment #1 from [email protected] ---
Error analysis:
Why does this occur?

1) JMeter's SaveService#readTree wraps the InputStream it receives in a
BufferedInputStream (BIS).

2) It then tells the BIS to save all read data in memory up to a size of
Integer.MAX_VALUE by calling reader.mark(Integer.MAX_VALUE).

3) XStream successfully reads in bytes from the BIS. As requested in 2), the
BIS saves all the bytes read into an array buffer.

4) As the file is large, the BIS at some point calculates a buffer size
exceeding the integer range. This integer is mapped to a negative value
(integer overflow).

5) BIS tries to allocate a byte buffer with this negative size, yielding the
error.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to