-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selenium Java Client (v3.9.1) with IEDriverServer v3.9.0.0 (64-bit) crashes with org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:28286 #5519
Comments
I also am having this exact issue. After downgrading to 3.8 I no longer get this issue and the driver launches the browser correctly |
As an additional data point, what happens if you set the |
Setting up java.net.preferIPv4Stack to true through the following line :
Two popup comes out as follows : |
Same problem here. Downgrading to 3.8 now. |
I had the same problem. Switching to a different WebDriver (to 3.7.0) solved the problem for me (IE 11). |
Can someone please generate a TRACE-level log file from IEDriverServer.exe showing a session that reproduces the crash? I am utterly unable to reproduce the issue in my environment. |
I have seen the same problem with Selenium 3.10.0 in combination with the IEDriverServer 3.9.0 and 3.10.0 x64. With an older IEDriverServer 3.8.0 or with the Win32 version it worls OK (or at least, IE is started and I get a different error which I am still investigating). Setup is through Maven with selenium-server 3.10.0. Code is a minor adaptation from https://www.seleniumhq.org/docs/03_webdriver.jsp to test a few different drivers: Traces for 3.8 and 3.10 in both Win32 and x64 are attached: |
@jochemd Thanks for the logs. I am still unable to reproduce this with the 64-bit driver executable. I've added some additional logging to the new session command handler to try to narrow down where the issue might be. Can you please retry the test, and capture the trace-level logs using 3.11.0.0 of the IE driver (available later today). |
@jimevans Behaviour still the same for me: 3.11.0 Win32 starts the browser correctly, navigates to Google and then throws an exception because it can't find the search field (which might be another bug). 3.11.0 x64 gives a timeout before the browser is even started. IEDriverServer_Win32_3.11.0.console.log |
@joechemd Thank you for the updated logs. That does give me more information than I had before. I still can’t repro the issue, but I’ll take another look, now that I have a better sense of where the driver is crashing. |
^^ so that seems to indicate that client is preferring IPv6 for localhost... this kinda sounds like the server is only binding to the IPv4 socket while client is trying to connect via IPv6. Perhaps the code is not specifying dual mode sockets? I am also curious about the OP's configuration... the following would be helpful to know:
|
@cgoldberg IEDriverServer.exe listens on both the IPv4 and IPv6 loopbacks. The http connection is being made, as evidenced in the logs. Something is just crashing in the driver internals. |
Fixed in 13d8f8b. |
I just testd 3.11.1 and that fixed the issue for me. |
I was using 64bit IE Driver - 3.9.0 and I encountered below issue. Issue resolved when I used 32bit IE Driver. |
Hi, Even I am facing similar issue when i started using IEdriver 32 bit 3.13.0. with selenium WEBdriver 3.13.0 org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:15743 Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:24:21.231Z' System info: host: 'QSG057', ip: '172.16.26.211', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '10.0.1' Driver info: driver.version: RemoteWebDriver at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:92) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548) at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:276) at pages.LoginPage.launchURL(LoginPage.java:78) at requirements.creatingAndManagingCoalitions.CreatingAndManagingTheCoalitionincidents.incidentIsAssociatedToCoalitionIncidentInformationIsUpdatedInRecentEventsAndEventLog_223662(CreatingAndManagingTheCoalitionincidents.java:1198) Caused by: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:15743 at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:242) at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:160) at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:257) at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135) at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200) at okhttp3.RealCall.execute(RealCall.java:77) at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:105) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:155) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) ... 30 more Caused by: java.net.ConnectException: Connection refused: connect at java.base/java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) at java.base/java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.base/java.net.PlainSocketImpl.connect(Unknown Source) at java.base/java.net.SocksSocketImpl.connect(Unknown Source) at java.base/java.net.Socket.connect(Unknown Source) at okhttp3.internal.platform.Platform.connectSocket(Platform.java:129) at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:240) ... 50 more ... Removed 26 stack frames Can you please look into this issue? |
Yup same issue with IE 3.13.0 32-bit and Selenium 3.13.0
followed by....
|
Had same problem here. Just figured out that if the IEDriverServer process is killed manually then the tests run fine . If the process is running before your test starts its throwing the below rg.openqa.selenium.WebDriverException: java.net.SocketException: Connection reset Can anyone can confirm the same. |
the same bug for me in IE v. 3.9. |
Meta - Selenium Java Client (v3.9.1) with IEDriverServer v3.9.0.0 (64-bit) crashes with org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:28286
IEDriverServer CHANGELOG mentions :
But IEDriverServer_Win32_3.9.0 and IEDriverServer_x64_3.9.0 was never pushed to Download TAB of seleniumhq.org
@jimevans on stackoverflow discussion Can't launch Selenium IE Driver after upgrading to version 3.9 confirmed 3.9.0.0 is official.
Thought IEDriverServer_Win32_3.9.0 executes smooth but IEDriverServer_x64_3.9.0 crashes with
org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:28286
OS: Windows 8 - Pro
Selenium Version: 3.9.0.1
Browser: Internet Explorer v10.x
Browser Version: Internet Explorer v10.x
Expected Behavior - IEDriverServer v3.9.0.0 (64-bit) shouldn't crash with org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:28286
Actual Behavior - IEDriverServer v3.9.0.0 (64-bit) crashes with org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:28286
Steps to reproduce -
MCVE :
Error Stack Trace :
The text was updated successfully, but these errors were encountered: