Announcement Announcement Module
No announcement yet.
OutOfMemoryError with StaxEventItemReader Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • tstebut
    started a topic OutOfMemoryError with StaxEventItemReader

    OutOfMemoryError with StaxEventItemReader

    When parsing a big document with StaxEventItemReader, when the moveCursorToNextFragment() method is called by the framework, an OutOfMemoryError is thrown :/

    Inside moveCursorToNextFragment(), a QName object seems to be instanciated at each node until the end of this huge document, because no more element are found as specified in the mapping.

    Might this be a bug, or does any tip exist to make it work ?

  • robert.kasanicky
    If you are using the reader outside the ItemOrientedStep you need to call mark() periodically so that the internal buffers are cleared.

    However if you have large parts of the document without any items you are in trouble - I've created an issue

    Leave a comment: