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

Abdera parser fails when InputStream returns data in chunks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3.0
    • 1.1
    • 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. test.xml
          2 kB
          Maciej Baranowski
        2. AbderaParserFailureTest.java
          1 kB
          Maciej Baranowski

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: