无法在45000 ms后连接到端口7055上的主机127.0.0.1。与FF版本26.0和硒独立瓶2.39 [英] Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. with FF version 26.0 and selenium standalone jar 2.39

查看:292
本文介绍了无法在45000 ms后连接到端口7055上的主机127.0.0.1。与FF版本26.0和硒独立瓶2.39的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的AWS unix机器上安装FF版本26.0来连接到硒2.30,但是当我启动我的客户机时,另外,当我用硒独立的jar 2.38.0试试,它在一两天之后的一段时间内工作正常,但是在2.38.0以后也开始给出错误。不知道为什么发生这种情况?任何想法??

项目是我有一个multithreadin应用程序,其中客户端不断执行一些线程,ping一些URLS和所有,它不断发生,除非发生像下面的问题。

 原因:org.openqa.selenium.remote.ErrorHandler $ UnknownServerException:无法连接到端口7055上的主机127.0.0.1 45000毫秒后。 Firefox控制台输出:
错误:未指定显示
错误:未指定显示

构建信息:版本:'unknown',修订版本:'unknown',时间:'unknown'
系统信息:os.name:'Linux',os.arch:'amd64',os.version:'3.4.76-65.111.amzn1.x86_64',java.version:'1.7.0_51'
驱动程序信息:driver.version:FirefoxDriver
位于org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
位于org.openqa.selenium.firefox.FirefoxDriver。 startClient(FirefoxDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver。< init>(RemoteWebDriver.java:110)
at org.openqa.selenium.firefox.FirefoxDriver。< ; init>(FirefoxDriver.java:197)
at org.openqa.selenium.firefox.FirefoxDriver。< init>(FirefoxDriver.java:190)
at org.openqa.selenium.firefox.FirefoxDriver 。< init>(FirefoxDriver.java:108)


解决方案

更新你的硒罐。
新版本的firefox(或不同的浏览器)不支持硒罐的旧罐子。

同时下载
Selenium Server(以前的Selenium RC服务器)
Selenium Client& WebDriver语言绑定



将它们替换为您正在使用的旧罐子。更新你的mozilla也可以得到更新的结果。

来源: - http: //docs.seleniumhq.org/download/


I am trying to connect to selenium 2.30 with FF version 26.0 installed in my AWS unix machine but I am getting below error when I start both my client which access selenium.

Also, when I try the same with selenium standalone jar 2.38.0, it works fine but suddenely after some time in a day or two, it starts giving below error with 2.38.0 as well. Not sure why this is happening? Any idea??

project is I have a multithreadin app wherein client keeps executing some threads which pings some URLS and all, it keeps on happening unless some issue like below occurs.

Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: Unable to connect to host 127.0.0.1     on port 7055 after 45000 ms. Firefox console output:
Error: no display specified
Error: no display specified

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.4.76-65.111.amzn1.x86_64', java.version:  '1.7.0_51'
 Driver info: driver.version: FirefoxDriver
    at      org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:250)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:197)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:190)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:108)

解决方案

Update your selenium jars. The new version of firefox(Or different browser) is not supporting old jars of selenium.

Download both Selenium Server (formerly the Selenium RC Server) Selenium Client & WebDriver Language Bindings

Replace them with old jars you are using. Update your mozilla also so you can get the updated results

source :- http://docs.seleniumhq.org/download/

这篇关于无法在45000 ms后连接到端口7055上的主机127.0.0.1。与FF版本26.0和硒独立瓶2.39的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆