簡體   English   中英

selenium webdriver失敗:java.lang.NoClassDefFoundError:無法初始化類sun.nio.ch.FileChannelImpl

[英]selenium webdriver failed with: java.lang.NoClassDefFoundError: Could not initialize class sun.nio.ch.FileChannelImpl

我正在使用selenium,在嘗試運行一個簡單的測試時,我得到:

java.lang.NoClassDefFoundError:無法初始化類sun.nio.ch.FileChannelImpl

我有搜索堆棧的帖子,發現只有這一個: java.lang.NoClassDefFoundError:無法初始化類sun.nio.ch.FileChannelImpl

但那里的答案並沒有幫助我。 webdriver尚未初始化並獲得:

無法調用配置方法com.tf.qa.tempTests.tests.TempTestBase.setDriver:無法初始化類sun.nio.ch.FileChannelImpl

細節:

構建信息:版本:'2.46.0',os.name:'Windows 7',os.arch:'x86',os.version:'6.1',java.version:'1.8.0_40'驅動程序信息:org。 openqa.selenium.remote.RemoteWebDriver

任何幫助將不勝感激。

因此,在我重新啟動中心服務器(直接從Jenkins完成)並再次啟動網格中的所有節點后,它已得到修復。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM