java.lang.IllegalAccessError: tried to access method com.google.common.util.concurrent.SimpleTimeLimiter. when using Selenium-Java 3.5.1 or above

后端 未结 3 1403
Happy的楠姐
Happy的楠姐 2020-11-30 14:47

I am wondering if anyone can give me an idea why I\'m getting the following error when I use Selenium-Java 3.5.1 or above -

java.lang.IllegalAccessError: tr         


        
3条回答
  •  攒了一身酷
    2020-11-30 15:08

    In my earlier pom.xml, this was the entry:

    
    
        org.seleniumhq.selenium
        selenium-java
        2.53.0
    
    

    Below error was being thrown,

    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

    Then I updated the POM with the latest version:

    
        org.seleniumhq.selenium
        selenium-java
        3.14.0
    
    

    I did not see the error once again. Hope this helps.

提交回复
热议问题