Received fatal alert: protocol_version
Hi Screen Scrapper Support Team,
While running our one of the scrapping session (https://publicaccess2.milton-keynes.gov.uk/online-applications/search.do;jsessionid=AF2539102C19425D25FC19E0B61ABF13). We are receiving following error:
Received fatal alert: protocol_version
javax.net.ssl.SSLException: Received fatal alert: protocol_version
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at com.screenscraper.http.ApacheScrapingHttpClient.issueRequest(ApacheScrapingHttpClient.java:749)
at com.screenscraper.http.AbstractScrapingHttpClient.scrapeFile(AbstractScrapingHttpClient.java:442)
at com.screenscraper.scraper.ScrapeableFile.scrapeData(ScrapeableFile.java:3496)
at com.screenscraper.scraper.ScrapeableFile.scrape(ScrapeableFile.java:3110)
at com.screenscraper.scraper.ScrapingSession.scrapeFile(ScrapingSession.java:3512)
at com.screenscraper.scraper.Scraper.scrape(Scraper.java:176)
at com.screenscraper.scraper.ScrapingSession.startScraping(ScrapingSession.java:2573)
at com.screenscraper.scraper.RemoteScrapingSessionHandler.run(RemoteScrapingSessionHandler.java:583)
We have Googled this issue and found that this is something related to SSL certification version issue. We have tried with some given solution but no luck. One of the solution we have tried was, we have modified server.vmoptions file with -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" parameter.
The screen-scrapper EE (6.0.69a) is running on Red Hat 4.8.3-9 and Java 1.8.0_65.
Could you please guide us to resolve this issue?
Regards,
Paresh
The explanation for the error
The explanation for the error is here, but the real solution is to update to version 7 using the instructions here.