Uploaded image for project: 'Abdera'
  1. Abdera
  2. ABDERA-206

Abdera parser fails when InputStream returns data in chunks

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.3.0
    • Fix Version/s: 1.1
    • Labels:
      None

      Description

      We noticed that when InputStream passed to Abder parser does not return all data in one read the parser fails:

      at java.io.FilterInputStream.read(FilterInputStream.java:111)
      at java.io.PushbackInputStream.read(PushbackInputStream.java:161)
      at org.apache.abdera.parser.stax.util.PeekAheadInputStream.read(PeekAheadInputStream.java:126)
      at org.apache.abdera.parser.stax.util.PeekAheadInputStream.peek(PeekAheadInputStream.java:111)
      at org.apache.abdera.parser.stax.util.PeekAheadInputStream.peek(PeekAheadInputStream.java:107)
      at org.apache.abdera.parser.stax.util.FOMSniffingInputStream.detectEncoding(FOMSniffingInputStream.java:76)
      at org.apache.abdera.parser.stax.util.FOMSniffingInputStream.<init>(FOMSniffingInputStream.java:52)

        Attachments

        1. AbderaParserFailureTest.java
          1 kB
          Maciej Baranowski
        2. test.xml
          2 kB
          Maciej Baranowski

          Activity

            People

            • Assignee:
              jasnell James M Snell
              Reporter:
              bmaciej Maciej Baranowski
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: