Hi all

I'm trying to fix the ExceptionInInitializerError exception which is happening on "click" on some but not all links. (see below) I have traced it to the fact that the failing response pages contains an & character.

NekoHTML changes from 0.9.1 to 0.9.2 list a bug fix for entity-reference scanning which was suggested as addressing this problem. But when I tried the latest nekohtml (0.9.4), jwebunit failed completely. And version 0.9.2 also doesn't work much better. I just keep getting different exceptions.

So I am attempting to get the correct versions of all the jars (except obviously junit!) required for jwebunit to function!

I notice that the dependencies previously were:
- httpunit 1.5.4
- junit 3.8.1
- nekohtml 0.8.1
- js 1.5R4.1
- servletapi 2.3
- xercesImpl 2.6.2
- xml-apis 1.0.b2

But now the jwebunit project page says they the dependencies also include:
- org.mortbay.jetty 4.2.20
- jasper-compiler 4.1.30
- jasper-runtime 4.1.30


Since I'm using WebObjects and not servlets do I still need these other jars?

Are any later versions of the jars supported by jwebunit 1.2?

Maybe somebody could email me a functioning set of jars working jwebunit so I can rule out version errors?
It would be a big help :-)


thanks very much
mich


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



------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ Jwebunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to