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

Upgrade of copy-project-link from v1.1 to v1.2 fails

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins v1.532.2

      After upgrading the plugin from version v1.1 to v1.2 and restarting the jenkins instance I no longer see the copy link in the interface and find the following error in the logs:

      WARNING: Failed to load hudson.plugins.copyProjectLink.CopyFolderActionFactory
      java.lang.InstantiationException: /opt/jenkins/data/plugins/copy-project-link/WEB-INF/lib/classes.jar might need to be rebuilt: java.lang.ClassNotFoundException: hudson.plugins.copyProjectLink.CopyFolderActionFactory
      at net.java.sezpoz.IndexItem.element(IndexItem.java:144)
      at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:504)
      at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
      at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:230)
      at com.google.inject.spi.Elements.getElements(Elements.java:103)
      at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136)
      at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
      at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:230)
      at hudson.ExtensionFinder$GuiceFinder.refresh(ExtensionFinder.java:336)
      at jenkins.model.Jenkins.refreshExtensions(Jenkins.java:2154)
      at hudson.PluginManager.dynamicLoad(PluginManager.java:431)
      at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1313)
      at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1116)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:104)
      at java.lang.Thread.run(Thread.java:701)
      Caused by: java.lang.ClassNotFoundException: hudson.plugins.copyProjectLink.CopyFolderActionFactory
      at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:985)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
      at net.java.sezpoz.IndexItem.element(IndexItem.java:134)

          [JENKINS-22363] Upgrade of copy-project-link from v1.1 to v1.2 fails

          Caused by optional dependency (cloudbees-folders plugin) not being installed. Fixed in 1.3.

          Oliver Gondža added a comment - Caused by optional dependency (cloudbees-folders plugin) not being installed. Fixed in 1.3 .

          Artur Szostak added a comment -

          Can confirm the upgrade from v1.1 to v1.4 works. (Jenkins version at time of upgrade was 1.565.1)

          Artur Szostak added a comment - Can confirm the upgrade from v1.1 to v1.4 works. (Jenkins version at time of upgrade was 1.565.1)

          M Chon added a comment -

          I do not have Copy Project Link plugin installed at all.
          I am still getting the error after upgrading base Jenkins to LTS 1.651.3.
          I will try installing Copy Project Link (latest v1.5) to see if that will resolve the error.

          M Chon added a comment - I do not have Copy Project Link plugin installed at all. I am still getting the error after upgrading base Jenkins to LTS 1.651.3. I will try installing Copy Project Link (latest v1.5) to see if that will resolve the error.

          M Chon added a comment -

          OK, the Copy Project Link error seems to have gone away. I am gettting this error, though:

          INFO: Prepared all plugins
          Jul 07, 2016 10:44:35 AM hudson.ExtensionFinder$Sezpoz scout
          WARNING: Failed to scout com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty$DescriptorImpl
          java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor
                  at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
                  at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:662)
                  at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:383)
                  at hudson.ExtensionList.load(ExtensionList.java:349)
                  at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
                  at hudson.ExtensionList.iterator(ExtensionList.java:156)
                  at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:382)
                  at hudson.ExtensionList.load(ExtensionList.java:349)
                  at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
                  at hudson.ExtensionList.iterator(ExtensionList.java:156)
                  at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1233)
                  at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:152)
                  at hudson.plugins.copyartifact.CopyArtifactPlugin.postInitialize(CopyArtifactPlugin.java:35)
                  at hudson.PluginManager$2$1$2.run(PluginManager.java:425)
                  at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
                  at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
                  at jenkins.model.Jenkins$8.runTask(Jenkins.java:926)
                  at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
                  at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                  at java.lang.Thread.run(Thread.java:745)
          Caused by: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor
                  at java.lang.ClassLoader.defineClass1(Native Method)
                  at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
                  at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
                  at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:802)
                  at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
                  at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
                  at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
                  at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          
          

          M Chon added a comment - OK, the Copy Project Link error seems to have gone away. I am gettting this error, though: INFO: Prepared all plugins Jul 07, 2016 10:44:35 AM hudson.ExtensionFinder$Sezpoz scout WARNING: Failed to scout com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty$DescriptorImpl java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor at net.java.sezpoz.IndexItem.element(IndexItem.java:146) at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:662) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:383) at hudson.ExtensionList.load(ExtensionList.java:349) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.iterator(ExtensionList.java:156) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:382) at hudson.ExtensionList.load(ExtensionList.java:349) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.iterator(ExtensionList.java:156) at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1233) at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:152) at hudson.plugins.copyartifact.CopyArtifactPlugin.postInitialize(CopyArtifactPlugin.java:35) at hudson.PluginManager$2$1$2.run(PluginManager.java:425) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$8.runTask(Jenkins.java:926) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang. Thread .run( Thread .java:745) Caused by: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor at java.lang. ClassLoader .defineClass1(Native Method) at java.lang. ClassLoader .defineClass( ClassLoader .java:760) at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139) at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:802) at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310) at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326) at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          mcsf, the error you are observing without the plugin installed is certainly not the same as the one reported. Also, the stacktrace has nothing to with this bug. See https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue

          Oliver Gondža added a comment - mcsf , the error you are observing without the plugin installed is certainly not the same as the one reported. Also, the stacktrace has nothing to with this bug. See https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue

          M Chon added a comment -

          I think I was able to get the messages to go away by installing the Cloudbees Folders Plugin.
          Perhaps Jenkins should automatically pull in this plugin as a dependency.

          M Chon added a comment - I think I was able to get the messages to go away by installing the Cloudbees Folders Plugin. Perhaps Jenkins should automatically pull in this plugin as a dependency.

          akostadinov added a comment -

          After last week plug-in upgrade, some people started to hit such issues. Installing the Folders plugin resolved the issue. I think some plugin(s) was changed to require it but proper dependencies have not been set.
          Any idea how to find this out? Can we somehow check which plugins refer to `com/cloudbees/hudson/plugins/folder/AbstractFolder` and add the plugin as a dependency?

          akostadinov added a comment - After last week plug-in upgrade, some people started to hit such issues. Installing the Folders plugin resolved the issue. I think some plugin(s) was changed to require it but proper dependencies have not been set. Any idea how to find this out? Can we somehow check which plugins refer to `com/cloudbees/hudson/plugins/folder/AbstractFolder` and add the plugin as a dependency?

          The reported issue ware resolved in 1.3 (at least I attempted to fix that) and there is a confirming comment in this issue that verified the fix in 1.4. If you still observe Failed to scout hudson.plugins.copyProjectLink.CopyFolderActionFactory: java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/TransientFolderActionFactory, please attach plugin version, jenkins version, cloudbees folder version - if installed.

          Oliver Gondža added a comment - The reported issue ware resolved in 1.3 (at least I attempted to fix that) and there is a confirming comment in this issue that verified the fix in 1.4. If you still observe Failed to scout hudson.plugins.copyProjectLink.CopyFolderActionFactory: java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/TransientFolderActionFactory , please attach plugin version, jenkins version, cloudbees folder version - if installed.

          Artur Szostak added a comment -

          OK, everyone. I created this ticket and I confirmed that the from v1.4 the plugin fixes the originally reported problem. Reading through the comments again, there is no strong evidence that whatever anyone else is seeing now has anything to do with the original bug post.
          This ticket is done. If you do not see the same stack trace as in the original post then please create a new ticket. Mixing different problems into the same ticket does not help anyone.
          Cheers.

          Artur Szostak added a comment - OK, everyone. I created this ticket and I confirmed that the from v1.4 the plugin fixes the originally reported problem. Reading through the comments again, there is no strong evidence that whatever anyone else is seeing now has anything to do with the original bug post. This ticket is done. If you do not see the same stack trace as in the original post then please create a new ticket. Mixing different problems into the same ticket does not help anyone. Cheers.

          M Chon added a comment -

          Thanks for all your help, everyone!

          M Chon added a comment - Thanks for all your help, everyone!

            olivergondza Oliver Gondža
            aszostak Artur Szostak
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: