HTTP 500 error when accessing a custom servlet injected into Selenium grid

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

HTTP 500 error when accessing a custom servlet injected into Selenium grid

Prvn
I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command


java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

But when I access http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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

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)
	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

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)
	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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP 500 error when accessing a custom servlet injected into Selenium grid

Krishnan Mahadevan
What does the constructor of your servlet look like ? 

On Wed 2 May, 2018, 19:35 Prvn, <[hidden email]> wrote:
I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command


java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

But when I access http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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

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)
	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

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)
	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 [hidden email].
To post to this group, send email to [hidden email].
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/

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLnFYWUrrcYnfz_fL8tcZZ%2BQHVZZHL_pW-8d9%3DWY3%3D1dDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP 500 error when accessing a custom servlet injected into Selenium grid

Prvn
Hello Krishnan,

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);

    }

...

..

.....


On Wednesday, May 2, 2018 at 10:06:54 AM UTC-4, Krishnan Mahadevan wrote:
What does the constructor of your servlet look like ? 

On Wed 2 May, 2018, 19:35 Prvn, <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="nYq0PhB4AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">neevar...@...> wrote:
I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command


java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

But when I access <a href="http://localhost:8007/grid/admin/ClacServlet/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBNX6h07fJGvKW89r-4JkRIYZJEg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBNX6h07fJGvKW89r-4JkRIYZJEg&#39;;return true;">http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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

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)
	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

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)
	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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="nYq0PhB4AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="nYq0PhB4AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP 500 error when accessing a custom servlet injected into Selenium grid

Krishnan Mahadevan
Your constructor looks fine. The exception is talking about a missing method. Are you sure you aren't mixing up selenium versions ? If you built a jar of jars then you don't need to be referring to selenium jar in your class path. 


On Wed 2 May, 2018, 19:38 Prvn, <[hidden email]> wrote:
Hello Krishnan,

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);

    }

...

..

.....


On Wednesday, May 2, 2018 at 10:06:54 AM UTC-4, Krishnan Mahadevan wrote:
What does the constructor of your servlet look like ? 

On Wed 2 May, 2018, 19:35 Prvn, <[hidden email]> wrote:
I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command


java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

But when I access http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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

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)
	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

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)
	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 [hidden email].
To post to this group, send email to [hidden email].
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/

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.
--

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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZL%3DPvXR6p8_Wvs0Y-HqjfcScMwtciz9vcaXtT8MVa0czyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP 500 error when accessing a custom servlet injected into Selenium grid

Prvn
I am using selenium server standalone jar 3.8.1 and in the servlet project I am using Maven dependency selenium-server 3.8.1

Yes I am building the servlet jar with selenium server and testNG as dependency. So are you saying in my java -cp command I dont have to specify selenium server jar?


On Wednesday, May 2, 2018 at 10:16:23 AM UTC-4, Krishnan Mahadevan wrote:
Your constructor looks fine. The exception is talking about a missing method. Are you sure you aren't mixing up selenium versions ? If you built a jar of jars then you don't need to be referring to selenium jar in your class path. 


On Wed 2 May, 2018, 19:38 Prvn, <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="FqZWsJR4AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">neevar...@...> wrote:
Hello Krishnan,

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);

    }

...

..

.....


On Wednesday, May 2, 2018 at 10:06:54 AM UTC-4, Krishnan Mahadevan wrote:
What does the constructor of your servlet look like ? 

On Wed 2 May, 2018, 19:35 Prvn, <[hidden email]> wrote:
I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command


java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

But when I access <a href="http://localhost:8007/grid/admin/ClacServlet/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBNX6h07fJGvKW89r-4JkRIYZJEg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBNX6h07fJGvKW89r-4JkRIYZJEg&#39;;return true;">http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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 <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
	at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
	at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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

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)
	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 <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
	at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
	at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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

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)
	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 <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
	at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
	at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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 [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @ <a href="http://wakened-cognition.blogspot.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="FqZWsJR4AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="FqZWsJR4AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP 500 error when accessing a custom servlet injected into Selenium grid

Krishnan Mahadevan
Yes if you have an uber jar then you don't need to be including the selenium jar. Can you give it a whirl and post back your findings ?

On Wed 2 May, 2018, 20:01 Prvn, <[hidden email]> wrote:
I am using selenium server standalone jar 3.8.1 and in the servlet project I am using Maven dependency selenium-server 3.8.1

Yes I am building the servlet jar with selenium server and testNG as dependency. So are you saying in my java -cp command I dont have to specify selenium server jar?


On Wednesday, May 2, 2018 at 10:16:23 AM UTC-4, Krishnan Mahadevan wrote:
Your constructor looks fine. The exception is talking about a missing method. Are you sure you aren't mixing up selenium versions ? If you built a jar of jars then you don't need to be referring to selenium jar in your class path. 
On Wed 2 May, 2018, 19:38 Prvn, <[hidden email]> wrote:
Hello Krishnan,

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);

    }

...

..

.....


On Wednesday, May 2, 2018 at 10:06:54 AM UTC-4, Krishnan Mahadevan wrote:
What does the constructor of your servlet look like ? 

On Wed 2 May, 2018, 19:35 Prvn, <[hidden email]> wrote:
I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command


java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

But when I access http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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

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)
	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

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)
	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 [hidden email].
To post to this group, send email to [hidden email].
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/

--
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 [hidden email].
To post to this group, send email to [hidden email].
--

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 [hidden email].
To post to this group, send email to [hidden email].
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.
--

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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLnvESLjprCyt5HrYvYV7ez9XskAM2KHQm-Pm8Uz%2BwDGVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP 500 error when accessing a custom servlet injected into Selenium grid

Prvn
Ok. this is what I did

1. In my pom of the GridServlet there are two dependencies selenium-server and testng. selenium-server version is 3.8.1 (I also tried with 3.11.0)
2. Then I did mvn package
3. I see a jar with name gridservlet-0.0.1-SNAPSHOT-jar-with-dependencies.jar
4. Now I ran the command java -cp gridservlet-0.0.1-SNAPSHOT.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -servlets com.servlet.ClacServlet
5. I see that the servlet was injected successfully. when the grid was started
6. Now In the browser I did http://localhost:8007/grid/admin/ClacServlet and still see HTTP error 500

On Wednesday, May 2, 2018 at 10:32:59 AM UTC-4, Krishnan Mahadevan wrote:
Yes if you have an uber jar then you don't need to be including the selenium jar. Can you give it a whirl and post back your findings ?

On Wed 2 May, 2018, 20:01 Prvn, <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Dsyoh3x5AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">neevar...@...> wrote:
I am using selenium server standalone jar 3.8.1 and in the servlet project I am using Maven dependency selenium-server 3.8.1

Yes I am building the servlet jar with selenium server and testNG as dependency. So are you saying in my java -cp command I dont have to specify selenium server jar?


On Wednesday, May 2, 2018 at 10:16:23 AM UTC-4, Krishnan Mahadevan wrote:
Your constructor looks fine. The exception is talking about a missing method. Are you sure you aren't mixing up selenium versions ? If you built a jar of jars then you don't need to be referring to selenium jar in your class path. 
On Wed 2 May, 2018, 19:38 Prvn, <[hidden email]> wrote:
Hello Krishnan,

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);

    }

...

..

.....


On Wednesday, May 2, 2018 at 10:06:54 AM UTC-4, Krishnan Mahadevan wrote:
What does the constructor of your servlet look like ? 

On Wed 2 May, 2018, 19:35 Prvn, <[hidden email]> wrote:
I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command


java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

But when I access <a href="http://localhost:8007/grid/admin/ClacServlet/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBNX6h07fJGvKW89r-4JkRIYZJEg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBNX6h07fJGvKW89r-4JkRIYZJEg&#39;;return true;">http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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 <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
	at <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
	at <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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

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)
	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 <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
	at <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
	at <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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

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)
	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 <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
	at <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
	at <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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 [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @ <a href="http://wakened-cognition.blogspot.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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 selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @ <a href="http://wakened-cognition.blogspot.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Dsyoh3x5AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Dsyoh3x5AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP 500 error when accessing a custom servlet injected into Selenium grid

Krishnan Mahadevan

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/

From: <[hidden email]> on behalf of Prvn <[hidden email]>
Reply-To: <[hidden email]>
Date: Wednesday, May 2, 2018 at 9:02 PM
To: Selenium Users <[hidden email]>
Subject: Re: [selenium-users] HTTP 500 error when accessing a custom servlet injected into Selenium grid

 

Ok. this is what I did

 

1. In my pom of the GridServlet there are two dependencies selenium-server and testng. selenium-server version is 3.8.1 (I also tried with 3.11.0)

2. Then I did mvn package

3. I see a jar with name gridservlet-0.0.1-SNAPSHOT-jar-with-dependencies.jar

4. Now I ran the command java -cp gridservlet-0.0.1-SNAPSHOT.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -servlets com.servlet.ClacServlet

5. I see that the servlet was injected successfully. when the grid was started

6. Now In the browser I did http://localhost:8007/grid/admin/ClacServlet and still see HTTP error 500


On Wednesday, May 2, 2018 at 10:32:59 AM UTC-4, Krishnan Mahadevan wrote:

Yes if you have an uber jar then you don't need to be including the selenium jar. Can you give it a whirl and post back your findings ?

On Wed 2 May, 2018, 20:01 Prvn, <<a href="javascript:" target="_blank">neevar...@...> wrote:

I am using selenium server standalone jar 3.8.1 and in the servlet project I am using Maven dependency selenium-server 3.8.1

 

Yes I am building the servlet jar with selenium server and testNG as dependency. So are you saying in my java -cp command I dont have to specify selenium server jar?



On Wednesday, May 2, 2018 at 10:16:23 AM UTC-4, Krishnan Mahadevan wrote:

Your constructor looks fine. The exception is talking about a missing method. Are you sure you aren't mixing up selenium versions ? If you built a jar of jars then you don't need to be referring to selenium jar in your class path. 

On Wed 2 May, 2018, 19:38 Prvn, <[hidden email]> wrote:

Hello Krishnan,

 

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);

    }

...

..

.....


On Wednesday, May 2, 2018 at 10:06:54 AM UTC-4, Krishnan Mahadevan wrote:

What does the constructor of your servlet look like ? 

On Wed 2 May, 2018, 19:35 Prvn, <[hidden email]> wrote:

I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command

 

 

java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

 

But when I access http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

 

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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

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)
    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

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)
    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 [hidden email].
To post to this group, send email to [hidden email].
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/

--
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 [hidden email].
To post to this group, send email to [hidden email].

--

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
<a href="javascript:" target="_blank">selenium-user...@....
To post to this group, send email to
<a href="javascript:" target="_blank">seleniu...@....
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.

--

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
[hidden email].
To post to this group, send email to
[hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2F899871-BA95-440B-B09C-7CDD2B2733A0%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP 500 error when accessing a custom servlet injected into Selenium grid

Prvn
Krishnan,

If I have a default no argument constructor then it says "Implicit super constructor RegistryBasedServlet() is undefined. Must explicitly invoke another constructor"

What do you mean by "adding a default constructor to your constructor "?

On Wednesday, May 2, 2018 at 12:30:29 PM UTC-4, Krishnan Mahadevan wrote:

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 @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

From: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="RgpcFOZ_AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com> on behalf of Prvn <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="RgpcFOZ_AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">neevar...@...>
Reply-To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="RgpcFOZ_AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com>
Date: Wednesday, May 2, 2018 at 9:02 PM
To: Selenium Users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="RgpcFOZ_AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com>
Subject: Re: [selenium-users] HTTP 500 error when accessing a custom servlet injected into Selenium grid

 

Ok. this is what I did

 

1. In my pom of the GridServlet there are two dependencies selenium-server and testng. selenium-server version is 3.8.1 (I also tried with 3.11.0)

2. Then I did mvn package

3. I see a jar with name gridservlet-0.0.1-SNAPSHOT-jar-with-dependencies.jar

4. Now I ran the command java -cp gridservlet-0.0.1-SNAPSHOT.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -servlets com.servlet.ClacServlet

5. I see that the servlet was injected successfully. when the grid was started

6. Now In the browser I did <a href="http://localhost:8007/grid/admin/ClacServlet" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBW9aucypC8VBzRw7qwPO0xYyDxA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBW9aucypC8VBzRw7qwPO0xYyDxA&#39;;return true;">http://localhost:8007/grid/admin/ClacServlet and still see HTTP error 500


On Wednesday, May 2, 2018 at 10:32:59 AM UTC-4, Krishnan Mahadevan wrote:

Yes if you have an uber jar then you don't need to be including the selenium jar. Can you give it a whirl and post back your findings ?

On Wed 2 May, 2018, 20:01 Prvn, <[hidden email]> wrote:

I am using selenium server standalone jar 3.8.1 and in the servlet project I am using Maven dependency selenium-server 3.8.1

 

Yes I am building the servlet jar with selenium server and testNG as dependency. So are you saying in my java -cp command I dont have to specify selenium server jar?



On Wednesday, May 2, 2018 at 10:16:23 AM UTC-4, Krishnan Mahadevan wrote:

Your constructor looks fine. The exception is talking about a missing method. Are you sure you aren't mixing up selenium versions ? If you built a jar of jars then you don't need to be referring to selenium jar in your class path. 

On Wed 2 May, 2018, 19:38 Prvn, <[hidden email]> wrote:

Hello Krishnan,

 

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);

    }

...

..

.....


On Wednesday, May 2, 2018 at 10:06:54 AM UTC-4, Krishnan Mahadevan wrote:

What does the constructor of your servlet look like ? 

On Wed 2 May, 2018, 19:35 Prvn, <[hidden email]> wrote:

I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command

 

 

java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

 

But when I access <a href="http://localhost:8007/grid/admin/ClacServlet/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBNX6h07fJGvKW89r-4JkRIYZJEg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBNX6h07fJGvKW89r-4JkRIYZJEg&#39;;return true;">http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

 

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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 <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
    at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
    at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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

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)
    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 <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
    at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
    at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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

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)
    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 <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
    at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
    at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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 [hidden email].
To view this discussion on the web visit
<a href="https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @
<a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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 selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @
<a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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
selenium-user...@googlegroups.com.
To post to this group, send email to
[hidden email].
To view this discussion on the web visit
<a href="https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @
<a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="RgpcFOZ_AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="RgpcFOZ_AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-users@googlegroups.com.
To view this discussion on the web visit
<a href="https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP 500 error when accessing a custom servlet injected into Selenium grid

Krishnan Mahadevan
Add both the constructors. The no arg default constructor to facilitate instantiation and the 1 arg constructor to keep the parent class happy. 

You can have your default constructor call into the 1 arg constructor via a "this()" call. 

On Wed 2 May, 2018, 22:58 Prvn, <[hidden email]> wrote:
Krishnan,

If I have a default no argument constructor then it says "Implicit super constructor RegistryBasedServlet() is undefined. Must explicitly invoke another constructor"

What do you mean by "adding a default constructor to your constructor "?

On Wednesday, May 2, 2018 at 12:30:29 PM UTC-4, Krishnan Mahadevan wrote:

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/

From: <[hidden email]> on behalf of Prvn <[hidden email]>
Reply-To: <[hidden email]>


Date: Wednesday, May 2, 2018 at 9:02 PM

To: Selenium Users <[hidden email]>


Subject: Re: [selenium-users] HTTP 500 error when accessing a custom servlet injected into Selenium grid

 

Ok. this is what I did

 

1. In my pom of the GridServlet there are two dependencies selenium-server and testng. selenium-server version is 3.8.1 (I also tried with 3.11.0)

2. Then I did mvn package

3. I see a jar with name gridservlet-0.0.1-SNAPSHOT-jar-with-dependencies.jar

4. Now I ran the command java -cp gridservlet-0.0.1-SNAPSHOT.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -servlets com.servlet.ClacServlet

5. I see that the servlet was injected successfully. when the grid was started

6. Now In the browser I did http://localhost:8007/grid/admin/ClacServlet and still see HTTP error 500


On Wednesday, May 2, 2018 at 10:32:59 AM UTC-4, Krishnan Mahadevan wrote:

Yes if you have an uber jar then you don't need to be including the selenium jar. Can you give it a whirl and post back your findings ?

On Wed 2 May, 2018, 20:01 Prvn, <[hidden email]> wrote:

I am using selenium server standalone jar 3.8.1 and in the servlet project I am using Maven dependency selenium-server 3.8.1

 

Yes I am building the servlet jar with selenium server and testNG as dependency. So are you saying in my java -cp command I dont have to specify selenium server jar?



On Wednesday, May 2, 2018 at 10:16:23 AM UTC-4, Krishnan Mahadevan wrote:

Your constructor looks fine. The exception is talking about a missing method. Are you sure you aren't mixing up selenium versions ? If you built a jar of jars then you don't need to be referring to selenium jar in your class path. 

On Wed 2 May, 2018, 19:38 Prvn, <[hidden email]> wrote:

Hello Krishnan,

 

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);

    }

...

..

.....


On Wednesday, May 2, 2018 at 10:06:54 AM UTC-4, Krishnan Mahadevan wrote:

What does the constructor of your servlet look like ? 

On Wed 2 May, 2018, 19:35 Prvn, <[hidden email]> wrote:

I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command

 

 

java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

 

But when I access http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

 

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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

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)
    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

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)
    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 [hidden email].
To post to this group, send email to [hidden email].
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/

--
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 [hidden email].
To post to this group, send email to [hidden email].

--

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
[hidden email].
To post to this group, send email to
[hidden email].
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.

--

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
[hidden email].
To post to this group, send email to
[hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZL%3DkVkyFWHxR349WhJ6VV8E%3D0TEjwEQsirKxJffrxvjyvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP 500 error when accessing a custom servlet injected into Selenium grid

Prvn
I tried that earlier. Pls see the code below. But when I do this() it says "Recursive constructor invocation ClacServlet()"

public class ClacServlet extends RegistryBasedServlet {


    private static final long serialVersionUID = 4615464862476676155L;


    public ClacServlet(GridRegistry registry) {

        super(registry);

    }

    

    

    public ClacServlet() {

        this();

    }


On Wednesday, May 2, 2018 at 1:42:27 PM UTC-4, Krishnan Mahadevan wrote:
Add both the constructors. The no arg default constructor to facilitate instantiation and the 1 arg constructor to keep the parent class happy. 

You can have your default constructor call into the 1 arg constructor via a "this()" call. 

On Wed 2 May, 2018, 22:58 Prvn, <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ZncuPdODAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">neevar...@...> wrote:
Krishnan,

If I have a default no argument constructor then it says "Implicit super constructor RegistryBasedServlet() is undefined. Must explicitly invoke another constructor"

What do you mean by "adding a default constructor to your constructor "?

On Wednesday, May 2, 2018 at 12:30:29 PM UTC-4, Krishnan Mahadevan wrote:

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 @ <a href="http://wakened-cognition.blogspot.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

From: <[hidden email]> on behalf of Prvn <[hidden email]>
Reply-To: <[hidden email]>


Date: Wednesday, May 2, 2018 at 9:02 PM

To: Selenium Users <[hidden email]>


Subject: Re: [selenium-users] HTTP 500 error when accessing a custom servlet injected into Selenium grid

 

Ok. this is what I did

 

1. In my pom of the GridServlet there are two dependencies selenium-server and testng. selenium-server version is 3.8.1 (I also tried with 3.11.0)

2. Then I did mvn package

3. I see a jar with name gridservlet-0.0.1-SNAPSHOT-jar-with-dependencies.jar

4. Now I ran the command java -cp gridservlet-0.0.1-SNAPSHOT.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -servlets com.servlet.ClacServlet

5. I see that the servlet was injected successfully. when the grid was started

6. Now In the browser I did <a href="http://localhost:8007/grid/admin/ClacServlet" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBW9aucypC8VBzRw7qwPO0xYyDxA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBW9aucypC8VBzRw7qwPO0xYyDxA&#39;;return true;">http://localhost:8007/grid/admin/ClacServlet and still see HTTP error 500


On Wednesday, May 2, 2018 at 10:32:59 AM UTC-4, Krishnan Mahadevan wrote:

Yes if you have an uber jar then you don't need to be including the selenium jar. Can you give it a whirl and post back your findings ?

On Wed 2 May, 2018, 20:01 Prvn, <[hidden email]> wrote:

I am using selenium server standalone jar 3.8.1 and in the servlet project I am using Maven dependency selenium-server 3.8.1

 

Yes I am building the servlet jar with selenium server and testNG as dependency. So are you saying in my java -cp command I dont have to specify selenium server jar?



On Wednesday, May 2, 2018 at 10:16:23 AM UTC-4, Krishnan Mahadevan wrote:

Your constructor looks fine. The exception is talking about a missing method. Are you sure you aren't mixing up selenium versions ? If you built a jar of jars then you don't need to be referring to selenium jar in your class path. 

On Wed 2 May, 2018, 19:38 Prvn, <[hidden email]> wrote:

Hello Krishnan,

 

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);

    }

...

..

.....


On Wednesday, May 2, 2018 at 10:06:54 AM UTC-4, Krishnan Mahadevan wrote:

What does the constructor of your servlet look like ? 

On Wed 2 May, 2018, 19:35 Prvn, <[hidden email]> wrote:

I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command

 

 

java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

 

But when I access <a href="http://localhost:8007/grid/admin/ClacServlet/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBNX6h07fJGvKW89r-4JkRIYZJEg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBNX6h07fJGvKW89r-4JkRIYZJEg&#39;;return true;">http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

 

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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 <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
    at <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
    at <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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

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)
    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 <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
    at <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
    at <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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

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)
    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 <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
    at <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
    at <a href="http://org.seleniumhq.jetty9.io" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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 [hidden email].
To view this discussion on the web visit
<a href="https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @
<a href="http://wakened-cognition.blogspot.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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 selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @
<a href="http://wakened-cognition.blogspot.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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
selenium-user...@googlegroups.com.
To post to this group, send email to
[hidden email].
To view this discussion on the web visit
<a href="https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @
<a href="http://wakened-cognition.blogspot.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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
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
<a href="https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ZncuPdODAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ZncuPdODAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/ffcb9f42-91a5-45f9-8127-c450447737f6%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/ffcb9f42-91a5-45f9-8127-c450447737f6%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/ffcb9f42-91a5-45f9-8127-c450447737f6%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/ffcb9f42-91a5-45f9-8127-c450447737f6%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP 500 error when accessing a custom servlet injected into Selenium grid

Krishnan Mahadevan

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);

    }

}

 

 

 

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/

From: <[hidden email]> on behalf of Prvn <[hidden email]>
Reply-To: <[hidden email]>
Date: Wednesday, May 2, 2018 at 11:19 PM
To: Selenium Users <[hidden email]>
Subject: Re: [selenium-users] HTTP 500 error when accessing a custom servlet injected into Selenium grid

 

I tried that earlier. Pls see the code below. But when I do this() it says "Recursive constructor invocation ClacServlet()"

 

public class ClacServlet extends RegistryBasedServlet {

 

    private static final long serialVersionUID = 4615464862476676155L;

 

    public ClacServlet(GridRegistry registry) {

        super(registry);

    }

    

    

    public ClacServlet() {

        this();

    }


On Wednesday, May 2, 2018 at 1:42:27 PM UTC-4, Krishnan Mahadevan wrote:

Add both the constructors. The no arg default constructor to facilitate instantiation and the 1 arg constructor to keep the parent class happy. 

 

You can have your default constructor call into the 1 arg constructor via a "this()" call. 

On Wed 2 May, 2018, 22:58 Prvn, <<a href="javascript:" target="_blank">neevar...@...> wrote:

Krishnan,

 

If I have a default no argument constructor then it says "Implicit super constructor RegistryBasedServlet() is undefined. Must explicitly invoke another constructor"

 

What do you mean by "adding a default constructor to your constructor "?


On Wednesday, May 2, 2018 at 12:30:29 PM UTC-4, Krishnan Mahadevan wrote:

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/

From: <[hidden email]> on behalf of Prvn <[hidden email]>
Reply-To: <[hidden email]>


Date: Wednesday, May 2, 2018 at 9:02 PM

To: Selenium Users <[hidden email]>


Subject: Re: [selenium-users] HTTP 500 error when accessing a custom servlet injected into Selenium grid

 

Ok. this is what I did

 

1. In my pom of the GridServlet there are two dependencies selenium-server and testng. selenium-server version is 3.8.1 (I also tried with 3.11.0)

2. Then I did mvn package

3. I see a jar with name gridservlet-0.0.1-SNAPSHOT-jar-with-dependencies.jar

4. Now I ran the command java -cp gridservlet-0.0.1-SNAPSHOT.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -servlets com.servlet.ClacServlet

5. I see that the servlet was injected successfully. when the grid was started

6. Now In the browser I did http://localhost:8007/grid/admin/ClacServlet and still see HTTP error 500


On Wednesday, May 2, 2018 at 10:32:59 AM UTC-4, Krishnan Mahadevan wrote:

Yes if you have an uber jar then you don't need to be including the selenium jar. Can you give it a whirl and post back your findings ?

On Wed 2 May, 2018, 20:01 Prvn, <[hidden email]> wrote:

I am using selenium server standalone jar 3.8.1 and in the servlet project I am using Maven dependency selenium-server 3.8.1

 

Yes I am building the servlet jar with selenium server and testNG as dependency. So are you saying in my java -cp command I dont have to specify selenium server jar?



On Wednesday, May 2, 2018 at 10:16:23 AM UTC-4, Krishnan Mahadevan wrote:

Your constructor looks fine. The exception is talking about a missing method. Are you sure you aren't mixing up selenium versions ? If you built a jar of jars then you don't need to be referring to selenium jar in your class path. 

On Wed 2 May, 2018, 19:38 Prvn, <[hidden email]> wrote:

Hello Krishnan,

 

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);

    }

...

..

.....


On Wednesday, May 2, 2018 at 10:06:54 AM UTC-4, Krishnan Mahadevan wrote:

What does the constructor of your servlet look like ? 

On Wed 2 May, 2018, 19:35 Prvn, <[hidden email]> wrote:

I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command

 

 

java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

 

But when I access http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

 

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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

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)
    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

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)
    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 [hidden email].
To post to this group, send email to [hidden email].
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/

--
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 [hidden email].
To post to this group, send email to [hidden email].

--

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 [hidden email].
To post to this group, send email to [hidden email].
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.

--

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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
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
<a href="javascript:" target="_blank">selenium-user...@....
To post to this group, send email to
<a href="javascript:" target="_blank">seleniu...@....
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
[hidden email].
To post to this group, send email to
[hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/EF55DB39-4B6E-4BE6-9693-97A2B4ACB945%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP 500 error when accessing a custom servlet injected into Selenium grid

Prvn
Thanks a lot. It worked :) 

On Wednesday, May 2, 2018 at 1:52:34 PM UTC-4, Krishnan Mahadevan wrote:

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);

    }

}

 

 

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

From: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="u9xBnmCEAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com> on behalf of Prvn <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="u9xBnmCEAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">neevar...@...>
Reply-To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="u9xBnmCEAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com>
Date: Wednesday, May 2, 2018 at 11:19 PM
To: Selenium Users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="u9xBnmCEAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com>
Subject: Re: [selenium-users] HTTP 500 error when accessing a custom servlet injected into Selenium grid

 

I tried that earlier. Pls see the code below. But when I do this() it says "Recursive constructor invocation ClacServlet()"

 

public class ClacServlet extends RegistryBasedServlet {

 

    private static final long serialVersionUID = 4615464862476676155L;

 

    public ClacServlet(GridRegistry registry) {

        super(registry);

    }

    

    

    public ClacServlet() {

        this();

    }


On Wednesday, May 2, 2018 at 1:42:27 PM UTC-4, Krishnan Mahadevan wrote:

Add both the constructors. The no arg default constructor to facilitate instantiation and the 1 arg constructor to keep the parent class happy. 

 

You can have your default constructor call into the 1 arg constructor via a "this()" call. 

On Wed 2 May, 2018, 22:58 Prvn, <[hidden email]> wrote:

Krishnan,

 

If I have a default no argument constructor then it says "Implicit super constructor RegistryBasedServlet() is undefined. Must explicitly invoke another constructor"

 

What do you mean by "adding a default constructor to your constructor "?


On Wednesday, May 2, 2018 at 12:30:29 PM UTC-4, Krishnan Mahadevan wrote:

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 @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

From: <[hidden email]> on behalf of Prvn <[hidden email]>
Reply-To: <[hidden email]>


Date: Wednesday, May 2, 2018 at 9:02 PM

To: Selenium Users <[hidden email]>


Subject: Re: [selenium-users] HTTP 500 error when accessing a custom servlet injected into Selenium grid

 

Ok. this is what I did

 

1. In my pom of the GridServlet there are two dependencies selenium-server and testng. selenium-server version is 3.8.1 (I also tried with 3.11.0)

2. Then I did mvn package

3. I see a jar with name gridservlet-0.0.1-SNAPSHOT-jar-with-dependencies.jar

4. Now I ran the command java -cp gridservlet-0.0.1-SNAPSHOT.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -servlets com.servlet.ClacServlet

5. I see that the servlet was injected successfully. when the grid was started

6. Now In the browser I did <a href="http://localhost:8007/grid/admin/ClacServlet" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBW9aucypC8VBzRw7qwPO0xYyDxA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBW9aucypC8VBzRw7qwPO0xYyDxA&#39;;return true;">http://localhost:8007/grid/admin/ClacServlet and still see HTTP error 500


On Wednesday, May 2, 2018 at 10:32:59 AM UTC-4, Krishnan Mahadevan wrote:

Yes if you have an uber jar then you don't need to be including the selenium jar. Can you give it a whirl and post back your findings ?

On Wed 2 May, 2018, 20:01 Prvn, <[hidden email]> wrote:

I am using selenium server standalone jar 3.8.1 and in the servlet project I am using Maven dependency selenium-server 3.8.1

 

Yes I am building the servlet jar with selenium server and testNG as dependency. So are you saying in my java -cp command I dont have to specify selenium server jar?



On Wednesday, May 2, 2018 at 10:16:23 AM UTC-4, Krishnan Mahadevan wrote:

Your constructor looks fine. The exception is talking about a missing method. Are you sure you aren't mixing up selenium versions ? If you built a jar of jars then you don't need to be referring to selenium jar in your class path. 

On Wed 2 May, 2018, 19:38 Prvn, <[hidden email]> wrote:

Hello Krishnan,

 

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);

    }

...

..

.....


On Wednesday, May 2, 2018 at 10:06:54 AM UTC-4, Krishnan Mahadevan wrote:

What does the constructor of your servlet look like ? 

On Wed 2 May, 2018, 19:35 Prvn, <[hidden email]> wrote:

I have a basic servlet that extends RegistryBasedServlet class. I did `mvn package` and made sure I am only using the packaged jar with dependencies. Then I started the selenium server with the following command

 

 

java -cp gridservlet-0.0.1-SNAPSHOT.jar:selenium-server-standalone-3.8.1.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -port 8007 -maxSession 1 -newSessioaitTimeout 600000 -timeout 50 -servlets com.servlet.ClacServlet

 

But when I access <a href="http://localhost:8007/grid/admin/ClacServlet/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBNX6h07fJGvKW89r-4JkRIYZJEg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8007%2Fgrid%2Fadmin%2FClacServlet%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBNX6h07fJGvKW89r-4JkRIYZJEg&#39;;return true;">http://localhost:8007/grid/admin/ClacServlet/ . I get the following exception

 

HTTP ERROR 500

Problem accessing /grid/admin/ClacServlet/. Reason:

    Server Error

Caused by:

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 <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
    at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
    at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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

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)
    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 <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
    at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
    at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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

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)
    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 <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
    at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:104)
    at <a href="http://org.seleniumhq.jetty9.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.seleniumhq.jetty9.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGpsQ8x0j7C9E5lXCS6JFaythTROg&#39;;return true;">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 [hidden email].
To view this discussion on the web visit
<a href="https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/622dea86-9585-437e-9689-0729f7903e4d%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @
<a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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 selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/7352db05-a0a1-4908-b7cb-5f6af89c3392%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @
<a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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 selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit
<a href="https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/365ee0a3-b347-4323-856e-34d8c4f1532a%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @
<a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="u9xBnmCEAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="u9xBnmCEAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit
<a href="https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/be6c17ee-5b74-415b-baf4-19e545502b70%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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
[hidden email].
To view this discussion on the web visit
<a href="https://groups.google.com/d/msgid/selenium-users/ffcb9f42-91a5-45f9-8127-c450447737f6%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/ffcb9f42-91a5-45f9-8127-c450447737f6%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/ffcb9f42-91a5-45f9-8127-c450447737f6%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/ffcb9f42-91a5-45f9-8127-c450447737f6%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 @
<a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">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
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="u9xBnmCEAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="u9xBnmCEAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-users@googlegroups.com.
To view this discussion on the web visit
<a href="https://groups.google.com/d/msgid/selenium-users/cb606181-4683-4082-8a81-8ab0e109aadc%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/cb606181-4683-4082-8a81-8ab0e109aadc%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/cb606181-4683-4082-8a81-8ab0e109aadc%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/cb606181-4683-4082-8a81-8ab0e109aadc%40googlegroups.com.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/9beca7ea-0579-4717-ad1d-1fcfe2d5a65d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.