Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

"Error forwarding the new session Error forwarding the request Connection to http://10.69.113.209:5551 refused" #4185

Closed
lukeis opened this issue Mar 3, 2016 · 22 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 4185

 This issue is very high priority for me and it is so weird. When I run my test cases
at my home they are working and when I run in my office I get the below error. Please
help me ASAP

"Error forwarding the new session Error forwarding the request Connection to http://10.1.10.40:5551
refused"

log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager).
log4j:WARN Please initialize the log4j system properly.
org.openqa.selenium.WebDriverException: Error forwarding the new session Error forwarding
the request Connection to http://10.1.10.40:5551 refused
Command duration or timeout: 21.17 seconds
Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 17:28:14'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version:
'1.7.0'
Driver info: driver.version: RemoteWebDriver
    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:188)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:472)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:155)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:107)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:115)
    at com.scripps.selenium.ScrippsTestCase.startSession(ScrippsTestCase.java:102)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:551)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:640)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:894)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1219)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:767)
    at org.testng.TestRunner.run(TestRunner.java:617)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
    at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
    at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.openqa.grid.common.exception.GridException: Error forwarding the new
session Error forwarding the request Connection to http://10.1.10.40:5551 refused
    at org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:111)
    at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:84)
    at org.openqa.grid.web.servlet.DriverServlet.doPost(DriverServlet.java:68)
    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)
    ... 1 more
null
FAILED CONFIGURATION: @BeforeMethod startSession("localhost", 4444, "firefox", "http://demo26.orangehrm.com",
"WINDOWS")
java.lang.NullPointerException
    at com.scripps.selenium.ScrippsSelenium.setTimeout(ScrippsSelenium.java:588)
    at com.scripps.selenium.ScrippsTestCase.startSession(ScrippsTestCase.java:121)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:551)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:640)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:894)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1219)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:767)
    at org.testng.TestRunner.run(TestRunner.java:617)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
    at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
    at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

SKIPPED CONFIGURATION: @BeforeMethod setUp
SKIPPED CONFIGURATION: @AfterMethod tearDown
SKIPPED: testSample1 on null(com.example.tests.sample)

===============================================
    Test4
    Tests run: 1, Failures: 0, Skips: 1
    Configuration Failures: 1, Skips: 2
===============================================


===============================================
runThisTestSuite
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 2
===============================================

[TestNG] Time taken by [TestListenerAdapter] Passed:0 Failed:0 Skipped:0]: 21 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@6971770: 24 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@15e8d410: 11 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@354742ee: 33 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@28439b37: 232 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter@75b7e189: 7 ms



Selenium version: 24
OS:Windows7
Browser:All (Firefox, IE, Google Chrome)
Browser version: Firefox 13.0.1 and all older versions, IE 8


Reported by venkat.gangineni on 2012-07-02 16:56:19

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Hello,

do you actually have access to http://10.1.10.40 ? 
for localhost on windows it looks something like this http://127.0.0.1

i think what may be happening is that you set your actual ip address to be the source
which would work on your home machine that has that ip address, but wouldn't work if
you were trying to access it remotely.

hopefully if you change the ip address you connect to, too the localhost it should
work unless i'm missing something.

Reported by williamalexandergreer on 2012-07-02 19:31:37

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Thanks for the reply William, two things you have to notice here are

I am not trying to access remotely

1) http://10.1.10.40 this IP is my office's IP:  when I am in office, I am connected
to the office network whose ip is 10.1.10.40. Few days back I was able to run same
test cases without any changes in the code but now I am getting this error

2) you are right my home ip is something like 127.0.0.1  but when I am in my home,
I am connected to my home network and running the tests they are working  without any
error

Reported by venkat.gangineni on 2012-07-02 20:44:41

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2012-07-03 21:25:30

  • Labels added: Component-Grid

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by david.burns@theautomatedtester.co.uk on 2012-07-06 19:08:44

  • Labels removed: Status-Untriaged

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Even i am facing same issue...can someone help me on this

Reported by deepthi.balguri on 2012-07-26 10:37:58

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Deepthi,

I think its because of some firewall settings. Try to disable ur firewall and run them.

some times I am able to run my test cases and some times I get the above error. 

I disabled Symantec end protection on my machine and it worked.

Reported by venkat.gangineni on 2012-07-26 12:49:52

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I am still getting this error; plzzzzzzzzzz some body help meeeeee

Reported by venkat.gangineni on 2012-07-26 18:03:36

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I am still getting this error; plzzzzzzzzzz some body help meeeeee

Reported by venkat.gangineni on 2012-07-26 18:03:45

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

This is almost certainly a network issue.  Can you telnet to the IP address on that
port?

Reported by nirvdrum on 2012-07-26 18:17:33

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

what do you mean by 

"Can you telnet to the IP address on that port?"

"the weird thing is, my test cases work every time from when I run them from my home."

the IP addrees on that port is : 10.69.113.204. I am again pasting the error message
that I am getting

org.openqa.selenium.WebDriverException: Error forwarding the new session Error forwarding
the request Connection to http://10.69.113.204:5552 refused
Command duration or timeout: 70.88 seconds
Build info: version: '2.22.0', revision: '17049', time: '2012-05-29 13:32:46'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version:
'1.6.0_21'
Driver info: driver.version: RemoteWebDriver
    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:188)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:458)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:139)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:102)
    at com.scripps.selenium.ScrippsTestCase.startSession(ScrippsTestCase.java:102)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:543)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:212)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:631)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:883)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1208)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:758)
    at org.testng.TestRunner.run(TestRunner.java:613)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
    at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
    at org.testng.internal.thread.ThreadUtil$CountDownLatchedRunnable.run(ThreadUtil.java:165)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Reported by venkat.gangineni on 2012-07-26 18:26:45

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Run "telnet 10.1.10.40 5551" and tell me what the output is.  Or is it port 5552?  You
changed it in the last comment.

Reported by nirvdrum on 2012-07-26 18:34:25

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Sir, if you dont mind can you tell me in detail where to run "telnet 10.1.40 5551"?
I am using port 4444 for hub and port 5552 for stand alone server

Please help me with this

Thanks

Reported by venkat.gangineni on 2012-07-26 18:43:32

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I'll do what I can, but I certainly can't teach you about networking.  If you don't
know how to telnet, you are way out of your league trying to run your own grid.  But,
you type that into a command prompt.  Run it on the node and run it on the hub and
give me the output of both.  Even better would be running nmap and getting the output
from that.

Beyond that, I can't reasonably provide either a telnet or an nmap tutorial.  Please
read a few tutorials and then we'll have a good base to work out what's happening.

Reported by nirvdrum on 2012-07-26 18:58:19

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Sure Sir thanks a lot; I will try read some tutorials on telnet or nmap and run the
test cases and get the outputs. Then I will let you know.

Reported by venkat.gangineni on 2012-07-26 20:06:58

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

can we Telnet if am using Windows OS?

Reported by venkat.gangineni on 2012-07-26 20:09:17

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Yes, you can telnet from Windows.  Please read a guide for more details.

Reported by nirvdrum on 2012-07-30 12:34:29

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

How did you start the node?  What is the exact command and configuration file you're
using?

Reported by nirvdrum on 2012-07-30 12:35:45

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I am starting the hub and node using the following commands:

hub: java -jar selenium-server-standalone-2.24.1.jar -role hub

node: java -jar selenium-server-standalone-2.24.1.jar -role node -hub http://localhost:4444/grid/register
-port 5552 -browser browserName=firefox,maxInstances=5,platform=WINDOWS

I have attached the configuration file.

Thanks

Reported by venkat.gangineni on 2012-07-30 12:50:15


- _Attachment: [TestConfiguration.java](https://storage.googleapis.com/google-code-attachments/selenium/issue-4185/comment-18/TestConfiguration.java)_

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Is this issue still actual? Could you resolve the network glitches?

Reported by barancev on 2013-05-09 20:02:54

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I am not getting this error now. We can close this Issue. Thank you all.

Reported by venkat.gangineni on 2013-05-10 13:15:43

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2013-05-10 19:20:56

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:15:45

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant