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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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)

        Attachments

          Activity

          Hide
          mcsf 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.

          Show
          mcsf 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.
          Hide
          akostadinov 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?

          Show
          akostadinov 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?
          Hide
          olivergondza 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.

          Show
          olivergondza 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.
          Hide
          aszostak 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.

          Show
          aszostak 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.
          Hide
          mcsf M Chon added a comment -

          Thanks for all your help, everyone!

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: