提高java开发效率

收集一些能提高java程序员开发效率的工具和文章。
1、关于调试
1)Java程序员应该知道的10个调试技巧
http://www.csdn.net/article/2012-09-03/2809495-Java-Debugging-Tips-with-Eclipse

selenium无法启动org.openqa.selenium.SessionNotCreatedException:session not created exception

环境:win7+Eclipse Neon+selenium webdriver 2.53
描述
webdriver已经正常运行了好多天了,最近系统装了itunes,并且重启了一次机器,估计重启时windows update了。再次开机时,发现原来的测试用例运行不了。
提示如下错误:

Exception in thread “main” org.openqa.selenium.SessionNotCreatedException: session not created exception
from unknown error: Runtime.executionContextCreated has invalid ‘context’: {“auxData”:{“frameId”:”7068.1″,”isDefault”:true},”id”:1,”name”:””,”origin”:”://”}
(Session info: chrome=54.0.2840.71)
(Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.54 seconds
Build info: version: ‘2.53.0’, revision: ’35ae25b1534ae328c771e0856c93e187490ca824′, time: ‘2016-03-15 10:43:46’
System info: host: ‘choochoo’, ip: ‘10.1.200.54’, os.name: ‘Windows 7’, os.arch: ‘x86’, os.version: ‘6.1’, java.version: ‘1.8.0_91’
Driver info: org.openqa.selenium.chrome.ChromeDriver
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:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:144)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:170)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:159)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:116)
at com.happy3w.autobuy.util.WebDriverUtil.getWebDriver(WebDriverUtil.java:30)
at driver.Console.main(Console.java:15)

解决办法:
解决谤法:更新chromedrive2.25版本,即可。开始用了2.9发现与selenium2.53版本不匹配。
补充
如果webdriver是用remotedriver实例化,则会提示如下错误,排除地址错误或者服务器没有启动的因素,原因跟上面是一样的,更换版本就好了。
Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure