Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17402

Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • Jenkins 1.508
      Jenkins LTS 1.480.3

      I seem to be unable to select a project to copy an artifact from via the job config. Any time I try to and press save I get the following error msg:

      Exception: java.lang.RuntimeException: Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact from {"projectName":"Moho","":"0","selector":

      {"stapler-class":"hudson.plugins.copyartifact.StatusBuildSelector","stableOnly":false}

      ,"filter":"*//mysql.provisioning.sql-*.tar.gz","target":"target/artifacts/","parameters":"","flatten":true,"optional":false,"stapler-class":"hudson.plugins.copyartifact.CopyArtifact","kind":"hudson.plugins.copyartifact.CopyArtifact"}
      Stacktrace:

      Full logs: https://gist.github.com/johntdyer/4ecd0135fad5586c637f

      This is version 1.26

          [JENKINS-17402] Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact

          John Dyer created issue -

          Jesse Glick added a comment -

          Probably related to fix of JENKINS-13222, but the bug is in the Maven plugin: MavenModuleSet.getItem(String) may return null if there is no such child but it may not throw some unchecked exception.

          Jesse Glick added a comment - Probably related to fix of JENKINS-13222 , but the bug is in the Maven plugin: MavenModuleSet.getItem(String) may return null if there is no such child but it may not throw some unchecked exception.
          Jesse Glick made changes -
          Component/s New: maven [ 16033 ]
          Component/s Original: copyartifact [ 15692 ]
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-13222 [ JENKINS-13222 ]

          Tom Ghyselinck added a comment - - edited

          We are also teased by this issue.

          Some more details from our side:

          We use Jenkins LTS 1.480.3

          Whenever the Project name is filled in, the CopyArtifact cannot be initiated any more.
          Other fields do not seem to give troubles.

          Any estimation of time to fix this?

          Tom Ghyselinck added a comment - - edited We are also teased by this issue. Some more details from our side: We use Jenkins LTS 1.480.3 Whenever the Project name is filled in, the CopyArtifact cannot be initiated any more. Other fields do not seem to give troubles. Any estimation of time to fix this?
          Tom Ghyselinck made changes -
          Environment Original: Jenkins 1.508 New: Jenkins 1.508
          Jenkins LTS 1.480.3

          jhurne added a comment -

          Is there a workaround for this problem (maybe using the Jenkins console or REST API)? No matter what I do, I cannot get the Config GUI to allow me to set the project name.

          jhurne added a comment - Is there a workaround for this problem (maybe using the Jenkins console or REST API)? No matter what I do, I cannot get the Config GUI to allow me to set the project name.
          Jesse Glick made changes -
          Labels New: lts-candidate

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/src/main/java/hudson/model/ItemGroup.java
          maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java
          test/src/test/java/hudson/maven/MavenModuleSetTest.java
          http://jenkins-ci.org/commit/jenkins/7fa8fe4096d0134f598a9d475df1c6199b9b05e7
          Log:
          [FIXED JENKINS-17402] getItem may return null but may not throw IAE.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/model/ItemGroup.java maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java test/src/test/java/hudson/maven/MavenModuleSetTest.java http://jenkins-ci.org/commit/jenkins/7fa8fe4096d0134f598a9d475df1c6199b9b05e7 Log: [FIXED JENKINS-17402] getItem may return null but may not throw IAE.
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            johntdyer John Dyer
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: