解决org.openqa.selenium.WebDriverException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms org.springframework.beans.BeanInstantiation
解决方法为将selenium-server-standalone-2.37.0.jar升级至selenium-server-standalone-2.41.0.jar即可。
下载地址:http://selenium-release.storage.googleapis.com/2.41/selenium-server-standalone-2.41.0.jar
这里是因为更新firefox所导致的问题,从27更新到28.0所致。
错误如下:
WARN <init>, HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values; consider using org.hibernate.id.UUIDGenerator instead
ERROR prepareTestInstance, Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@619eb7] to prepare test instance [com.infomorrow.AllUnitStory@fb182b]
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:99)
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:122)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:312)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:284)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sendReportPageStep' defined in file [D:\develop\webtest\target\classes\com\infomorrow\Step\SendReportPageStep.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.infomorrow.Step.SendReportPageStep]: Constructor threw exception; nested exception is java.lang.RuntimeException: org.openqa.selenium.WebDriverException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
addons.xpi-utils: XPI Database saved, setting schema version preference to 15
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi: Notifying XPI shutdown observers
*** LOG addons.manager: Async provider shutdown done
System JS : ERROR resource://ntab/NTabDB.jsm:224 - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAppShellService.hiddenDOMWindow]
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\Test3\AppData\Local\Temp\anonymous4320312143096799259webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: Directory state JSON differs: cache [{"name":"winreg-app-global","addons":{"fiddlerhook@fiddler2.com":{"descriptor":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","mtime":1393237590984,"rdfTime":1391542948000}}},{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1396345095646,"rdfTime":1394865255000}}},{"name":"app-profile","addons":{"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1396402581819,"rdfTime":1396402581788},"cehomepage@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cehomepage@mozillaonline.com","mtime":1396402582429,"rdfTime":1395130068000},"cemigration@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cemigration@mozillaonline.com.xpi","mtime":1396402582428},"cpmanager@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cpmanager@mozillaonline.com","mtime":1396402582741,"rdfTime":1395041894000}}}] state [{"name":"winreg-app-global","addons":{"fiddlerhook@fiddler2.com":{"descriptor":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","mtime":1393237590984,"rdfTime":1391542948000}}},{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1396345095646,"rdfTime":1394865255000}}},{"name":"app-profile","addons":{"cehomepage@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cehomepage@mozillaonline.com","mtime":1396402582429,"rdfTime":1395130068000},"cemigration@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cemigration@mozillaonline.com.xpi","mtime":1396402582428},"cpmanager@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cpmanager@mozillaonline.com","mtime":1396402582741,"rdfTime":1395041894000},"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1396402581819,"rdfTime":1396402581788}}}]
*** LOG addons.xpi-utils: Opening XPI database C:\Users\Test3\AppData\Local\Temp\anonymous4320312143096799259webdriver-profile\extensions.json
*** LOG addons.xpi-utils: Successfully read XPI database
*** LOG addons.xpi: No changes found
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.repository: No addons.json found.
*** LOG DeferredSave/addons.json: Save changes
*** LOG DeferredSave/addons.json: Starting timer
*** LOG DeferredSave/addons.json: Starting write
*** LOG DeferredSave/addons.json: Write succeeded
Command duration or timeout: 54.75 seconds
Build info: version: '2.37.0', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-18 09:51:02'
System info: host: 'Abby-PC', ip: '169.254.126.2', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_15'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1007)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:120)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:64)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:91)
... 25 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.infomorrow.Step.SendReportPageStep]: Constructor threw exception; nested exception is java.lang.RuntimeException: org.openqa.selenium.WebDriverException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
addons.xpi-utils: XPI Database saved, setting schema version preference to 15
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi: Notifying XPI shutdown observers
*** LOG addons.manager: Async provider shutdown done
System JS : ERROR resource://ntab/NTabDB.jsm:224 - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAppShellService.hiddenDOMWindow]
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\Test3\AppData\Local\Temp\anonymous4320312143096799259webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: Directory state JSON differs: cache [{"name":"winreg-app-global","addons":{"fiddlerhook@fiddler2.com":{"descriptor":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","mtime":1393237590984,"rdfTime":1391542948000}}},{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1396345095646,"rdfTime":1394865255000}}},{"name":"app-profile","addons":{"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1396402581819,"rdfTime":1396402581788},"cehomepage@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cehomepage@mozillaonline.com","mtime":1396402582429,"rdfTime":1395130068000},"cemigration@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cemigration@mozillaonline.com.xpi","mtime":1396402582428},"cpmanager@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cpmanager@mozillaonline.com","mtime":1396402582741,"rdfTime":1395041894000}}}] state [{"name":"winreg-app-global","addons":{"fiddlerhook@fiddler2.com":{"descriptor":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","mtime":1393237590984,"rdfTime":1391542948000}}},{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1396345095646,"rdfTime":1394865255000}}},{"name":"app-profile","addons":{"cehomepage@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cehomepage@mozillaonline.com","mtime":1396402582429,"rdfTime":1395130068000},"cemigration@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cemigration@mozillaonline.com.xpi","mtime":1396402582428},"cpmanager@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cpmanager@mozillaonline.com","mtime":1396402582741,"rdfTime":1395041894000},"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1396402581819,"rdfTime":1396402581788}}}]
*** LOG addons.xpi-utils: Opening XPI database C:\Users\Test3\AppData\Local\Temp\anonymous4320312143096799259webdriver-profile\extensions.json
*** LOG addons.xpi-utils: Successfully read XPI database
*** LOG addons.xpi: No changes found
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.repository: No addons.json found.
*** LOG DeferredSave/addons.json: Save changes
*** LOG DeferredSave/addons.json: Starting timer
*** LOG DeferredSave/addons.json: Starting write
*** LOG DeferredSave/addons.json: Write succeeded
Command duration or timeout: 54.75 seconds
Build info: version: '2.37.0', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-18 09:51:02'
System info: host: 'Abby-PC', ip: '169.254.126.2', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_15'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1000)
... 41 more
Caused by: java.lang.RuntimeException: org.openqa.selenium.WebDriverException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
addons.xpi-utils: XPI Database saved, setting schema version preference to 15
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi: Notifying XPI shutdown observers
*** LOG addons.manager: Async provider shutdown done
System JS : ERROR resource://ntab/NTabDB.jsm:224 - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAppShellService.hiddenDOMWindow]
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\Test3\AppData\Local\Temp\anonymous4320312143096799259webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: Directory state JSON differs: cache [{"name":"winreg-app-global","addons":{"fiddlerhook@fiddler2.com":{"descriptor":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","mtime":1393237590984,"rdfTime":1391542948000}}},{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1396345095646,"rdfTime":1394865255000}}},{"name":"app-profile","addons":{"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1396402581819,"rdfTime":1396402581788},"cehomepage@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cehomepage@mozillaonline.com","mtime":1396402582429,"rdfTime":1395130068000},"cemigration@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cemigration@mozillaonline.com.xpi","mtime":1396402582428},"cpmanager@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cpmanager@mozillaonline.com","mtime":1396402582741,"rdfTime":1395041894000}}}] state [{"name":"winreg-app-global","addons":{"fiddlerhook@fiddler2.com":{"descriptor":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","mtime":1393237590984,"rdfTime":1391542948000}}},{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1396345095646,"rdfTime":1394865255000}}},{"name":"app-profile","addons":{"cehomepage@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cehomepage@mozillaonline.com","mtime":1396402582429,"rdfTime":1395130068000},"cemigration@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cemigration@mozillaonline.com.xpi","mtime":1396402582428},"cpmanager@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cpmanager@mozillaonline.com","mtime":1396402582741,"rdfTime":1395041894000},"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1396402581819,"rdfTime":1396402581788}}}]
*** LOG addons.xpi-utils: Opening XPI database C:\Users\Test3\AppData\Local\Temp\anonymous4320312143096799259webdriver-profile\extensions.json
*** LOG addons.xpi-utils: Successfully read XPI database
*** LOG addons.xpi: No changes found
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.repository: No addons.json found.
*** LOG DeferredSave/addons.json: Save changes
*** LOG DeferredSave/addons.json: Starting timer
*** LOG DeferredSave/addons.json: Starting write
*** LOG DeferredSave/addons.json: Write succeeded
Command duration or timeout: 54.75 seconds
Build info: version: '2.37.0', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-18 09:51:02'
System info: host: 'Abby-PC', ip: '169.254.126.2', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_15'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
at com.infomorrow.help.WebDriverHelp.getWebDriver(WebDriverHelp.java:45)
at com.infomorrow.Step.SendReportPageStep.<init>(SendReportPageStep.java:259)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
... 43 more
Caused by: org.openqa.selenium.WebDriverException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
addons.xpi-utils: XPI Database saved, setting schema version preference to 15
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi: Notifying XPI shutdown observers
*** LOG addons.manager: Async provider shutdown done
System JS : ERROR resource://ntab/NTabDB.jsm:224 - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAppShellService.hiddenDOMWindow]
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\Test3\AppData\Local\Temp\anonymous4320312143096799259webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: Directory state JSON differs: cache [{"name":"winreg-app-global","addons":{"fiddlerhook@fiddler2.com":{"descriptor":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","mtime":1393237590984,"rdfTime":1391542948000}}},{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1396345095646,"rdfTime":1394865255000}}},{"name":"app-profile","addons":{"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1396402581819,"rdfTime":1396402581788},"cehomepage@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cehomepage@mozillaonline.com","mtime":1396402582429,"rdfTime":1395130068000},"cemigration@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cemigration@mozillaonline.com.xpi","mtime":1396402582428},"cpmanager@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cpmanager@mozillaonline.com","mtime":1396402582741,"rdfTime":1395041894000}}}] state [{"name":"winreg-app-global","addons":{"fiddlerhook@fiddler2.com":{"descriptor":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","mtime":1393237590984,"rdfTime":1391542948000}}},{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1396345095646,"rdfTime":1394865255000}}},{"name":"app-profile","addons":{"cehomepage@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cehomepage@mozillaonline.com","mtime":1396402582429,"rdfTime":1395130068000},"cemigration@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cemigration@mozillaonline.com.xpi","mtime":1396402582428},"cpmanager@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cpmanager@mozillaonline.com","mtime":1396402582741,"rdfTime":1395041894000},"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1396402581819,"rdfTime":1396402581788}}}]
*** LOG addons.xpi-utils: Opening XPI database C:\Users\Test3\AppData\Local\Temp\anonymous4320312143096799259webdriver-profile\extensions.json
*** LOG addons.xpi-utils: Successfully read XPI database
*** LOG addons.xpi: No changes found
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.repository: No addons.json found.
*** LOG DeferredSave/addons.json: Save changes
*** LOG DeferredSave/addons.json: Starting timer
*** LOG DeferredSave/addons.json: Starting write
*** LOG DeferredSave/addons.json: Write succeeded
Command duration or timeout: 54.75 seconds
Build info: version: '2.37.0', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-18 09:51:02'
System info: host: 'Abby-PC', ip: '169.254.126.2', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_15'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:111)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)
at com.infomorrow.help.WebDriverHelp.getWebDriver(WebDriverHelp.java:21)
... 49 more
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:
addons.xpi-utils: XPI Database saved, setting schema version preference to 15
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi: Notifying XPI shutdown observers
*** LOG addons.manager: Async provider shutdown done
System JS : ERROR resource://ntab/NTabDB.jsm:224 - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAppShellService.hiddenDOMWindow]
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\Test3\AppData\Local\Temp\anonymous4320312143096799259webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: Directory state JSON differs: cache [{"name":"winreg-app-global","addons":{"fiddlerhook@fiddler2.com":{"descriptor":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","mtime":1393237590984,"rdfTime":1391542948000}}},{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1396345095646,"rdfTime":1394865255000}}},{"name":"app-profile","addons":{"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1396402581819,"rdfTime":1396402581788},"cehomepage@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cehomepage@mozillaonline.com","mtime":1396402582429,"rdfTime":1395130068000},"cemigration@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cemigration@mozillaonline.com.xpi","mtime":1396402582428},"cpmanager@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cpmanager@mozillaonline.com","mtime":1396402582741,"rdfTime":1395041894000}}}] state [{"name":"winreg-app-global","addons":{"fiddlerhook@fiddler2.com":{"descriptor":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","mtime":1393237590984,"rdfTime":1391542948000}}},{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1396345095646,"rdfTime":1394865255000}}},{"name":"app-profile","addons":{"cehomepage@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cehomepage@mozillaonline.com","mtime":1396402582429,"rdfTime":1395130068000},"cemigration@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cemigration@mozillaonline.com.xpi","mtime":1396402582428},"cpmanager@mozillaonline.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\cpmanager@mozillaonline.com","mtime":1396402582741,"rdfTime":1395041894000},"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\Test3\\AppData\\Local\\Temp\\anonymous4320312143096799259webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1396402581819,"rdfTime":1396402581788}}}]
*** LOG addons.xpi-utils: Opening XPI database C:\Users\Test3\AppData\Local\Temp\anonymous4320312143096799259webdriver-profile\extensions.json
*** LOG addons.xpi-utils: Successfully read XPI database
*** LOG addons.xpi: No changes found
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.repository: No addons.json found.
*** LOG DeferredSave/addons.json: Save changes
*** LOG DeferredSave/addons.json: Starting timer
*** LOG DeferredSave/addons.json: Starting write
*** LOG DeferredSave/addons.json: Write succeeded
Build info: version: '2.37.0', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-18 09:51:02'
System info: host: 'Abby-PC', ip: '169.254.126.2', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_15'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:108)
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)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:62)
at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:56)
at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:215)
at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:169)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
解决org.openqa.selenium.WebDriverException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms org.springframework.beans.BeanInstantiation的更多相关文章
- Selenium2学习-038-firefox、webdriver版本不对称问题解决:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055
今天有个朋友在群里问,为何脚本运行不通过,其脚本操作步骤简单描述如下: 1.启动火狐浏览器 2.打开百度 3.查询框输入关键字 4.点击按钮[百度一下] 脚本挺简单的,其给出的应用报错信息如下所示: ...
- Selenium2学习-007-WebUI自动化实战实例-005-解决 Firefox 版本不兼容:org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary
此文主要讲述 Java 运行 Selenium 脚本时,因 Friefox 浏览器版本与 selenium-server-standalone-x.xx.x.jar 不兼容引起的 org.openqa ...
- WebDriver:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms
今天尝试最新的webDriver与fireFox搭配: 运行代码时出现如下的问题,但是浏览器却可以打开: org.openqa.selenium.firefox.NotConnectedExcepti ...
- selenium 运行之后错误提示Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output
错误提示: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port ...
- selenium 问题:Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms
问题:Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms 原因: selenium-server-standalone-x. ...
- (org.openqa.selenium.WebDriverException: Unable to launch the app: Error: Trying to start logcat capture but it's already started! )错误解决办法
新增: capabilities.setCapability("autoLaunch",false); 将setup中的: driver = new AndroidDriver(n ...
- selenium运行火狐报错FirefoxDriver : Unable to connect to host 127.0.0.1 on port 7055
摘要: 这是个常见的启动firefoxdriver的问题,具体的错误日志如下,其实原因很简单,就是你的Selenium版本和firefox 不兼容了. Firefox 版本太高了, 请及时查看你安装的 ...
- selenium在Eclipse中打开fireFox浏览器是报报错connect to host 127.0.0.1 on port 7055
1.相信很多同学刚接触selenium时,在Eclipse中打开fireFox浏览器是报报错: org.openqa.selenium.firefox.NotConnectedException: U ...
- 报错org.openqa.selenium.WebDriverException: disconnected: unable to connect to renderer解决方法
做自动化时经常会遇到不兼容的问题,比如以下简单的脚本,主要是打开浏览器,然后最大化窗口,打开百度,输入内容搜索,代码如下: package com.gs.selenium; import org.op ...
随机推荐
- 微信接口access_token
//调用聚合网笑话接口 $url = 'http://japi.juhe.cn/joke/img/text.from?page=&pagesize=2&key=f0d06a1fe45b ...
- mysql--1130ERROR
问题一:mysql 用户登录不用验证密码(用户已设密码) 安装好mysql 后,我发现我设立了密码,同样可以不用密码就能登陆 cmd>mysql cmd>select current_us ...
- linux下生成rsa密钥的方法
首先生成密钥,用命令ssh-keygen –t rsa 运行后可以一直空格,生成密钥,id_rsa和id_rsa.pub文件 ,默认放在/root/.ssh/下,.ssh文件是隐藏的,要显示隐藏文件才 ...
- java中向JTextArea中添加滚动条(垂直的和水平的)
这次在研究java的swing类时,在做一个实例时,发现了JTextArea中添加滚动条的问题,经过网上查找资料和自己测试发现有以下用法: 1.首先应该把JTextArea添加到一个JScrollPa ...
- Tomcat - SSL操作大全
简介 制作CSR申请文件 安装证书文件 客户证书认证 证书的备份(导出) 证书的恢复(导入) 简介 Tomcat 服务器是一个免费的开放源代码的Web 应用服务器,目前最新版本是6.0.20(截止 ...
- OSX 10.11 cocoapods安装命令: sudo gem install -n /usr/local/bin cocoapods
10.11 cocoapods安装命令: sudo gem install -n /usr/local/bin cocoapods
- [CF225C] Barcode (简单DAG上dp)
题目链接:http://codeforces.com/problemset/problem/225/C 题目大意:给你一个矩阵,矩阵中只有#和.两种符号.现在我们希望能够得到一个新的矩阵,新的矩阵满足 ...
- tp框架 中的时间 查询范围
$where['add_time'] = array(array('egt',$starttime),array('elt',$endtime),'AND');
- submit异步提交 回调的方法
背景: mvc模式下,当submit表单的时候,后台Control自动绑定Model类,但是如果不用submit来提交,改用ajax提交的时候,后台Control无法获取前台form表单内相应Name ...
- Java基础以及与C++的一些对比
这两天回忆一些Java基础,感觉自己很多地方都不是很牢固,也花费在不少时间和不少流量在手机上查资料. 还是写下来这些东西以免再忘记. 同时还是要记住多动手,编程最重要的就是动手敲啊,有想法有疑问就要自 ...