com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in org.jenkinsci.plugins.workflow.support.steps.ExecutorStep. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

Jenkins JIRA | Yoann Dubreuil | 2 years ago
  1. 0

    A customer had this exception after restarting Jenkins: {code} com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in org.jenkinsci.plugins.workflow.support.steps.ExecutorStep. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private. at org.jenkinsci.plugins.workflow.support.steps.ExecutorStep.class(Unknown Source) while locating org.jenkinsci.plugins.workflow.support.steps.ExecutorStep for field at org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution.step(Unknown Source) while locating org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution 1 error at com.google.inject.internal.InjectorImpl.getMembersInjector(InjectorImpl.java:981) at com.google.inject.internal.InjectorImpl.getMembersInjector(InjectorImpl.java:986) at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:972) at org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl.inject(AbstractStepExecutionImpl.java:35) at org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl.onResume(AbstractStepExecutionImpl.java:30) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:171) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:167) at com.google.common.util.concurrent.Futures$6.run(Futures.java:975) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:134) at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:170) at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5.onSuccess(CpsFlowExecution.java:561) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5.onSuccess(CpsFlowExecution.java:549) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$4$1.run(CpsFlowExecution.java:503) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:32) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:111) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Finished: FAILURE {code}

    Jenkins JIRA | 2 years ago | Yoann Dubreuil
    com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in org.jenkinsci.plugins.workflow.support.steps.ExecutorStep. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
  2. 0

    A customer had this exception after restarting Jenkins: {code} com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in org.jenkinsci.plugins.workflow.support.steps.ExecutorStep. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private. at org.jenkinsci.plugins.workflow.support.steps.ExecutorStep.class(Unknown Source) while locating org.jenkinsci.plugins.workflow.support.steps.ExecutorStep for field at org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution.step(Unknown Source) while locating org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution 1 error at com.google.inject.internal.InjectorImpl.getMembersInjector(InjectorImpl.java:981) at com.google.inject.internal.InjectorImpl.getMembersInjector(InjectorImpl.java:986) at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:972) at org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl.inject(AbstractStepExecutionImpl.java:35) at org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl.onResume(AbstractStepExecutionImpl.java:30) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:171) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:167) at com.google.common.util.concurrent.Futures$6.run(Futures.java:975) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:134) at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:170) at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5.onSuccess(CpsFlowExecution.java:561) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5.onSuccess(CpsFlowExecution.java:549) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$4$1.run(CpsFlowExecution.java:503) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:32) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:111) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Finished: FAILURE {code}

    Jenkins JIRA | 2 years ago | Yoann Dubreuil
    com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in org.jenkinsci.plugins.workflow.support.steps.ExecutorStep. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
  3. 0

    I started a workflow which began with a {{node}} step which was waiting for an executor slot, then restarted Jenkins. After restart the flow failed: {code:none} Started by user anonymous Running: Allocate node : Start Still waiting to schedule task Waiting for next available executor on evarga-jenkins-slave Resuming build Resuming build Running: Allocate node : End Running: End of Workflow com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in org.jenkinsci.plugins.workflow.support.steps.ExecutorStep. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private. at org.jenkinsci.plugins.workflow.support.steps.ExecutorStep.class(ExecutorStep.java:63) while locating org.jenkinsci.plugins.workflow.support.steps.ExecutorStep for field at org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution.step(ExecutorStepExecution.java:57) while locating org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution 1 error at com.google.inject.internal.InjectorImpl.getMembersInjector(InjectorImpl.java:985) at com.google.inject.internal.InjectorImpl.getMembersInjector(InjectorImpl.java:990) at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:976) at org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl.inject(AbstractStepExecutionImpl.java:35) at org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl.onResume(AbstractStepExecutionImpl.java:30) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:171) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:167) at com.google.common.util.concurrent.Futures$6.run(Futures.java:975) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149) at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:105) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:155) at com.google.common.util.concurrent.Futures.addCallback(Futures.java:985) at com.google.common.util.concurrent.Futures.addCallback(Futures.java:915) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl.onLoaded(FlowExecutionList.java:167) at jenkins.model.Jenkins.<init>(Jenkins.java:862) at hudson.model.Hudson.<init>(Hudson.java:83) at hudson.model.Hudson.<init>(Hudson.java:79) at hudson.WebAppMain$3.run(WebAppMain.java:225) Finished: FAILURE {code} Presumably {code} @Inject private transient ExecutorStep step; {code} should say {code} @Inject(optional=true) private transient ExecutorStep step; {code} though I wonder why this does not _always_ break when restarting flows in the middle of {{node}}; perhaps the call to {{newBodyInvoker}} after the node has been allocated somehow prevents the problem?

    Jenkins JIRA | 2 years ago | Jesse Glick
    com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in org.jenkinsci.plugins.workflow.support.steps.ExecutorStep. 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

    I started a workflow which began with a {{node}} step which was waiting for an executor slot, then restarted Jenkins. After restart the flow failed: {code:none} Started by user anonymous Running: Allocate node : Start Still waiting to schedule task Waiting for next available executor on evarga-jenkins-slave Resuming build Resuming build Running: Allocate node : End Running: End of Workflow com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in org.jenkinsci.plugins.workflow.support.steps.ExecutorStep. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private. at org.jenkinsci.plugins.workflow.support.steps.ExecutorStep.class(ExecutorStep.java:63) while locating org.jenkinsci.plugins.workflow.support.steps.ExecutorStep for field at org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution.step(ExecutorStepExecution.java:57) while locating org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution 1 error at com.google.inject.internal.InjectorImpl.getMembersInjector(InjectorImpl.java:985) at com.google.inject.internal.InjectorImpl.getMembersInjector(InjectorImpl.java:990) at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:976) at org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl.inject(AbstractStepExecutionImpl.java:35) at org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl.onResume(AbstractStepExecutionImpl.java:30) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:171) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:167) at com.google.common.util.concurrent.Futures$6.run(Futures.java:975) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149) at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:105) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:155) at com.google.common.util.concurrent.Futures.addCallback(Futures.java:985) at com.google.common.util.concurrent.Futures.addCallback(Futures.java:915) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl.onLoaded(FlowExecutionList.java:167) at jenkins.model.Jenkins.<init>(Jenkins.java:862) at hudson.model.Hudson.<init>(Hudson.java:83) at hudson.model.Hudson.<init>(Hudson.java:79) at hudson.WebAppMain$3.run(WebAppMain.java:225) Finished: FAILURE {code} Presumably {code} @Inject private transient ExecutorStep step; {code} should say {code} @Inject(optional=true) private transient ExecutorStep step; {code} though I wonder why this does not _always_ break when restarting flows in the middle of {{node}}; perhaps the call to {{newBodyInvoker}} after the node has been allocated somehow prevents the problem?

    Jenkins JIRA | 2 years ago | Jesse Glick
    com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in org.jenkinsci.plugins.workflow.support.steps.ExecutorStep. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
  6. 0

    Validar os parametros dos metodos nos controllers Vraptor

    Google Groups | 3 years ago | Bruno Marinho
    com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in br.com.caelum.vraptor.validator.MethodValidatorInterceptor. 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.ConfigurationException

      Guice configuration errors: 1) Could not find a suitable constructor in org.jenkinsci.plugins.workflow.support.steps.ExecutorStep. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

      at org.jenkinsci.plugins.workflow.support.steps.ExecutorStep.class()
    2. org.jenkinsci.plugins
      ExecutorStep.class
      1. org.jenkinsci.plugins.workflow.support.steps.ExecutorStep.class(Unknown Source)
      1 frame