[ htmlunit-Bugs-2009680 ] ArrayIndexOutOfBounds on WebClient.getPage()

View: New views
1 Messages — Rating Filter:   Alert me  

[ htmlunit-Bugs-2009680 ] ArrayIndexOutOfBounds on WebClient.getPage()

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2009680, was opened at 2008-07-03 08:19
Message generated for change (Comment added) made by ssilvert
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2009680&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: NekoHTML
Group: Latest code in SVN
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stan Silvert (ssilvert)
Assigned to: Nobody/Anonymous (nobody)
Summary: ArrayIndexOutOfBounds on WebClient.getPage()

Initial Comment:
To reproduce error:

svn co http://anonsvn.jboss.org/repos/jsfunit/htmlunit-richfaces/
cd htmlunit-richfaces
mvn -Dtest=NekoFailureTest

In the surefire report, you will usually see:
java.lang.ArrayIndexOutOfBoundsException: -3
        at org.cyberneko.html.HTMLScanner.read(HTMLScanner.java:1121)
        at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1899)
        at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:880)
        at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:495)
        at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:448)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:634)
        at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:235)
        at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:127)
        at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
        at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:444)
        at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:342)
        at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392)
        at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:379)
        at org.jboss.htmlunit.NekoFailureTest.testHtmlUnitWithNeko198Snapshot(NekoFailureTest.java:49)

The strange thing is, that this doesn't always fail.  But on my machine it fails more than half the time.

----------------------------------------------------------------------

>Comment By: Stan Silvert (ssilvert)
Date: 2008-07-03 08:24

Message:
Logged In: YES
user_id=1039639
Originator: YES

Notes about the test:
* The htmlunit-richfaces project uses only HtmlUnit and RichFaces.  It
does not use JSFUnit or Cactus.  So it should be simpler for you to debug.
* The test deploys the RichFaces demo WAR to Jetty and then runs the test
against that application.
* If you look at NekoFailureTest.java, you will see two tests inside.  The
first one always fails if you use Neko 1.9.7.  The second one USUALLY fails
if you use Neko 1.9.8-SNAPSHOT.  Both tests run against the very latest
HtmlUnit in SVN.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2009680&group_id=47038

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
HtmlUnit-develop mailing list
HtmlUnit-develop@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
LightInTheBox - Buy quality products at wholesale price