PIXNET Logo登入

小攻城師的戰場筆記

跳到主文

我是每天都和程式語言奮戰的小攻城師,在此記錄日常遇到的問題與解答。

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 4月 24 週日 201617:46
  • [Web] 處理執行Selenium時發生Firefox錯誤的問題

firefox WebDriver被Firefox停用的畫面同事寫了支 Java 程式會用到 Firefox 抓網站的螢幕擷圖,不過今天執行起來怪怪的,我仔細想一下,好像是我把 Firefox 更新後發生的問題?看了一下錯誤訊息,裡面有這一段內容:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
hello\AppData\Local\Temp\anonymous1263966490208696868webdriver-profile\extensions\fxdriver@googlecode.com
1461490691668   addons.xpi      DEBUG   Ignoring file entry whose name is not a valid add-on ID: C:\Users\hello\AppData\Local\Temp\anonymous1263966490208696868webdriver-profile\extensions\webdriver-staging
1461490691668   addons.xpi      INFO    SystemAddonInstallLocation directory ismissing
1461490691669   addons.xpi      INFO    Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e
08-4474-a285-3208198ce6fd}
1461490691670   addons.xpi      DEBUG   Skipping unavailable install location app-system-share
(繼續閱讀...)
文章標籤

小攻城師 發表在 痞客邦 留言(0) 人氣(469)

  • 個人分類:Java
▲top
  • 3月 17 週四 201616:12
  • [Java] 處理無法透過SSL抓取網站資料的問題

今天發現一支原本跑得好好的程式出現錯誤:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1747)
   at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:241)
   at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:235)
   at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1209)
   at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:135)
   at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
   at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:943)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1215)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1199)
   at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:275)
   at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:254)
   at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:123)
   at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)
   at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
   at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
   at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
   at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
   at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
   at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
   at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
   at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
   at org.test.myProgram.run(myProgram.java:127)
   at org.test.myProgram.main(myProgram.java:49)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:323)
   at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:217)
   at sun.security.validator.Validator.validate(Validator.java:218)
   at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)
   at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)
   at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
   at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1188)
   ... 21 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174)
   at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)
   at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:318)
   ... 27 more
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
(繼續閱讀...)
文章標籤

小攻城師 發表在 痞客邦 留言(2) 人氣(14,223)

  • 個人分類:Java
▲top
1

內文搜尋

最近看了什麼呢

  • [Web] 在JC (Java Composer)設定多個header
  • [Windows] CURL出現「CRYPT_E_REVOCATION_OFFLINE (0x80092013) - 因為撤銷伺服器已離線,無法完成撤銷檢查」
  • [Windows] 使用IIS Crypto小心影響遠端桌面連線(RDP)運作
  • [Windows/macOS] 使用ffmpeg壓縮影片檔案
  • [PowerShell] 連線到SQL Server確認資料連線
  • [MOSS] 排除SharePoint搜尋功能無法使用問題
  • [Web] SSH Terrapin Prefix Truncation Weakness
  • [MSSQL] 處理時戳日期轉換時少一天的問題
  • [Web] Google Ad Manager無法刊登廣告問題排除
  • [Web] Cyberbit Range筆記

筆記分類成這些

toggle 文書處理 (5)
  • VIM (5)
  • LaTeX (8)
  • Excel (9)
  • PowerPoint (3)
  • Word (5)
toggle 前端技術 (4)
  • Browser (5)
  • HTML/CSS/JavaScript (39)
  • jQuery (9)
  • ExtJS (3)
toggle 後端技術 (8)
  • Sybase (1)
  • Oracle (1)
  • Java (2)
  • ASP.NET (14)
  • Python (9)
  • PHP (36)
  • MSSQL (9)
  • MySQL (7)
toggle 系統相關 (5)
  • iOS/Android (8)
  • IIS (5)
  • Apache (8)
  • Linux (7)
  • Windows (39)
toggle 其他內容 (9)
  • 施博瀚的以拉拉拉 (5)
  • SharePoint (6)
  • 網站設定 (9)
  • 使用其他網站的小筆記 (4)
  • 原文轉載 (1)
  • Version Control (16)
  • Conference (5)
  • Security (4)
  • 雜七雜八 (37)
  • 未分類文章 (1)

文章彙整

參觀人氣

  • 本日人氣:
  • 累積人氣:

大家通常讀這些

  • (245,856)[Win] 移除「永遠用選取的程式來開啟這種檔案」設定。
  • (4,276)[Windows] Win10安裝字型檔時出現「不是有效的字型檔」
  • (33,076)[Windows]修改ASUS BIOS顯示卡設定
  • (112,852)[Office] 在 Word 2010 設定「合併儲存格」的快速鍵
  • (4,056)[JavaScript] Proj4js: TWD97 和 WGS84 兩種 GPS 座標系統之間的轉換
  • (24,457)[Misc.] 在 Apple Store 買東西時打統編(為發票加上統一編號)
  • (24,658)[Misc.] 郵局掛號郵件的改投改寄
  • (25,099)[Misc.] 東西掉到後面時取出 IKEA ALEX 抽屜櫃的抽屜
  • (28,667)[Office] 解決Powerpoint另存PDF失敗的問題
  • (30,935)[Windows] 查詢AD網域使用者帳號密碼到期日

 

里程碑