18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

SSLHandshakeException: Remote host closed connection during handshake

avinashavinash Members
edited June 2013 in Sahi Pro
The error is observed using Sahi Pro 5.0.5 (2013-06-11) & Sahi Open Source Version : V4.4 (2013-04-29)

Steps Followed:
A test certificate is being used and installed per http://sahi.co.in/w/https-ssl
Proxy had been set in the userdata.properties file.

When the browser is launched and the test URL is mentioned and after entering the Start URL and clicking on "Go", below stack trace observed.

Browser Version: IE 9.0.8.112.16421

Please inform if anymore information is needed.


D:\sahi_pro\userdata\bin>set SAHI_JAVA_HOME=C:\Program Files (x86)\Java\jre7


D:\sahi_pro\userdata\bin>CALL ..\..\bin\dashboard.bat
SAHI_HOME: ..\..
SAHI_USERDATA_DIR: ..
SAHI_EXT_CLASS_PATH:
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) Client VM (build 23.21-b01, mixed mode, sharing)
Sahi properties file = D:\sahi_pro\config\sahi.properties
Sahi user properties file = D:\sahi_pro\userdata\config\userdata.properties
>>>> License expires on Sat Jul 20 20:01:02 EDT 2013
>>>> Sahi Pro Trial License licensed to Trial User 1 month
>>>> Issued on Thu Jun 20 20:01:02 EDT 2013
>>>> Sahi started. Listening on port: 9999
Reading browser types from: D:\sahi_pro\userdata\config\browser_types.xml
Firefox 4 was not found at C:\Program Files (x86)\Mozilla Firefox 4.0 Beta 7\fir
efox.exe
Chrome was not found at C:\Users\U1HC155\AppData\Local\Google\Chrome\Application
\chrome.exe
PhantomJS was not found at $sahiDir\ext\phantomjs\phantomjs.exe
Using Database:
driverName=org.h2.Driver
jdbcurl=jdbc:h2:D:/sahi_pro/userdata/database/db0;AUTO_SERVER=TRUE;DB_CLOSE_DELA
Y=-1;IGNORECASE=TRUE
userName=sa
Check tables version
versionFromDB=2013-06-11 17:27:00
version=2013-06-11 17:27:00
At current version. No changes were done.
{result: "KEY","VALUE"],["versionNo","2013-06-11 17:27:00"}
Finished preparing report tables: 378ms
Setting Proxy
Proxy set
System.getProperty("java.home") = C:\Program Files (x86)\Java\jre7
keytoolPath = C:\Program Files (x86)\Java\jre7\bin\keytool
Trying with keytoolPath: C:\Program Files (x86)\Java\jre7\bin\keytool
Keytool command found at: C:\Program Files (x86)\Java\jre7\bin\keytool
Jun 21, 2013 10:41:40 AM net.sf.sahi.config.SahiAuthenticator getPasswordAuthent
ication
INFO: getRequestingProtocol() = https
Jun 21, 2013 10:41:40 AM net.sf.sahi.config.SahiAuthenticator getPasswordAuthent
ication
INFO: realm=; getRequestingScheme()=Negotiate
Looking for:*Negotiate*
null
Jun 21, 2013 10:41:41 AM net.sf.sahi.test.ProcessHelper execute
INFO: "C:\Program Files (x86)\Internet Explorer\iexplore.exe" -noframemerging "h
ttp://sahi.example.com/_s_/dyn/Driver_initialized?browserType=ie"
Jun 21, 2013 10:41:41 AM net.sf.sahi.test.ProcessHelper$PIDGatherer run
INFO: PIDs: [6300, 1260]; 577 ms
Jun 21, 2013 10:41:48 AM net.sf.sahi.test.ProcessHelper kill
INFO: Kill: [6300, 1260]
Jun 21, 2013 10:41:49 AM net.sf.sahi.test.ProcessHelper execute
INFO: "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -profile "D:/sahi_pro
/userdata/browser/ff/profiles/sahi0" -no-remote "http://sahi.example.com/_s_/dyn
/Driver_initialized?browserType=firefox"
Jun 21, 2013 10:41:55 AM net.sf.sahi.test.ProcessHelper$PIDGatherer run
INFO: PIDs: [5304]; 5617 ms
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handsh
ake
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 sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unk
nown Source)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor
.java:137)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor
.java:84)
at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:144)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:85)
at net.sf.sahi.ProxyProcessor.processConnect(ProxyProcessor.java:178)
at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:137)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:85)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(Unknown Source)
... 19 more
Jun 21, 2013 10:43:14 AM net.sf.sahi.RemoteRequestProcessor processHttp
WARNING: Returning CannotConnectResponse for: https://nlf-test.ext...net/
Sign In or Register to comment.