Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.WeldService:com.google.common.collect.ComputationException:java.lang.ArrayInd exOutOfBoundsException:3";}在jboss中使用selenium时_Java_Selenium_Jboss_Selenium Webdriver - Fatal编程技术网

.WeldService:com.google.common.collect.ComputationException:java.lang.ArrayInd exOutOfBoundsException:3";}在jboss中使用selenium时

.WeldService:com.google.common.collect.ComputationException:java.lang.ArrayInd exOutOfBoundsException:3";}在jboss中使用selenium时,java,selenium,jboss,selenium-webdriver,Java,Selenium,Jboss,Selenium Webdriver,我开发了一个项目。现在,为了进行测试,我正在使用selenium。添加selenium-server-standlone.jar或添加selenium java.jar(以及selenium提供的其他库)时,会出现以下异常: .WeldService:com.google.common.collect.ComputeException:java.lang.ArrayIndexOutOfBoundsException:3“}} 有关守则如下: @Before public void set

我开发了一个项目。现在,为了进行测试,我正在使用selenium。添加selenium-server-standlone.jar或添加selenium java.jar(以及selenium提供的其他库)时,会出现以下异常:

.WeldService:com.google.common.collect.ComputeException:java.lang.ArrayIndexOutOfBoundsException:3“}}

有关守则如下:

  @Before
  public void setUp() throws Exception {
    driver = new FirefoxDriver();
    baseUrl = "http://localhost:8081";
    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
  }

Selenium版本是2.42.2,JBoss版本是7.1.0。问题是,Selenium客户端包包含guava 15.0,在与JBoss一起使用时会出现此异常。如果我使用guava 17.0,则没有例外