SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

How to resolve the Error forwarding the new session Entry exception in RemoteWebdriver Grid #8051

Open lukeis opened 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 8051

I'm running my test on grid using IE11 using selenium webdriver 2.43.1 , testng 6.7
and jdk1.7
I have the following code.

     DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
                             capabilities.setCapability("ie.ensureCleanSession", true);
                             capabilities.setCapability("ie.setProxyByServer", true);
      capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,
             true);
        WebDriver driver = new RemoteWebDriver(ip_adrees, capabilities);
        driver.get("http://www.google.com");
        WebElement element = driver.findElement(By.name("q"));
        element.sendKeys("Cheese!");// This line do not execute i.e stops here
        element.submit();
        System.out.println("Page title is: " + driver.getTitle());
        driver.quit();

Batch file running on grid :-

     java -jar selenium-server-standalone-2.43.1.jar -role node -port 80 -
       Dwebdriver.chrome.driver=C:\chrome_user\chromedriver.exe -
       Dwebdriver.ie.driver=C:\win_user\IEDriverServer.exe -hub 
       http://***.**.**.**:8080/grid/console  -browser browserName="internet 
       explorer",version=10,maxInstances=5,platform=WINDOWS

While running this code i'm getting the exception:-

        Caused by: org.openqa.selenium.WebDriverException: Error forwarding the new
session Entry [id:414740][route:{}->http://11.122.90.22:80][state:null] has not been
leased from this pool
        Build info: version: '2.43.1', revision: '5163bceef1bc36d43f3dc0b83c88998168a363a0',
time: '2014-09-10 09:43:55'

    System info: host: 'KAKU_SUlB', ip: '10.222.100.88', os.name: 'Windows 8.1', os.arch:
'amd64', os.version: '6.3', java.version: '1.7.0_55'
    Driver info: driver.version: unknown
        at org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:114)
        at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:83)
        at org.openqa.grid.web.servlet.DriverServlet.doPost(DriverServlet.java:67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.seleniumhq.jetty7.servlet.ServletHolder.handle(ServletHolder.java:565)
        at org.seleniumhq.jetty7.servlet.ServletHandler.doHandle(ServletHandler.java:479)
        at org.seleniumhq.jetty7.server.session.SessionHandler.doHandle(SessionHandler.java:225)
        at org.seleniumhq.jetty7.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
        at org.seleniumhq.jetty7.servlet.ServletHandler.doScope(ServletHandler.java:406)
        at org.seleniumhq.jetty7.server.session.SessionHandler.doScope(SessionHandler.java:186)
        at org.seleniumhq.jetty7.server.handler.ContextHandler.doScope(ContextHandler.java:965)
        at org.seleniumhq.jetty7.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.seleniumhq.jetty7.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
        at org.seleniumhq.jetty7.server.Server.handle(Server.java:349)
        at org.seleniumhq.jetty7.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452)
        at org.seleniumhq.jetty7.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:47)
        at org.seleniumhq.jetty7.server.AbstractHttpConnection.content(AbstractHttpConnection.java:894)
        at org.seleniumhq.jetty7.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:948)
        at org.seleniumhq.jetty7.http.HttpParser.parseNext(HttpParser.java:857)
        at org.seleniumhq.jetty7.http.HttpParser.parseAvailable(HttpParser.java:235)
        at org.seleniumhq.jetty7.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:66)
        at org.seleniumhq.jetty7.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:254)
        at org.seleniumhq.jetty7.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)
        at org.seleniumhq.jetty7.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)
        at java.lang.Thread.run(Thread.java:745)

    ===============================================
        Default test
        Tests run: 1, Failures: 0, Skips: 1
    ===============================================

How can i resolve it?

Reported by anuj.iec.2010 on 2014-10-16 17:20:41

lukeis commented 8 years ago

Reported by barancev on 2014-10-19 11:27:15

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 17:47:30