com.gargoylesoftware.htmlunit.ScriptException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Numerous javascript exceptions
    via htmlunit by zuzum2
    ,
  • namespace and xpath
    via Stack Overflow by chris.shi
    ,
    • com.gargoylesoftware.htmlunit.ScriptException: Exception invoking evaluate at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:677) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:609) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:584) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:985) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:53) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:102) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:328) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:162) at java.lang.Thread.run(Thread.java:738) Caused by: java.lang.RuntimeException: Exception invoking evaluate at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:148) at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:448) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1531) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:405) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:309) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3031) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:103) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:602) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:662) ... 10 more Caused by: java.lang.RuntimeException: Could not retrieve XPath >/soap:Envelope/soap:Body< on com.gargoylesoftware.htmlunit.xml.XmlPage@4cf74cf7 at com.gargoylesoftware.htmlunit.html.xpath.XPathUtils.getByXPath(XPathUtils.java:94) at com.gargoylesoftware.htmlunit.html.DomNode.getByXPath(DomNode.java:1445) at com.gargoylesoftware.htmlunit.javascript.host.XPathEvaluator.evaluate(XPathEvaluator.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:120) ... 20 more Caused by: org.apache.xpath.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: soap at org.apache.xpath.compiler.XPathParser.errorForDOM3(Unknown Source) at org.apache.xpath.compiler.Lexer.mapNSTokens(Unknown Source) at org.apache.xpath.compiler.Lexer.tokenize(Unknown Source) at org.apache.xpath.compiler.Lexer.tokenize(Unknown Source) at org.apache.xpath.compiler.XPathParser.initXPath(Unknown Source) at org.apache.xpath.compiler.XPathParser.initXPath(Unknown Source) at com.gargoylesoftware.htmlunit.html.xpath.XPathAdapter.<init>(XPathAdapter.java:83) at com.gargoylesoftware.htmlunit.html.xpath.XPathUtils.evaluateXPath(XPathUtils.java:128) at com.gargoylesoftware.htmlunit.html.xpath.XPathUtils.getByXPath(XPathUtils.java:72) ... 27 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,