[Jwebunit-users] WebTester clickLinkWithText ExceptionInInitializerError
Brought to you by:
henryju
From: Michelle P. <mi...@we...> - 2005-03-24 03:44:56
|
Hi all I'm getting this exception using WebTester clickLinkWithText (and clickLink too). In both cases I'm checking the link is there with an assertLinkPresentWithText. Strangely enough, some links on a page _do_ work this way and some just don't. But I cannot determine why some are different! When I use a tester.dumpResponse() all the links are present and correct. here is my code tester.assertLinkPresentWithText("Link"); tester.dumpResponse(); tester.clickLink("Link"); Can somebody point me in the right direction for tracking down this problem? Exception follows: java.lang.ExceptionInInitializerError In package : org.cyberneko.html, class : HTMLScanner method : scanEntityRef in file :Compiled code no file info - line :No line info due to compiled code In package : org.cyberneko.html, class : HTMLScanner$ContentScanner method : scan in file :Compiled code no file info - line :No line info due to compiled code In package : org.cyberneko.html, class : HTMLScanner method : scanDocument in file :Compiled code no file info - line :No line info due to compiled code In package : org.cyberneko.html, class : HTMLConfiguration method : parse in file :Compiled code no file info - line :No line info due to compiled code In package : org.cyberneko.html, class : HTMLConfiguration method : parse in file :Compiled code no file info - line :No line info due to compiled code In package : org.apache.xerces.parsers, class : XMLParser method : parse in file :XMLParser.java - line :152 In package : org.apache.xerces.parsers, class : DOMParser method : parse in file :DOMParser.java - line :253 In package : com.meterware.httpunit.parsing, class : NekoHTMLParser method : parse in file :NekoHTMLParser.java - line :41 In package : com.meterware.httpunit, class : HTMLPage method : parse in file :HTMLPage.java - line :244 In package : com.meterware.httpunit, class : WebResponse method : getReceivedPage in file :WebResponse.java - line :1014 In package : com.meterware.httpunit, class : WebResponse$Scriptable method : load in file :WebResponse.java - line :611 In package : com.meterware.httpunit.javascript, class : JavaScript$Window method : initialize in file :JavaScript.java - line :424 In package : com.meterware.httpunit.javascript, class : JavaScript method : run in file :JavaScript.java - line :80 In package : com.meterware.httpunit.javascript, class : JavaScriptEngineFactory method : associate in file :JavaScriptEngineFactory.java - line :46 In package : com.meterware.httpunit, class : RequestContext method : runScripts in file :RequestContext.java - line :44 In package : com.meterware.httpunit, class : WebWindow method : getResponse in file :WebWindow.java - line :119 In package : com.meterware.httpunit, class : WebWindow method : sendRequest in file :WebWindow.java - line :107 In package : com.meterware.httpunit, class : WebRequestSource method : submitRequest in file :WebRequestSource.java - line :245 In package : com.meterware.httpunit, class : WebRequestSource method : submitRequest in file :WebRequestSource.java - line :224 In package : com.meterware.httpunit, class : WebLink method : click in file :WebLink.java - line :90 In package : net.sourceforge.jwebunit, class : HttpUnitDialog method : submitRequest in file :HttpUnitDialog.java - line :573 In package : net.sourceforge.jwebunit, class : HttpUnitDialog method : clickLink in file :HttpUnitDialog.java - line :753 In package : net.sourceforge.jwebunit, class : WebTester method : clickLink in file :WebTester.java - line :938 class : MainPageTestCase: testMainPageLinks in file : MainPageTestCase.java - line :45 In package : java.io, class : Reader method : <init> in file :Reader.java - line :61 In package : java.io, class : InputStreamReader method : <init> in file :InputStreamReader.java - line :80 In package : java.util, class : Properties method : load in file :Properties.java - line :266 In package : org.cyberneko.html, class : HTMLEntities method : load0 in file :Compiled code no file info - line :No line info due to compiled code In package : org.cyberneko.html, class : HTMLEntities method : <clinit> in file :Compiled code no file info - line :No line info due to compiled code |