ERROR: java.lang.IllegalAccessError: tried to access method com.google.common.util.concurrent.SimpleTimeLimiter.(Ljava/util/concurrent/ExecutorService;)V from class org.openqa.selenium.net.UrlChecker
This error is occurring for the guava versions greater than 22.0. For the guava 22.0, the code runs fine.
Is there any solution for this error?
OS: Windows 10
Browser: Chrome Browser version: Version 78.0.3904.97 (Official Build) (64-bit)
Browser Driver version: Chromedriver 78.0.3904.105
Language Bindings version: Java 1.8
Selenium Grid version (if applicable): 3.141.59
Update the following maven dependencies in pom.xml.
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.0</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.2</version>
</dependency>
Also update to Selenium 3.7.
1.
The link is given below. https://github.com/citrusframework/citrus/issues/294
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.