com.google.inject.CreationException: Guice creation errors: 1) Could not find a suitable constructor in io.jenkins.blueocean.BlueOceanUI. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

Jenkins JIRA | Michael Neale | 4 months ago
  1. 0

    When blueocean (UX) plugin is installed from experimental update center, during install it gives error due to certain plugin not able to resolve guice dependency as other plugin injecting instance is not loaded yet. This happens with 'Install without Restart option'. After restart this error goes aways as Jenkins in this case resolves dependencies correctly. INFO: Attempting to dynamic load /Users/vivek/Downloads/jh/plugins/blueocean-rest.jpi Aug 11, 2016 6:49:33 AM hudson.ExtensionFinder$GuiceFinder refresh SEVERE: Failed to create Guice container from newly added plugins com.google.inject.CreationException: Guice creation errors: 1) Could not find a suitable constructor in io.jenkins.blueocean.BlueOceanUI. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private. at io.jenkins.blueocean.BlueOceanUI.class(BlueOceanUI.java:15) while locating io.jenkins.blueocean.BlueOceanUI for field at io.jenkins.blueocean.rest.ApiHead.blueOceanUI(ApiHead.java:33) at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:508) These errors do not appear if 'Download now and install after restart' is selected.

    Jenkins JIRA | 4 months ago | Michael Neale
    com.google.inject.CreationException: Guice creation errors: 1) Could not find a suitable constructor in io.jenkins.blueocean.BlueOceanUI. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
  2. 0

    Custom scopes: Enumeration and instantiation

    Google Groups | 6 years ago | Martin Aspeli
    com.google.inject.CreationException: Guice creation errors: 1) Could not find a suitable constructor in org.jadapter.tests.guice.SourceToTarget. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
  3. 0

    Could not find a suitable constructor in com.sun.jersey.guice.spi.container.servlet.GuiceContainer

    Stack Overflow | 5 years ago | TerenceJackson
    com.google.inject.CreationException: Guice creation errors: 1) Could not find a suitable constructor in com.sun.jersey.guice.spi.container.servlet.GuiceContainer. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    injection of TaskStorageConfig broken for tutorials

    GitHub | 2 years ago | xvrl
    com.google.inject.CreationException: Guice creation errors: 1) Could not find a suitable constructor in io.druid.indexing.common.config.TaskStorageConfig. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
  6. 0

    Guice: Creation exception in Junit test class

    Stack Overflow | 1 year ago | Naruto Uzumaki
    com.google.inject.CreationException: Guice creation errors: 1) Could not find a suitable constructor in io.dropwizard.setup.Environment. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

    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. com.google.inject.CreationException

      Guice creation errors: 1) Could not find a suitable constructor in io.jenkins.blueocean.BlueOceanUI. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

      at io.jenkins.blueocean.BlueOceanUI.class()
    2. io.jenkins.blueocean
      BlueOceanUI.class
      1. io.jenkins.blueocean.BlueOceanUI.class(BlueOceanUI.java:15)
      1 frame