From: Mike B. <mb...@Ga...> - 2002-08-07 11:32:26
|
Hi Cort, Which version of HtmlUnit are you using? JavaScriptEngine.java has changed on just about every pre-release so I need to know what version you are using so that I can see what code is on line 153. In the current code base, line 153 is a close curly brace so I'd guess that wasn't causing the exception ;-) If you are able to send the html that caused it to blow up then that would be very helpful as well. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com Cort Schaefer wrote: > I have been playing with HtmlUnit all day and have been able to do a > few simple tests, but am having a problem with a page that is doing > some javascript validation before the form can be submitted. I get > the following stack trace which does not help me much: > > <stacktrace><![CDATA[Exception > class=[org.mozilla.javascript.JavaScriptException]com.gargoylesoftware.htmlunit.ScriptException: > java.lang.NullPointerException at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:153) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavascriptIfPossible(HtmlPage.java:722) > at > com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:69) > at com.seamlessweb.htmlunit.LoginTest.test_Order(LoginTest.java:141) > > I am able to use the page without any issues us IE 6, which is what I > set the WebClient browser version to. I had a few other problems with > the syntax of select objects (form.selectobject.options[index].value > did not appear to work), but was able to fumble through those with the > information in the exceptions. Unfortunately this exception does not > give me a line or anything to give me a hint as to where it is having > a problem. > > Any assistance would be much appreciated. > > Cort > |