Skip to content

StaxEventItemReader method moveCursorToNextFragment creates an infinite loop upon retrieving endDocument event [BATCH-1878] #1714

Open
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits 96d3564

1 votes, 3 watchers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions