java.lang.UnsupportedOperationException: CheckStylePublisher as a interface jenkins.tasks.SimpleBuildStep could mean either hudson.plugins.jshint.CheckStylePublisher or hudson.plugins.checkstyle.CheckStylePublisher

Jenkins JIRA | Cyrille Le Clerc | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [JIRA] [workflow-plugin] (JENKINS-32476) Code Snippet Generator for 'step' should use class FQDN in case of collisions

    Google Groups | 1 year ago | cleclerc@cloudbees.com (JIRA)
    java.lang.UnsupportedOperationException: CheckStylePublisher as a interface jenkins.tasks.SimpleBuildStep could mean either hudson.plugins.jshint.CheckStylePublisher or hudson.plugins.checkstyle.CheckStylePublisher
  2. 0

    Some plugins use the same shortname for their build step class such as {{CheckStylePublisher}} with the CheckStyle Plugin ({{hudson.plugins.checkstyle.CheckStylePublisher}}) and the JSHint Plugin ({{hudson.plugins.jshint.CheckStylePublisher}}). The groovy code generated by the snipped generator is then invalid (see sample below). It would be nice if the snippet generator could generate a syntax with the fully qualified class name or if an error message could be displayed in the workflow editor. {code} step([$class: 'CheckStylePublisher', pattern: '**/checkstyle-result.xml']) {code} {noformat} java.lang.UnsupportedOperationException: CheckStylePublisher as a interface jenkins.tasks.SimpleBuildStep could mean either hudson.plugins.jshint.CheckStylePublisher or hudson.plugins.checkstyle.CheckStylePublisher at org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:226) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.buildArguments(DescribableHelper.java:185) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.instantiate(DescribableHelper.java:91) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:103) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:133) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:112) ... at java.lang.Thread.run(Thread.java:745) {noformat}

    Jenkins JIRA | 1 year ago | Cyrille Le Clerc
    java.lang.UnsupportedOperationException: CheckStylePublisher as a interface jenkins.tasks.SimpleBuildStep could mean either hudson.plugins.jshint.CheckStylePublisher or hudson.plugins.checkstyle.CheckStylePublisher
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Some plugins use the same shortname for their build step class such as {{CheckStylePublisher}} with the CheckStyle Plugin ({{hudson.plugins.checkstyle.CheckStylePublisher}}) and the JSHint Plugin ({{hudson.plugins.jshint.CheckStylePublisher}}). The groovy code generated by the snipped generator is then invalid (see sample below). It would be nice if the snippet generator could generate a syntax with the fully qualified class name or if an error message could be displayed in the workflow editor. {code} step([$class: 'CheckStylePublisher', pattern: '**/checkstyle-result.xml']) {code} {noformat} java.lang.UnsupportedOperationException: CheckStylePublisher as a interface jenkins.tasks.SimpleBuildStep could mean either hudson.plugins.jshint.CheckStylePublisher or hudson.plugins.checkstyle.CheckStylePublisher at org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:226) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.buildArguments(DescribableHelper.java:185) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.instantiate(DescribableHelper.java:91) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:103) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:133) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:112) ... at java.lang.Thread.run(Thread.java:745) {noformat}

    Jenkins JIRA | 1 year ago | Cyrille Le Clerc
    java.lang.UnsupportedOperationException: CheckStylePublisher as a interface jenkins.tasks.SimpleBuildStep could mean either hudson.plugins.jshint.CheckStylePublisher or hudson.plugins.checkstyle.CheckStylePublisher

    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.UnsupportedOperationException

      CheckStylePublisher as a interface jenkins.tasks.SimpleBuildStep could mean either hudson.plugins.jshint.CheckStylePublisher or hudson.plugins.checkstyle.CheckStylePublisher

      at org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce()
    2. org.jenkinsci.plugins
      CpsScript.invokeMethod
      1. org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:226)
      2. org.jenkinsci.plugins.workflow.structs.DescribableHelper.buildArguments(DescribableHelper.java:185)
      3. org.jenkinsci.plugins.workflow.structs.DescribableHelper.instantiate(DescribableHelper.java:91)
      4. org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:103)
      5. org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:133)
      6. org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:112)
      6 frames