Webdriver: java.net.BindException: Address already in use: connect -


while running webdriver, 3 minutes running, following exception , webdriver crashes.

i using 1 webdriver instance , 1 firefoxdriver profile.

exception in thread "main" org.openqa.selenium.webdriverexception: java.net.bindexception: address in use: connect system info: os.name: 'windows xp', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_18' driver info: driver.version: remote         @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java: 341)         @ org.openqa.selenium.firefox.firefoxdriver.execute(firefoxdriver.java: 234)         @ org.openqa.selenium.remote.remotewebdriver.findelements(remotewebdriver.java: 173)         @ org.openqa.selenium.remote.remotewebdriver.findelementsbyxpath(remotewebdriver.java: 231)         @ org.openqa.selenium.by$6.findelements(by.java:200)         @ org.openqa.selenium.remote.remotewebdriver.findelements(remotewebdriver.java: 158)  caused by: java.net.bindexception: address in use: connect         @ java.net.plainsocketimpl.socketconnect(native method)         @ java.net.plainsocketimpl.doconnect(unknown source)         @ java.net.plainsocketimpl.connecttoaddress(unknown source)         @ java.net.plainsocketimpl.connect(unknown source)         @ java.net.sockssocketimpl.connect(unknown source)         @ java.net.socket.connect(unknown source)         @ org.apache.http.conn.scheme.plainsocketfactory.connectsocket(plainsocketfactory.java: 123)         @ org.apache.http.impl.conn.defaultclientconnectionoperator.openconnection(defaultclientconnectionoperator.java: 133)         @ org.apache.http.impl.conn.abstractpoolentry.open(abstractpoolentry.java: 149)         @ org.apache.http.impl.conn.abstractpooledconnadapter.open(abstractpooledconnadapter.java: 108)         @ org.apache.http.impl.client.defaultrequestdirector.execute(defaultrequestdirector.java: 415)         @ org.apache.http.impl.client.abstracthttpclient.execute(abstracthttpclient.java: 641)         @ org.openqa.selenium.remote.httpcommandexecutor.execute(httpcommandexecutor.java: 211)         @ org.openqa.selenium.firefox.internal.newprofileextensionconnection.execute(newprofileextensionconnection.java: 125)         @ org.openqa.selenium.firefox.firefoxdriver $lazycommandexecutor.execute(firefoxdriver.java:341)         @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java: 328)         ... 11 more  

you're running out of outbound ports. means you've performed thousands of outbound connections within 2 minutes. solution: use connection pool, or slow program down.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -