req.loadFromJSON("NodeFfConfig.json");
remote = new SelfRegisteringRemote(req); // this line is throwing error
remote.startRemoteServer();
remote.startRegistrationProcess();
remote.stopRemoteServer();
hub.stop();
}
Error Log is as follows -2015-06-19 19:05:08.307:INFO:osjs.Server:jetty-7.x.y-SNAPSHOT
2015-06-19 19:05:08.416:INFO:osjsh.ContextHandler:started o.s.j.s.ServletContextHandler{/,null}
2015-06-19 19:05:08.450:INFO:osjs.AbstractConnector:Started SocketConnector@localhost:4444
1
2015-06-19 19:05:44,902 INFO (SeleniumServer.java:766) - Java: Oracle Corporation 25.25-b02
2015-06-19 19:05:44,919 INFO (SeleniumServer.java:768) - OS: Windows 7 6.1 x86
2015-06-19 19:05:44,967 INFO (SeleniumServer.java:345) - v2.46.0, with Core v2.46.0. Built from revision 61506a4624b13675f24581e453592342b7485d71
19:05:45.635 INFO - Driver class not found: org.openqa.selenium.opera.OperaDriver
19:05:45.638 INFO - Driver provider org.openqa.selenium.opera.OperaDriver is not registered
2015-06-19 19:05:46,103 INFO (HttpServer.java:694) - Version Jetty/5.1.x
2015-06-19 19:05:46,112 INFO (Container.java:74) - Started HttpContext[/selenium-server,/selenium-server]
2015-06-19 19:05:46,169 INFO (Container.java:74) - Started org.openqa.jetty.jetty.servlet.ServletHandler@5d601e
2015-06-19 19:05:46,170 INFO (Container.java:74) - Started HttpContext[/wd,/wd]
2015-06-19 19:05:46,171 INFO (Container.java:74) - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
2015-06-19 19:05:46,172 INFO (Container.java:74) - Started HttpContext[/,/]
2015-06-19 19:05:46,184 INFO (SocketListener.java:203) - Started SocketListener on
0.0.0.0:55562015-06-19 19:05:46,185 INFO (Container.java:74) - Started org.openqa.jetty.jetty.Server@14872f8
19:06:16.087 INFO - Starting auto registration thread. Will try to register every 5000 ms.
19:06:16.087 INFO - Registering the node to the hub:
http://localhost:4444/grid/register19:06:16.134 INFO - Couldn't register this node: Error sending the registration request: The hub responded with 500:Error: The registration request needs to specify either the remote host, or a valid id.
2015-06-19 19:06:16.123:WARN:osjs.ServletHandler:/grid/register
java.security.InvalidParameterException: Error: The registration request needs to specify either the remote host, or a valid id.
at org.openqa.grid.internal.BaseRemoteProxy.getNewInstance(BaseRemoteProxy.java:432)
at org.openqa.grid.web.servlet.RegistrationServlet.process(RegistrationServlet.java:86)
at org.openqa.grid.web.servlet.RegistrationServlet.doPost(RegistrationServlet.java:60)
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)
Used JSON file is attached -