You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Maciej Baranowski (JIRA)" <ji...@apache.org> on 2008/11/04 17:50:44 UTC
[jira] Created: (ABDERA-206) Abdera parser fails when InputStream
returns data in chunks
Abdera parser fails when InputStream returns data in chunks
-----------------------------------------------------------
Key: ABDERA-206
URL: https://issues.apache.org/jira/browse/ABDERA-206
Project: Abdera
Issue Type: Bug
Affects Versions: 0.3.0
Reporter: Maciej Baranowski
Fix For: 0.3.0
We noticed that when InputStream passed to Abder parser does not return all data at 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (ABDERA-206) Abdera parser fails when InputStream
returns data in chunks
Posted by "James M Snell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James M Snell resolved ABDERA-206.
----------------------------------
Resolution: Fixed
I believe this issue is resolved with the correction for https://issues.apache.org/jira/browse/ABDERA-222
> Abdera parser fails when InputStream returns data in chunks
> -----------------------------------------------------------
>
> Key: ABDERA-206
> URL: https://issues.apache.org/jira/browse/ABDERA-206
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.3.0
> Reporter: Maciej Baranowski
> Assignee: James M Snell
> Fix For: 0.3.0
>
> Attachments: AbderaParserFailureTest.java, test.xml
>
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ABDERA-206) Abdera parser fails when InputStream
returns data in chunks
Posted by "Maciej Baranowski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maciej Baranowski updated ABDERA-206:
-------------------------------------
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)
was:
We noticed that when InputStream passed to Abder parser does not return all data at 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)
> Abdera parser fails when InputStream returns data in chunks
> -----------------------------------------------------------
>
> Key: ABDERA-206
> URL: https://issues.apache.org/jira/browse/ABDERA-206
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.3.0
> Reporter: Maciej Baranowski
> Fix For: 0.3.0
>
> Attachments: AbderaParserFailureTest.java, test.xml
>
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ABDERA-206) Abdera parser fails when InputStream
returns data in chunks
Posted by "Maciej Baranowski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maciej Baranowski updated ABDERA-206:
-------------------------------------
Attachment: test.xml
Test Atom file
> Abdera parser fails when InputStream returns data in chunks
> -----------------------------------------------------------
>
> Key: ABDERA-206
> URL: https://issues.apache.org/jira/browse/ABDERA-206
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.3.0
> Reporter: Maciej Baranowski
> Fix For: 0.3.0
>
> Attachments: AbderaParserFailureTest.java, test.xml
>
>
> We noticed that when InputStream passed to Abder parser does not return all data at 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ABDERA-206) Abdera parser fails when InputStream
returns data in chunks
Posted by "Maciej Baranowski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maciej Baranowski updated ABDERA-206:
-------------------------------------
Attachment: AbderaParserFailureTest.java
Test case reproducing the problem. The testSucessWithJDomParser proves that MyChunkedInputStream works properly when Xerces is used.
> Abdera parser fails when InputStream returns data in chunks
> -----------------------------------------------------------
>
> Key: ABDERA-206
> URL: https://issues.apache.org/jira/browse/ABDERA-206
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.3.0
> Reporter: Maciej Baranowski
> Fix For: 0.3.0
>
> Attachments: AbderaParserFailureTest.java, test.xml
>
>
> We noticed that when InputStream passed to Abder parser does not return all data at 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ABDERA-206) Abdera parser fails when InputStream
returns data in chunks
Posted by "James M Snell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706461#action_12706461 ]
James M Snell commented on ABDERA-206:
--------------------------------------
The fix was checked into trunk and will not be in the current 0.4.0 binaries. Please grab trunk, build and test. In my testing, the fix for issue #222 appears to have resolved the problem
> Abdera parser fails when InputStream returns data in chunks
> -----------------------------------------------------------
>
> Key: ABDERA-206
> URL: https://issues.apache.org/jira/browse/ABDERA-206
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.3.0
> Reporter: Maciej Baranowski
> Assignee: James M Snell
> Fix For: 0.3.0
>
> Attachments: AbderaParserFailureTest.java, test.xml
>
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ABDERA-206) Abdera parser fails when InputStream
returns data in chunks
Posted by "James M Snell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705709#action_12705709 ]
James M Snell commented on ABDERA-206:
--------------------------------------
Need to confirm if this is a problem in Abdera, axiom or with the underlying Stax parser implementation being used.
> Abdera parser fails when InputStream returns data in chunks
> -----------------------------------------------------------
>
> Key: ABDERA-206
> URL: https://issues.apache.org/jira/browse/ABDERA-206
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.3.0
> Reporter: Maciej Baranowski
> Fix For: 0.3.0
>
> Attachments: AbderaParserFailureTest.java, test.xml
>
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (ABDERA-206) Abdera parser fails when InputStream
returns data in chunks
Posted by "ant elder (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ant elder closed ABDERA-206.
----------------------------
Fix Version/s: 1.1
(was: 0.3.0)
Resolution: Fixed
Fixed in trunk and next release
> Abdera parser fails when InputStream returns data in chunks
> -----------------------------------------------------------
>
> Key: ABDERA-206
> URL: https://issues.apache.org/jira/browse/ABDERA-206
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.3.0
> Reporter: Maciej Baranowski
> Assignee: James M Snell
> Fix For: 1.1
>
> Attachments: AbderaParserFailureTest.java, test.xml
>
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (ABDERA-206) Abdera parser fails when InputStream
returns data in chunks
Posted by "Maciej Baranowski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maciej Baranowski reopened ABDERA-206:
--------------------------------------
I re-run the test with abdera 0.4.0 and it failed again.
If the problem is the STAX parser implementation then upgrade to abdera 0.4.0 will not change anything - it uses the same version of wstx-asl library as in 0.3.0.
I have tried also to upgrade manually the wstx-asl library to 3.2.8, and even 4.0.3, but this did not help either.
So maybe this is not a problem with the STAX implementation?
> Abdera parser fails when InputStream returns data in chunks
> -----------------------------------------------------------
>
> Key: ABDERA-206
> URL: https://issues.apache.org/jira/browse/ABDERA-206
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.3.0
> Reporter: Maciej Baranowski
> Assignee: James M Snell
> Fix For: 0.3.0
>
> Attachments: AbderaParserFailureTest.java, test.xml
>
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (ABDERA-206) Abdera parser fails when
InputStream returns data in chunks
Posted by "Maciej Baranowski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645000#action_12645000 ]
bmaciej edited comment on ABDERA-206 at 11/4/08 8:52 AM:
-------------------------------------------------------------------
Test case reproducing the problem. The testSucessWithJDomParser method proves that MyChunkedInputStream works properly when Xerces is used.
was (Author: bmaciej):
Test case reproducing the problem. The testSucessWithJDomParser proves that MyChunkedInputStream works properly when Xerces is used.
> Abdera parser fails when InputStream returns data in chunks
> -----------------------------------------------------------
>
> Key: ABDERA-206
> URL: https://issues.apache.org/jira/browse/ABDERA-206
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.3.0
> Reporter: Maciej Baranowski
> Fix For: 0.3.0
>
> Attachments: AbderaParserFailureTest.java, test.xml
>
>
> We noticed that when InputStream passed to Abder parser does not return all data at 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (ABDERA-206) Abdera parser fails when InputStream
returns data in chunks
Posted by "James M Snell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James M Snell reassigned ABDERA-206:
------------------------------------
Assignee: James M Snell
> Abdera parser fails when InputStream returns data in chunks
> -----------------------------------------------------------
>
> Key: ABDERA-206
> URL: https://issues.apache.org/jira/browse/ABDERA-206
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.3.0
> Reporter: Maciej Baranowski
> Assignee: James M Snell
> Fix For: 0.3.0
>
> Attachments: AbderaParserFailureTest.java, test.xml
>
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.