java.lang.IllegalAccessError: tried to access method org.mozilla.javascript.Context.<init>(Lorg/mozilla/javascript/ContextFactory;)V from class com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext

htmlunit | einsteinnjr | 8 years 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 / Bugs / #722 com.gargoylesoftware.htmlunit.ScriptException

    sourceforge.net | 1 year ago
    java.lang.IllegalAccessError: tried to access method org.mozilla.javascript.Context.<init>(Lorg/mozilla/javascript/ContextFactory;)V from class com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext
  2. 0

    com.gargoylesoftware.htmlunit.ScriptException

    htmlunit | 8 years ago | einsteinnjr
    java.lang.IllegalAccessError: tried to access method org.mozilla.javascript.Context.<init>(Lorg/mozilla/javascript/ContextFactory;)V from class com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      tried to access method org.mozilla.javascript.Context.<init>(Lorg/mozilla/javascript/ContextFactory;)V from class com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext

      at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext.<init>()
    2. HtmlUnit
      HtmlUnitContextFactory.makeContext
      1. com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext.<init>(HtmlUnitContextFactory.java:116)
      2. com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.makeContext(HtmlUnitContextFactory.java:138)
      2 frames
    3. Rhino
      ContextFactory.call
      1. org.mozilla.javascript.Context.enter(Context.java:404)
      2. org.mozilla.javascript.Context.call(Context.java:500)
      3. org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511)
      3 frames
    4. HtmlUnit
      WebClient.getPage
      1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.initialize(JavaScriptEngine.java:136)
      2. com.gargoylesoftware.htmlunit.WebClient.initialize(WebClient.java:1118)
      3. com.gargoylesoftware.htmlunit.WebWindowImpl.setEnclosedPage(WebWindowImpl.java:93)
      4. com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:233)
      5. com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:127)
      6. com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
      7. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:438)
      8. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:326)
      9. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:383)
      10. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:368)
      10 frames
    5. test4_htmlunit
      Ex_htmlunit.main
      1. test4_htmlunit.Ex_htmlunit.search(Ex_htmlunit.java:32)
      2. test4_htmlunit.Ex_htmlunit.main(Ex_htmlunit.java:118)
      2 frames