org.mozilla.javascript.EcmaError: TypeError: Cannot set property "value" of undefined to "_id0:_id1" (event for HtmlAnchor[<a href="#" onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:_id1'; document.forms['_id0'].submit(); return false;">]#1) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3240) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3230) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3246) at org.mozilla.javascript.ScriptRuntime.typeError3(ScriptRuntime.java:3272) at org.mozilla.javascript.ScriptRuntime.undefWriteError(ScriptRuntime.java:3294) at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1418) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2753) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2145) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:88) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:336) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:749) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:107)

htmlunit | kurti | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JavaScript: Link clicking does not work correctly

    htmlunit | 1 decade ago | kurti
    org.mozilla.javascript.EcmaError: TypeError: Cannot set property "value" of undefined to "_id0:_id1" (event for HtmlAnchor[<a href="#" onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:_id1'; document.forms['_id0'].submit(); return false;">]#1) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3240) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3230) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3246) at org.mozilla.javascript.ScriptRuntime.typeError3(ScriptRuntime.java:3272) at org.mozilla.javascript.ScriptRuntime.undefWriteError(ScriptRuntime.java:3294) at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1418) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2753) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2145) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:88) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:336) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:749) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:107)

    Root Cause Analysis

    1. org.mozilla.javascript.EcmaError

      TypeError: Cannot set property "value" of undefined to "_id0:_id1" (event for HtmlAnchor[<a href="#" onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:_id1'; document.forms['_id0'].submit(); return false;">]#1) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3240) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3230) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3246) at org.mozilla.javascript.ScriptRuntime.typeError3(ScriptRuntime.java:3272) at org.mozilla.javascript.ScriptRuntime.undefWriteError(ScriptRuntime.java:3294) at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1418) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2753) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2145) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:88) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:336) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:749) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:107)

      at test.t01.T0174_a.testClearLog()
    2. test.t01
      T0174_a.testClearLog
      1. test.t01.T0174_a.testClearLog(T0174_a.java:79)
      1 frame
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame