Hi Max,

please use next time the user's list, you might get better response.

Max Birkoff wrote:

> I can reproduce the OOM exception below using the program below.
> 
> Have you seen this before?

[snip]

No, but it's interesting. Anyway it is a bug of Jettison, I can reproduce it 
easily without any XStream code involved:

=========== %< ============
    public void testIncompleteArray() throws XMLStreamException {
       final MappedXMLInputFactory mif;
       final Configuration config = new Configuration();
       mif = new MappedXMLInputFactory(config);
       ByteArrayInputStream in = new ByteArrayInputStream("{'list':
['v',".replace('\'', '\"').getBytes());
       XMLStreamReader reader = mif.createXMLStreamReader(in);
       assertNotNull(reader);
    }
=========== %< ============

The OOME happens when the XMLStreamReader is created. Therefore, can you 
report this to Jettison?

Regards,
Jörg


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to