Re: ConversionError: The undefined value has no properties. (httpunit; line 675)

"david jeanneteau" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
Hi Jackie,

The traces show a problem with javascript.
Can you browse your site with a mozilla browser (i think httpunit uses
some mozilla javascript library ) ?
Can you check the javascript code (you can do that with some firefox
extensions: webdevelopper, firebug ...)

regards,
David

On 3/8/07, jackie chen <[email protected]> wrote:
> Hi,
>
> I am new in httpunit, I got stuck with some bazaar error.  When I am trying
> to use button.click(),  I have received error like: ConversionError: The
> undefined value has no properties. (httpunit; line 675).
>
> Could anyone let me know why?  What other work around I can have, e.g. using
> a different method or set up some path/classpath, or etc.?  I am using
> version 1.6.2 on win2k3.  I have tried to attach httpunit.jar to look at the
> lines in java, but failed.  How should I be able to view the java files in
> the error?  BTW, I am using Eclipse too.
>
> Thank you so much for the help!
> JC
>
>
> ConversionError: The undefined value has no properties. (httpunit; line 675)
>  at
> org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)
>  at
> org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557)
>  at
> org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:712)
>  at
> org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2035)
>  at
> org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2163)
>  at
> org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:62)
>  at
> org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:55)
>  at
> org.mozilla.javascript.Context.evaluateReader(Context.java:820)
>  at
> org.mozilla.javascript.Context.evaluateString(Context.java:784)
>  at
> com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.executeScript(JavaScript.java:132)
>  at
> com.meterware.httpunit.scripting.ScriptableDelegate.runScript(ScriptableDelegate.java:65)
>  at
> com.meterware.httpunit.parsing.ScriptFilter.getTranslatedScript(ScriptFilter.java:151)
>  at
> com.meterware.httpunit.parsing.ScriptFilter.endElement(ScriptFilter.java:131)
>  at
> org.cyberneko.html.filters.DefaultFilter.endElement(Unknown
> Source)
>  at
> org.cyberneko.html.filters.NamespaceBinder.endElement(Unknown
> Source)
>  at
> org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown
> Source)
>  at org.cyberneko.html.HTMLTagBalancer.endElement(Unknown
> Source)
>  at
> org.cyberneko.html.HTMLScanner$SpecialScanner.scan(Unknown
> Source)
>  at org.cyberneko.html.HTMLScanner.scanDocument(Unknown
> Source)
>  at org.cyberneko.html.HTMLConfiguration.parse(Unknown
> Source)
>  at org.cyberneko.html.HTMLConfiguration.parse(Unknown
> Source)
>  at org.apache.xerces.parsers.XMLParser.parse(Unknown
> Source)
>  at org.apache.xerces.parsers.DOMParser.parse(Unknown
> Source)
>  at
> com.meterware.httpunit.parsing.NekoHTMLParser.parse(NekoHTMLParser.java:41)
>  at
> com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:255)
>  at
> com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:1109)
>  at
> com.meterware.httpunit.WebResponse.getFrames(WebResponse.java:1098)
>  at
> com.meterware.httpunit.WebResponse.getFrameRequests(WebResponse.java:875)
>  at
> com.meterware.httpunit.FrameHolder.updateFrames(FrameHolder.java:179)
>  at
> com.meterware.httpunit.WebWindow.updateFrameContents(WebWindow.java:252)
>  at
> com.meterware.httpunit.WebClient.updateFrameContents(WebClient.java:485)
>  at
> com.meterware.httpunit.WebWindow.updateWindow(WebWindow.java:146)
>  at
> com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:130)
>  at
> com.meterware.httpunit.FrameHolder.updateFrames(FrameHolder.java:184)
>  at
> com.meterware.httpunit.WebWindow.updateFrameContents(WebWindow.java:252)
>  at
> com.meterware.httpunit.WebClient.updateFrameContents(WebClient.java:485)
>  at
> com.meterware.httpunit.WebWindow.updateWindow(WebWindow.java:146)
>  at
> com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:130)
>  at
> com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:121)
>  at
> com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:110)
>  at
> com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:253)
>  at
> com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:232)
>  at
> com.meterware.httpunit.WebForm.submitRequest(WebForm.java:96)
>  at
> com.meterware.httpunit.WebForm.doFormSubmit(WebForm.java:107)
>  at
> com.meterware.httpunit.SubmitButton.doButtonAction(SubmitButton.java:67)
>  at com.meterware.httpunit.Button.click(Button.java:81)
>
>
>
>  ________________________________
> Finding fabulous fares is fun.
> Let Yahoo! FareChase search your favorite travel sites to find flight and
> hotel bargains.
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Httpunit-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/httpunit-develop
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.