java.lang.IllegalStateException: No script object associated with the Page

htmlunit | nickkral | 8 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    "No script object" error after deserialization

    htmlunit | 8 years ago | nickkral
    java.lang.IllegalStateException: No script object associated with the Page

    Root Cause Analysis

    1. java.lang.IllegalStateException

      No script object associated with the Page

      at com.gargoylesoftware.htmlunit.html.DomNode.getScriptObject()
    2. HtmlUnit
      WebClient2Test.pageLoadAfterSerialization
      1. com.gargoylesoftware.htmlunit.html.DomNode.getScriptObject(DomNode.java:847)
      2. com.gargoylesoftware.htmlunit.html.DomNode.getScriptObject(DomNode.java:849)
      3. com.gargoylesoftware.htmlunit.javascript.host.Event.<init>(Event.java:280)
      4. com.gargoylesoftware.htmlunit.javascript.host.Event.<init>(Event.java:267)
      5. com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1153)
      6. com.gargoylesoftware.htmlunit.html.HtmlPage.isOnbeforeunloadAccepted(HtmlPage.java:2085)
      7. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:324)
      8. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:403)
      9. com.gargoylesoftware.htmlunit.WebTestCase.loadPage(WebTestCase.java:251)
      10. com.gargoylesoftware.htmlunit.WebClient2Test.pageLoadAfterSerialization(WebClient2Test.java:170)
      10 frames