Open
Description
Martins Kazuss opened BATCH-1878 and commented
StaxEventItemReader method moveCursorToNextFragment(XMLEventReader reader)is not processing endDocument event. An infinite loop is created after retrieving this event as method is trying to find the next startElement (but as the end of the file is reached it is impossible).
An example solution is provided as an attachment (CustomStaxEventItemReader which is basically the original StaxEventItemReader with modified moveCursorToNextFragment(XMLEventReader reader) method).
Attachments:
- CustomStaxEventItemReader.java (9.41 kB)
Referenced from: commits 96d3564
1 votes, 3 watchers