rest - Dropwizard service not starting with following stacktrace -
i getting following stacktrace. possible reasons not available on 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] @ org.eclipse.jetty.server.server.dostart(server.java:286) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ io.dropwizard.cli.servercommand.run(servercommand.java:43) @ io.dropwizard.cli.environmentcommand.run(environmentcommand.java:43) @ io.dropwizard.cli.configuredcommand.run(configuredcommand.java:76) @ io.dropwizard.cli.cli.run(cli.java:70) @ io.dropwizard.application.run(application.java:72) @ myservice.main(myservice.java:45) javax.servlet.servletexception: name@337a8b==com.hubspot.dropwizard.guice.guicecontainer,1,false @ org.eclipse.jetty.servlet.servletholder.initservlet(servletholder.java:561) @ org.eclipse.jetty.servlet.servletholder.initialize(servletholder.java:349) @ org.eclipse.jetty.servlet.servlethandler.initialize(servlethandler.java:812) @ org.eclipse.jetty.servlet.servletcontexthandler.startcontext(servletcontexthandler.java:288) @ org.eclipse.jetty.server.handler.contexthandler.dostart(contexthandler.java:732) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:118) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:100) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:60) @ com.codahale.metrics.jetty9.instrumentedhandler.dostart(instrumentedhandler.java:92) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:118) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:100) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:60) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:118) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:100) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:60) @ org.eclipse.jetty.server.handler.requestloghandler.dostart(requestloghandler.java:131) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:118) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:100) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:60) @ org.eclipse.jetty.server.handler.statisticshandler.dostart(statisticshandler.java:233) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:118) @ org.eclipse.jetty.server.server.start(server.java:342) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:100) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:60) @ org.eclipse.jetty.server.server.dostart(server.java:290) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ io.dropwizard.cli.servercommand.run(servercommand.java:43) @ io.dropwizard.cli.environmentcommand.run(environmentcommand.java:43) @ io.dropwizard.cli.configuredcommand.run(configuredcommand.java:76) @ io.dropwizard.cli.cli.run(cli.java:70) @ io.dropwizard.application.run(application.java:72) @ myservice.main(myservice.java:45) caused by: com.sun.jersey.spi.inject.errors$errormessagesexception @ com.sun.jersey.spi.inject.errors.processerrormessages(errors.java:170) @ com.sun.jersey.spi.inject.errors.postprocess(errors.java:136) @ com.sun.jersey.spi.inject.errors.processwitherrors(errors.java:199) @ com.sun.jersey.server.impl.application.webapplicationimpl.initiate(webapplicationimpl.java:795) @ com.hubspot.dropwizard.guice.guicecontainer.initiate(guicecontainer.java:70) @ com.sun.jersey.spi.container.servlet.servletcontainer$internalwebcomponent.initiate(servletcontainer.java:321) @ com.sun.jersey.spi.container.servlet.webcomponent.load(webcomponent.java:605) @ com.sun.jersey.spi.container.servlet.webcomponent.init(webcomponent.java:207) @ com.sun.jersey.spi.container.servlet.servletcontainer.init(servletcontainer.java:376) @ com.sun.jersey.spi.container.servlet.servletcontainer.init(servletcontainer.java:559) @ javax.servlet.genericservlet.init(genericservlet.java:244) @ org.eclipse.jetty.servlet.servletholder.initservlet(servletholder.java:540) ... 36 more javax.servlet.servletexception: com.hubspot.dropwizard.guice.guicecontainer-10d98940@327a1ad9==com.hubspot.dropwizard.guice.guicecontainer,1,false @ org.eclipse.jetty.servlet.servletholder.initservlet(servletholder.java:561) @ org.eclipse.jetty.servlet.servletholder.initialize(servletholder.java:349) @ org.eclipse.jetty.servlet.servlethandler.initialize(servlethandler.java:812) @ org.eclipse.jetty.servlet.servletcontexthandler.startcontext(servletcontexthandler.java:288) @ org.eclipse.jetty.server.handler.contexthandler.dostart(contexthandler.java:732) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:118) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:100) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:60) @ com.codahale.metrics.jetty9.instrumentedhandler.dostart(instrumentedhandler.java:92) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:118) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:100) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:60) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:118) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:100) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:60) @ org.eclipse.jetty.server.handler.requestloghandler.dostart(requestloghandler.java:131) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:118) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:100) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:60) @ org.eclipse.jetty.server.handler.statisticshandler.dostart(statisticshandler.java:233) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:118) @ org.eclipse.jetty.server.server.start(server.java:342) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:100) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:60) @ org.eclipse.jetty.server.server.dostart(server.java:290) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) @ io.dropwizard.cli.servercommand.run(servercommand.java:43) @ io.dropwizard.cli.environmentcommand.run(environmentcommand.java:43) @ io.dropwizard.cli.configuredcommand.run(configuredcommand.java:76) @ io.dropwizard.cli.cli.run(cli.java:70) @ io.dropwizard.application.run(application.java:72) @ myservice.main(myservice.java:45) caused by: com.sun.jersey.spi.inject.errors$errormessagesexception @ com.sun.jersey.spi.inject.errors.processerrormessages(errors.java:170) @ com.sun.jersey.spi.inject.errors.postprocess(errors.java:136) @ com.sun.jersey.spi.inject.errors.processwitherrors(errors.java:199) @ com.sun.jersey.server.impl.application.webapplicationimpl.initiate(webapplicationimpl.java:795) @ com.hubspot.dropwizard.guice.guicecontainer.initiate(guicecontainer.java:70) @ com.sun.jersey.spi.container.servlet.servletcontainer$internalwebcomponent.initiate(servletcontainer.java:321) @ com.sun.jersey.spi.container.servlet.webcomponent.load(webcomponent.java:605) @ com.sun.jersey.spi.container.servlet.webcomponent.init(webcomponent.java:207) @ com.sun.jersey.spi.container.servlet.servletcontainer.init(servletcontainer.java:376) @ com.sun.jersey.spi.container.servlet.servletcontainer.init(servletcontainer.java:559) @ javax.servlet.genericservlet.init(genericservlet.java:244) @ org.eclipse.jetty.servlet.servletholder.initservlet(servletholder.java:540) ... 36 more
all injectable arguments correct , piece of code (initializing injectable objects) passing in debugger.
the reason was,
@post @path("/trigger") @timed @apioperation("trigger event") @unitofwork
i using same @path in 2 api's, result of dropwizard startup failing.
Comments
Post a Comment