Re: [tagsoup-friends] Problem with tagsoup: java.io.IOException: Pushback buffer overflow

446 views
Skip to first unread message

iWantToKeepAnon

unread,
Sep 25, 2012, 10:17:12 PM9/25/12
to tagsoup...@googlegroups.com, sdev...@gmail.com
FWIW, I ran this page against an identity template in saxon using the "-x org.ccil.cowan.tagsoup.Parser" option and I got no error.  What I did get was well formed XHTML output (which is what my id-template should produce).

Could be your code, in which case you need to narrow it down to the smallest footprint that still exhibits the error.  Many times when I've done this exercise I find the smallest code footprint won't reproduce the error ... which leads me to a bug in my code.

Best of luck ...
-- R

--
"A smile is the shortest distance between two people."
Victor Borge

--- On Mon, 9/24/12, Steven Devijver <sdev...@gmail.com> wrote:

From: Steven Devijver <sdev...@gmail.com>
Subject: [tagsoup-friends] Problem with tagsoup: java.io.IOException: Pushback buffer overflow
To: tagsoup...@googlegroups.com
Date: Monday, September 24, 2012, 5:40 PM

I get this exception when I run this code:

Exception in thread "main" java.io.IOException: Pushback buffer overflow
at java.io.PushbackReader.unread(Unknown Source)
at org.ccil.cowan.tagsoup.HTMLScanner.unread(HTMLScanner.java:274)
at org.ccil.cowan.tagsoup.HTMLScanner.scan(HTMLScanner.java:487)
at org.ccil.cowan.tagsoup.Parser.parse(Parser.java:449)
at TagSoupTest.main(TagSoupTest.java:36)

As far as I can tell it only happens on this page:


I would like to solve this problem because it stands in the way of a project I'm doing with tagsoup.

Does anybody know how I can fix this?

Many thanks 

Steven Devijver

unread,
Sep 26, 2012, 6:46:42 AM9/26/12
to tagsoup...@googlegroups.com, sdev...@gmail.com


On Wednesday, September 26, 2012 4:17:14 AM UTC+2, iWantToKeepAnon wrote:
FWIW, I ran this page against an identity template in saxon using the "-x org.ccil.cowan.tagsoup.Parser" option and I got no error.  What I did get was well formed XHTML output (which is what my id-template should produce).
 
Could be your code, in which case you need to narrow it down to the smallest footprint that still exhibits the error.  Many times when I've done this exercise I find the smallest code footprint won't reproduce the error ... which leads me to a bug in my code.


Strange, I ran my code again today and I don't get the error anymore. I guess I should have saved the offending HTML page :(

Thanks for your help!
Reply all
Reply to author
Forward
0 new messages