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

Jenkins jobs build steps disappear after version upgrade to 2.46.1 due to the uninstalled Shared Objects plugin

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • envinject-plugin
    • Linux

      This morning, after I upgraded the version to 2.46.1 (latest), all my job build steps become empty in the web UI, but I can still see the job config.xml has those configuration.  I also see this error message pop up “You have data stored in an older format and/or unreadable data.) and all error messages contain this:

       

      ConversionException: org.jenkinsci.plugins.sharedobjects.SharedObjectJobProperty : org.jenkinsci.plugins.sharedobjects.SharedObjectJobProperty ---- Debugging information ---- message : org.jenkinsci.plugins.sharedobjects.SharedObjectJobProperty cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : org.jenkinsci.plugins.sharedobjects.SharedObjectJobProperty class : [Lorg.jenkinsci.plugins.envinject.model.EnvInjectJobPropertyContributor; required-type : [Lorg.jenkinsci.plugins.envinject.model.EnvInjectJobPropertyContributor; converter-type : com.thoughtworks.xstream.converters.collections.ArrayConverter path : /project/properties/EnvInjectJobProperty/contributors/org.jenkinsci.plugins.sharedobjects.SharedObjectJobProperty line number : 31 -------------------------------, MissingFieldException: No field 'org.jenkinsci.plugins.sharedobjects.ToolInstallationJobProperty' found in class 'org.jenkinsci.plugins.envinject.EnvInjectJobProperty'

          [JENKINS-43439] Jenkins jobs build steps disappear after version upgrade to 2.46.1 due to the uninstalled Shared Objects plugin

          Oleg Nenashev added a comment -

          Do you still have the SharedObjects plugin installed?

          Oleg Nenashev added a comment - Do you still have the SharedObjects plugin installed?

          Monkey Little added a comment -

          It is strange, if I go to the plugin manage page, I can't seem to find this plugin (shared objects), but the binary is on the file system???

          Monkey Little added a comment - It is strange, if I go to the plugin manage page, I can't seem to find this plugin (shared objects), but the binary is on the file system???

          Monkey Little added a comment -

          Hi Oleg,

           

          Thank you so much for quick response and you saved me !!!

          I just installed shared object plugin and it's now working!

          What remains strange is this plugin must be there before otherwise envinject plugin won't work, so why is this?  Maybe the new upgrade drop shared object plugin?  I'm not sure.

          Monkey Little added a comment - Hi Oleg,   Thank you so much for quick response and you saved me !!! I just installed shared object plugin and it's now working! What remains strange is this plugin must be there before otherwise envinject plugin won't work, so why is this?  Maybe the new upgrade drop shared object plugin?  I'm not sure.

          Oleg Nenashev added a comment -

          I am not sure what has happened as well. You may want to check the system logs for last operations with the instance. EnvInject plugin can work without SharedObjects well, but it produces extension points being used by the SharedObjects.

          XStream deserialization behavior is not perfect in this case, the data should just be skipped and then displayed in the Old Data Monitor

          Oleg Nenashev added a comment - I am not sure what has happened as well. You may want to check the system logs for last operations with the instance. EnvInject plugin can work without SharedObjects well, but it produces extension points being used by the SharedObjects. XStream deserialization behavior is not perfect in this case, the data should just be skipped and then displayed in the Old Data Monitor

          Oleg Nenashev added a comment -

          No plan to work on the XStream follow-up anytime soon. The plugin is up for adoption. Pull requests will be appreciated, reviewed and integrated if possible.

          Oleg Nenashev added a comment - No plan to work on the XStream follow-up anytime soon. The plugin is up for adoption. Pull requests will be appreciated, reviewed and integrated if possible.

            Unassigned Unassigned
            monkeylittle Monkey Little
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: