Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/353.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
javax.net.ssl.SSLHandshakeException:握手支持期间远程主机关闭连接_Java_Macos_Selenium Webdriver_Appium_Appium Ios - Fatal编程技术网

javax.net.ssl.SSLHandshakeException:握手支持期间远程主机关闭连接

javax.net.ssl.SSLHandshakeException:握手支持期间远程主机关闭连接,java,macos,selenium-webdriver,appium,appium-ios,Java,Macos,Selenium Webdriver,Appium,Appium Ios,我正在尝试使用appium(1.5.3版)在mac上自动化android应用程序。我得到下面提到的错误。请帮忙 WebDriverException:javax.net.ssl.SSLHandshakeException:远程主机 握手期间关闭连接生成信息:版本:“未知”, 版本:“1969d75”,时间:“2016-10-18 09:43:45-0700”系统信息: 主机:'AKASHs MacBook Pro.local',ip:'192.168.1.4',os.name:'Mac os X

我正在尝试使用appium(1.5.3版)在mac上自动化android应用程序。我得到下面提到的错误。请帮忙

WebDriverException:javax.net.ssl.SSLHandshakeException:远程主机 握手期间关闭连接生成信息:版本:“未知”, 版本:“1969d75”,时间:“2016-10-18 09:43:45-0700”系统信息: 主机:'AKASHs MacBook Pro.local',ip:'192.168.1.4',os.name:'Mac os X',os.arch:'x86_64',os.version:'10.11.6',java.version: “1.8.0_121”驱动程序信息:Driver.version:AndroidDriver at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:84) 在 org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601) 在 io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42) 在io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)处 io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1) 在 org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241) 在 org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:128) 在 org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java:141) 在 java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38) 在io.appium.java_client.AppiumDriver.(AppiumDriver.java:90)处 appium.java_client.AppiumDriver.(AppiumDriver.java:128)位于 android.AndroidDriver.(AndroidDriver.java:72)位于 test1.test1.setUp(test1.java:33)位于 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)位于 invoke(NativeMethodAccessorImpl.java:62) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 位于java.lang.reflect.Method.invoke(Method.java:498) org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104) 位于org.testng.internal.Invoker.invokeMethod(Invoker.java:645) org.testng.internal.Invoker.invokeTestMethod(Invoker.java:851)位于 org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1177)位于 org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129) 位于org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112) 位于org.testng.TestRunner.privateRun(TestRunner.java:756) org.testng.TestRunner.run(TestRunner.java:610)位于 org.testng.SuiteRunner.runTest(SuiteRunner.java:387)位于 org.testng.SuiteRunner.runsequential(SuiteRunner.java:382)位于 org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)位于 org.testng.SuiteRunner.run(SuiteRunner.java:289)位于 org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)位于 org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)位于 org.testng.testng.runSuitesSequentially(testng.java:1293)位于 org.testng.testng.runSuitesLocal(testng.java:1218)位于 org.testng.testng.runSuites(testng.java:1133)位于 org.testng.testng.run(testng.java:1104)位于 org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132) 位于org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236) org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)由以下原因引起: javax.net.ssl.SSLHandshakeException:远程主机关闭连接 在握手时 sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:992)位于 sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) 在 sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) 在 SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) 在 org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394) 在 org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353) 在 org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141) 在 org.apache.http.impl.conn.poolighttpclientconnectionmanager.connect(poolighttpclientconnectionmanager.java:353) 在 org.apache.http.impl.execchain.MainClientExec.buildRoute(MainClientExec.java:380) 在 org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) 在 org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) 位于org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) 在 org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) 在 org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) 在 org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71) 在 org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) 在 org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:142) 在 org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:88) 在 org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:108) 在 org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:64) 在 org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141) 在 io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:69) ... 37更多原因:java.io.EOFException:SSL对等关闭 在sun.security.ssl.InputRecord.read(InputRecord.java:505)中出现错误 位于sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) ... 58多


检查您正在使用的URL,它不应包含https,而应使用http。我试过它对我有用。

它与java本身没有任何关系。检查你的证书 “OpenSSL s_客户端-连接443”

确保验证代码为0 如果它不是零;(20) 这可能意味着(我猜是他)