com.gargoylesoftware.htmlunit.ScriptException: Detected cycle in parent scopes for window: com.gargoylesoftware.htmlunit.javascript.host.Window@7d9a83d

htmlunit | dmatej | 10 months 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

    HtmlUnit hangs when using more windows and javascript

    htmlunit | 10 months ago | dmatej
    com.gargoylesoftware.htmlunit.ScriptException: Detected cycle in parent scopes for window: com.gargoylesoftware.htmlunit.javascript.host.Window@7d9a83d

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Detected cycle in parent scopes for window: com.gargoylesoftware.htmlunit.javascript.host.Window@7d9a83d

      at com.gargoylesoftware.htmlunit.javascript.host.Window.setParentScope()
    2. HtmlUnit
      Window.setParentScope
      1. com.gargoylesoftware.htmlunit.javascript.host.Window.setParentScope(Window.java:226)
      1 frame
    3. HtmlUnit Core JS
      ContextFactory.doTopCall
      1. net.sourceforge.htmlunit.corejs.javascript.BaseFunction.construct(BaseFunction.java:382)
      2. net.sourceforge.htmlunit.corejs.javascript.NativeObject.execIdCall(NativeObject.java:118)
      3. net.sourceforge.htmlunit.corejs.javascript.IdFunctionObject.call(IdFunctionObject.java:101)
      4. net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
      5. net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815)
      6. net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111)
      7. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
      7 frames
    4. HtmlUnit
      HtmlUnitContextFactory.doTopCall
      1. com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:252)
      1 frame
    5. HtmlUnit Core JS
      ScriptRuntime.doTopCall
      1. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3345)
      1 frame
    6. HtmlUnit
      JavaScriptEngine$HtmlUnitContextAction.run
      1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:818)
      2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:879)
      2 frames