Problem accessing /grid/admin/ClacServlet/. Reason:
Server Error
javax.servlet.ServletException: com.servlet.ClacServlet-7dc222ae@5c7dbcc9==com.servlet.ClacServlet,jsp=null,order=-1,inst=false at org.seleniumhq.jetty9.servlet.ServletHolder.initServlet(ServletHolder.java:658) at org.seleniumhq.jetty9.servlet.ServletHolder.getServlet(ServletHolder.java:498) at org.seleniumhq.jetty9.servlet.ServletHolder.ensureInstance(ServletHolder.java:785) at org.seleniumhq.jetty9.servlet.ServletHolder.prepare(ServletHolder.java:770) at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:530) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155) at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.seleniumhq.jetty9.server.Server.handle(Server.java:561) at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:334) at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251) at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104) at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.InstantiationException: com.servlet.ClacServlet at java.lang.Class.newInstance(Class.java:427) at org.seleniumhq.jetty9.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2535) at org.seleniumhq.jetty9.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1326) at org.seleniumhq.jetty9.servlet.ServletHolder.newInstance(ServletHolder.java:1273) at org.seleniumhq.jetty9.servlet.ServletHolder.initServlet(ServletHolder.java:614) ... 24 more Caused by: java.lang.NoSuchMethodException: com.servlet.ClacServlet.<init>() at java.lang.Class.getConstructor0(Class.java:3082) at java.lang.Class.newInstance(Class.java:412) ... 28 more
java.lang.InstantiationException: com.servlet.ClacServlet at java.lang.Class.newInstance(Class.java:427) at org.seleniumhq.jetty9.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2535) at org.seleniumhq.jetty9.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1326) at org.seleniumhq.jetty9.servlet.ServletHolder.newInstance(ServletHolder.java:1273) at org.seleniumhq.jetty9.servlet.ServletHolder.initServlet(ServletHolder.java:614) at org.seleniumhq.jetty9.servlet.ServletHolder.getServlet(ServletHolder.java:498) at org.seleniumhq.jetty9.servlet.ServletHolder.ensureInstance(ServletHolder.java:785) at org.seleniumhq.jetty9.servlet.ServletHolder.prepare(ServletHolder.java:770) at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:530) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155) at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.seleniumhq.jetty9.server.Server.handle(Server.java:561) at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:334) at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251) at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104) at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchMethodException: com.servlet.ClacServlet.<init>() at java.lang.Class.getConstructor0(Class.java:3082) at java.lang.Class.newInstance(Class.java:412) ... 28 more
java.lang.NoSuchMethodException: com.servlet.ClacServlet.<init>() at java.lang.Class.getConstructor0(Class.java:3082) at java.lang.Class.newInstance(Class.java:412) at org.seleniumhq.jetty9.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2535) at org.seleniumhq.jetty9.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1326) at org.seleniumhq.jetty9.servlet.ServletHolder.newInstance(ServletHolder.java:1273) at org.seleniumhq.jetty9.servlet.ServletHolder.initServlet(ServletHolder.java:614) at org.seleniumhq.jetty9.servlet.ServletHolder.getServlet(ServletHolder.java:498) at org.seleniumhq.jetty9.servlet.ServletHolder.ensureInstance(ServletHolder.java:785) at org.seleniumhq.jetty9.servlet.ServletHolder.prepare(ServletHolder.java:770) at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:530) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155) at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.seleniumhq.jetty9.server.Server.handle(Server.java:561) at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:334) at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251) at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104) at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597) at java.lang.Thread.run(Thread.java:745)
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
public class ClacServlet extends RegistryBasedServlet {
private static final long serialVersionUID = 4615464862476676155L;
public ClacServlet(GridRegistry registry) {
super(registry);
}
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
doPost(req, resp);
}
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
processServlet(req, resp);
}
...
..
.....
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Praveen,
I took a closer look at the codebase.
It looks like you would need to be adding a default constructor to your constructor and try again.
Even though the Selenium Grid basically has a 1 arg constructor for the RegistryBasedServlet class, the codebase doesn’t seem to be leveraging that constructor via reflection for instantiation of your servlet into the root servlet container.
Selenium grid seems to be trying to invoke the default constructor for instantiation and the registry is being added to the RegistryBasedServlet via an attribute in the servlet context.
I hope that adds clarity. My apologies for not calling this out earlier. Been a bit out of touch with the grid servlets ☺
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit
.
To view this discussion on the web visit
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ffcb9f42-91a5-45f9-8127-c450447737f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
public class ClacServlet extends RegistryBasedServlet {
private static final long serialVersionUID = 4615464862476676155L;
public ClacServlet(GridRegistry registry) {
super(registry);
}
public ClacServlet() {
this();
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ffcb9f42-91a5-45f9-8127-c450447737f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Praveen,
I meant something like below:
public class ClacServlet extends RegistryBasedServlet {
private static final long serialVersionUID = 4615464862476676155L;
public ClacServlet(GridRegistry registry) {
super(registry);
}
public ClacServlet() {
this(null);
To view this discussion on the web visit
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ffcb9f42-91a5-45f9-8127-c450447737f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Thanks & Regards
Krishnan Mahadevan"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/cb606181-4683-4082-8a81-8ab0e109aadc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit