Saurabh Araiyer February 2016

Dropwizard service not starting with following stacktrace

I was getting the following stacktrace. The possible reasons were not available on the web

    Exception in thread "main" MultiException[javax.servlet.ServletException: name@337a8b==com.hubspot.dropwizard.guice.GuiceContainer,1,false, javax.servlet.ServletException: com.hubspot.dropwizard.guice.GuiceContainer-10d98940@327a1ad9==com.hubspot.dropwizard.guice.GuiceContainer,1,false]
    at org.eclipse.jetty.server.Server.doStart(Server.java:286)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
    at io.dropwizard.cli.ServerCommand.run(ServerCommand.java:43)
    at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:43)
    at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:76)
    at io.dropwizard.cli.Cli.run(Cli.java:70)
    at io.dropwizard.Application.run(Application.java:72)
    at MyService.main(MyService.java:45)
javax.servlet.ServletException: name@337a8b==com.hubspot.dropwizard.guice.GuiceContainer,1,false
    at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:561)
    at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:349)
    at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:812)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:288)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:732)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:118)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:100)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
    at com.codahale.metrics.jetty9.InstrumentedHandler.doStart(InstrumentedHandler.java:92)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java        

Answers


Saurabh Araiyer February 2016

The reason was,

@POST
@Path("/trigger")
@Timed
@ApiOperation("trigger a event")
@UnitOfWork

I was using the same @Path in two API's, as a result of which dropwizard startup was failing.

Post Status

Asked in February 2016
Viewed 3,159 times
Voted 8
Answered 1 times

Search




Leave an answer