org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Jetty servlet container

Stack Overflow | Adam | 4 months ago
  1. 0

    Spring Boot + Jetty + Jersey won't start up: `Creation of FactoryDescriptors must have Factory as a contract of the first argument`

    Stack Overflow | 4 months ago | Adam
    org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Jetty servlet container
  2. 0

    java.lang.IllegalArgumentException: Creation of FactoryDescriptors must have Factory as a contract of the first argument

    Stack Overflow | 4 months ago | Lakshmikantha
    java.lang.IllegalArgumentException: Creation of FactoryDescriptors must have Factory as a contract of the first argument
  3. 0
    samebug tip
    Some bots are sending malformed HTTP requests to your site. Try to find their IP addresses in the access logs and ask them to fix the bots or blacklist them.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    This error is caused by malformed HTTP request. You are trying to access unsecured page through https.

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Creation of FactoryDescriptors must have Factory as a contract of the first argument

      at org.glassfish.hk2.utilities.FactoryDescriptorsImpl.<init>()
    2. HK2 API module
      AbstractBinder.bind
      1. org.glassfish.hk2.utilities.FactoryDescriptorsImpl.<init>(FactoryDescriptorsImpl.java:78)[hk2-api-2.5.0-b05.jar:na]
      2. org.glassfish.hk2.utilities.binding.AbstractBindingBuilder$FactoryTypeBasedBindingBuilder.complete(AbstractBindingBuilder.java:454)[hk2-api-2.5.0-b05.jar:na]
      3. org.glassfish.hk2.utilities.binding.AbstractBinder.resetBuilder(AbstractBinder.java:180)[hk2-api-2.5.0-b05.jar:na]
      4. org.glassfish.hk2.utilities.binding.AbstractBinder.complete(AbstractBinder.java:190)[hk2-api-2.5.0-b05.jar:na]
      5. org.glassfish.hk2.utilities.binding.AbstractBinder.bind(AbstractBinder.java:174)[hk2-api-2.5.0-b05.jar:na]
      5 frames
    3. Jersey Core
      CommonConfig.configureMetaProviders
      1. org.glassfish.jersey.model.internal.CommonConfig.configureBinders(CommonConfig.java:676)[jersey-common-2.23.2.jar:na]
      2. org.glassfish.jersey.model.internal.CommonConfig.configureMetaProviders(CommonConfig.java:654)[jersey-common-2.23.2.jar:na]
      2 frames
    4. jersey-core-server
      ApplicationHandler$3.call
      1. org.glassfish.jersey.server.ResourceConfig.configureMetaProviders(ResourceConfig.java:829)[jersey-server-2.23.2.jar:na]
      2. org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:453)[jersey-server-2.23.2.jar:na]
      3. org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:184)[jersey-server-2.23.2.jar:na]
      4. org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:350)[jersey-server-2.23.2.jar:na]
      5. org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:347)[jersey-server-2.23.2.jar:na]
      5 frames
    5. Jersey Core
      Errors.processWithException
      1. org.glassfish.jersey.internal.Errors.process(Errors.java:315)[jersey-common-2.23.2.jar:na]
      2. org.glassfish.jersey.internal.Errors.process(Errors.java:297)[jersey-common-2.23.2.jar:na]
      3. org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255)[jersey-common-2.23.2.jar:na]
      3 frames
    6. jersey-core-server
      ApplicationHandler.<init>
      1. org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:347)[jersey-server-2.23.2.jar:na]
      1 frame
    7. jersey-container-servlet-core
      ServletContainer.init
      1. org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:392)[jersey-container-servlet-core-2.23.2.jar:na]
      2. org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:177)[jersey-container-servlet-core-2.23.2.jar:na]
      3. org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:369)[jersey-container-servlet-core-2.23.2.jar:na]
      3 frames
    8. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:244)[javax.servlet-api-3.1.0.jar:3.1.0]
      1 frame
    9. Jetty
      ServletHandler.initialize
      1. org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:640)[jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721]
      2. org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:419)[jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721]
      3. org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:875)[jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721]
      3 frames
    10. Spring Boot
      EmbeddedWebApplicationContext.finishRefresh
      1. org.springframework.boot.context.embedded.jetty.JettyEmbeddedWebAppContext$JettyEmbeddedServletHandler.deferredInitialize(JettyEmbeddedWebAppContext.java:46)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      2. org.springframework.boot.context.embedded.jetty.JettyEmbeddedWebAppContext.deferredInitialize(JettyEmbeddedWebAppContext.java:36)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      3. org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainer.handleDeferredInitialize(JettyEmbeddedServletContainer.java:186)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      4. org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainer.start(JettyEmbeddedServletContainer.java:121)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      5. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:297)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      6. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:145)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      6 frames
    11. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      1 frame
    12. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:315)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      6 frames
    13. com.example
      MyApplication.main
      1. com.example.MyApplication.main(MyApplication.java:14)[classes/:na]
      1 frame
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_40]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_40]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_40]
      4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_40]
      4 frames
    15. org.springframework.boot
      RestartLauncher.run
      1. org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)[spring-boot-devtools-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      1 frame