links and js

"michael gross" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
hello list

if I am running the fallowing lines

response = conversation.getResponse( "www.google.ch" );
lk = response.getLinkWith("Personalisierte Startseite");
response = lk.click();
System.out.println(response.getText());

I get the exception:

org.mozilla.javascript.JavaScriptException: java.lang.NullPointerException
   at
org.mozilla.javascript.JavaScriptException.wrapException(JavaScriptException.java:70)
   at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:418)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2169)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2163)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2163)
   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:42)
   at com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:260)
   at
com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:1110)
   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:253)
   at
com.meterware.httpunit.WebClient.updateFrameContents(WebClient.java:487)
   at com.meterware.httpunit.WebWindow.updateWindow(WebWindow.java:147)
   at
com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:130)
   at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:121)
   at com.meterware.httpunit.WebWindow.updateWindow(WebWindow.java:144)
   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.WebLink.click(WebLink.java:98)
   at gourmondo.get_site(gourmondo.java:42)
   at gourmondo.main(gourmondo.java:13)


what could be the problem, that i can not open this page?

thanks for any help
best michael






-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
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.