I have call new instance firefox browser by Selenium webdriver
driver = new FirefoxDriver();
but there are a error
It looks like someone has a bugfix in the pipeline for this as well. https://github.com/SeleniumHQ/selenium/commit/6fc17a0cba238af9d76f5fe6e32f73ac8958c19e
Even I was facing the same issue, its related to compatibility issue,I just downloaded latest version of webdriver(i.e Selenium-java-2.46.0) and firefox v 38.0.5, jdk(1.8_31) n it worked.
Seems like a compatibility issue to me. Firefox 38 is not officially supported by Selenium 2.45.
Downgrade to 35 or lower from here. You can also find the Selenium
changelog here. See another answer here.
I've same problem on Firefor 47.0 (stub). Reinstalling doesn't solve problem.
Update to 47.0.1 or download Firefox 45.0 and selenium will work