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

  • 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 ?

  • #2
    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 http://jira.springframework.org/browse/BATCH-613

    Comment

    Working...
    X