简体   繁体   中英

java.lang.IllegalAccessError: tried to access method com.google.common.util.concurrent.SimpleTimeLimiter.(Ljava/util/concurrent/ExecutorService;)V [on hold]

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.

Related Question java.lang.IllegalAccessError: tried to access method com.google.common.util.concurrent.SimpleTimeLimiter. when using Selenium-Java 3.5.1 or above java.lang.IllegalAccessError: tried to access method com.google.common.util.concurrent.SimpleTimeLimiter with Selenium ChromeDriver Chrome with Java java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.platformThreadFactory()Ljava/util/concurrent/ThreadFactory; com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java) with ChromeDriver and Chrome using Selenium and Java java.lang.NoSuchMethodError: com.google.common.util.concurrent.SimpleTimeLimiter.create at org.openqa.selenium.remote.service.DriverService.wa maven java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(); from WeldMessageConveyor Netbeans and Maven Project: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap Need help on NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.directExecutor()Ljava/util/concurrent/Executor; in IntelliJ java.lang.IllegalAccessError: tried to access method
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM