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

Error when connecting to remote server #503

Closed
lukeis opened this issue Mar 2, 2016 · 8 comments
Closed

Error when connecting to remote server #503

lukeis opened this issue Mar 2, 2016 · 8 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 503

I seem to be experiencing a strange behaviour when I'm trying to connect to 
my remote server. I have the following setup:

Running selenium-server-2.0a4 on Windows 7 x64
Using selenium-dotnet-2.0a4
When creating a new instance of a RemoteWebDriver using

Selenium = new RemoteWebDriver(new Uri("http://10.0.10.43:4444/wd/hub"), 
DesiredCapabilities.Chrome() );

a WebDriverException is thrown and the following error message is returned.

"Unexpected error. <html>
<head>
<title>Error 403 Forbidden for Proxy</title>
</head>
<body>
<h2>HTTP ERROR: 403</h2><pre>Forbidden for Proxy</pre>
<p>RequestURI=/wd/session</p>
<p><i><small><a href=\"http://jetty.mortbay.org\">Powered by 
Jetty://</a></small></i></p> 

If I browse the URL myself, I get an HTTP ERROR: 500

Reported by stuartf@gaelquality.com on 2010-04-30 15:28:42

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Adding a trailing slash to the URL fixes this problem.

Selenium = new RemoteWebDriver(new Uri("http://10.0.10.43:4444/wd/hub/" 
DesiredCapabilities.Chrome() );

Reported by stuartf@gaelquality.com on 2010-05-01 10:36:12

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I have a brand newly copied selenium-driver on new machine and experience the same.
Some configuration or option must be wrongly set
 Server starts and listens. As soon as I type URL in a browser (including '/' ) it
responds by displaying the below on a screen:
HTTP ERROR: 500
java.lang.NullPointerException
RequestURI=/wd/hub/

Powered by Jetty://


On console I see the below:
C:\selenium\RC\selenium-server-1.0.3>java -jar C:\selenium\RC\selenium-server-1.
0.3\selenium-server.jar -log selenium.log -port 6666
22:53:26.808 INFO - Writing debug logs to selenium.log
22:53:26.810 INFO - Java: Sun Microsystems Inc. 16.3-b01
22:53:26.810 INFO - OS: Windows 7 6.1 x86
22:53:26.818 INFO - v2.0 [a2], with Core v2.0 [a2]
22:53:26.910 INFO - RemoteWebDriver instances should connect to: http://127.0.0.
1:6666/wd/hub
22:53:26.912 INFO - Version Jetty/5.1.x
22:53:26.913 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
22:53:26.921 INFO - Started HttpContext[/selenium-server,/selenium-server]
22:53:26.921 INFO - Started HttpContext[/,/]
22:53:26.952 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@15601e
a
22:53:26.953 INFO - Started HttpContext[/wd,/wd]
22:53:26.956 INFO - Started SocketListener on 0.0.0.0:6666
22:53:26.958 INFO - Started org.openqa.jetty.jetty.Server@b6ece5
22:53:52.626 INFO - WebDriver remote server: Fatal, unhandled exception: null: j
ava.lang.NullPointerException
22:53:52.627 WARN - EXCEPTION
javax.servlet.ServletException: java.lang.NullPointerException
        at org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverS
ervlet.java:274)


Tried the same on my old XP machine with the same results. Something is missing but
what??

Kindle please give me a push. 

Reported by Ryan.K.Johnston on 2010-05-15 04:10:43


- _Attachment: [selenium.log](https://storage.googleapis.com/google-code-attachments/selenium/issue-503/comment-2/selenium.log)_

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Fixed with revision 9047

Reported by dawagner on 2010-05-31 14:35:51

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Has anyone received an answer to this problem yet?  I am experiencing the same issue,
the server starts but when browsing you get a 500 error.

Reported by pratik.shah on 2011-03-12 19:49:39

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Was fixed in C# but not in Java.

Reported by lars.francke on 2011-10-20 13:28:31

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Please tell me the way to check in browser as i am also getting the same 403 error every
time. I am running selenium rc using java -jar on my command promt

Reported by 12.mitul on 2011-11-16 10:19:29

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Is there an issue open with the Java version? Doesn't affect my test but would like
to get rid of the error message, for sure.

Reported by dfchan81 on 2011-12-05 16:51:43

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

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

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 2, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 3, 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