org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

17 April, 2014
I was using selenium 2.35 jar files for my tests. When I tried running the same tests today without any code changes, I got the below exception.


org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:  
*** LOG addons.manager: Application has been upgraded  
*** 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: 
*** LOG addons.xpi: checkForChanges  
*** LOG addons.xpi-utils: Opening database 
*** LOG addons.xpi-utils: Creating database schema  
*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile  
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global  
*** LOG addons.xpi: Updating database with changes to installed add-ons  
*** LOG addons.xpi-utils: Updating add-on states  
*** LOG addons.xpi-utils: Writing add-ons list  
*** LOG addons.xpi: shutdown  
*** LOG addons.xpi-utils: shutdown  
*** LOG addons.xpi-utils: Database closed  
*** 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: 
*** LOG addons.xpi: checkForChanges  
*** LOG addons.xpi: No changes found  

I figured out that the exception was occurring because of the old version of the selenium jar file. I downloaded the latest selenium 2.41 jar file and added it to my project buildpath. This resolved the error!

No comments:

Post a Comment