Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-73

Woodstox parser fails for big files sometimes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • V2 1.0.0
    • V2 1.1.0
    • odata2-core
    • None

    Description

      For some big xml files the woodstox parser which is a transitive dependency of cxf fails with the exception: "Found characters or cdata event when not expected"

      This happens because a previous call of getText() doesn´t deliver the whole text but only a fraction. So when we call nextTag() the parser throws the exception because there is still character data on the buffer. This issue does only appear with big xml files and happens randomly within the document altough always at the same element.

      So maybe this is a woodstox bug. We can implement a workaround by calling getText() as long as there is still character data left.

      Attachments

        Activity

          People

            chrisam Christian Amend
            chrisam Christian Amend
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: