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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via htmlunit by einsteinnjr
, 1 year ago
tried to access method org.mozilla.javascript.Context.<init>(Lorg/mozilla/javascript/ContextFactory;)V from class com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext
via sourceforge.net by Unknown author, 1 year ago
tried to access method org.mozilla.javascript.Context.<init>(Lorg/mozilla/javascript/ContextFactory;)V from class com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext
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.(HtmlUnitContextFactory.java:116)
at org.mozilla.javascript.Context.enter(Context.java:404)
at org.mozilla.javascript.Context.call(Context.java:500)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.initialize(JavaScriptEngine.java:136)
at com.gargoylesoftware.htmlunit.WebClient.initialize(WebClient.java:1118)
at com.gargoylesoftware.htmlunit.WebWindowImpl.setEnclosedPage(WebWindowImpl.java:93)
at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:233)
at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:127)
at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:438)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:326)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:383)
at test4_htmlunit.Ex_htmlunit.search(Ex_htmlunit.java:32)
at test4_htmlunit.Ex_htmlunit.main(Ex_htmlunit.java:118)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.