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

hudson.maven.MavenBuild MissingFieldException: No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction'

      I get this "old daata" warning after update.
      Can't finy any word about this in the changelogs.
      Is this ok to be removed?

      The error's stacktrace for a Free-Style Project:

      Apr 07, 2014 8:02:38 AM hudson.util.RobustReflectionConverter doUnmarshal
      WARNING: Skipping a non-existent field targetType
      com.thoughtworks.xstream.converters.reflection.MissingFieldException: No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction'
      at com.thoughtworks.xstream.converters.reflection.FieldDictionary.field(FieldDictionary.java:94)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.getFieldType(PureJavaReflectionProvider.java:157)
      at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:399)
      at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:271)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
      at hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionConverter.java:85)
      at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
      at hudson.util.RobustCollectionConverter.unmarshal(RobustCollectionConverter.java:76)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:333)
      at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:275)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
      at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1061)
      at hudson.util.XStream2.unmarshal(XStream2.java:109)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)
      at hudson.XmlFile.unmarshal(XmlFile.java:166)
      at hudson.model.Run.reload(Run.java:310)
      at hudson.model.Run.<init>(Run.java:299)
      at hudson.model.AbstractBuild.<init>(AbstractBuild.java:180)
      at hudson.model.Build.<init>(Build.java:103)
      at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:41)
      at sun.reflect.GeneratedConstructorAccessor105.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at hudson.model.AbstractProject.loadBuild(AbstractProject.java:1129)
      at hudson.model.AbstractProject$1.create(AbstractProject.java:325)
      at hudson.model.AbstractProject$1.create(AbstractProject.java:323)
      at hudson.model.RunMap.retrieve(RunMap.java:225)
      at hudson.model.RunMap.retrieve(RunMap.java:59)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:674)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:657)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:499)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:533)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:379)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.newestBuild(AbstractLazyLoadRunMap.java:321)
      at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:1066)
      at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:144)
      at hudson.plugins.disk_usage.DiskUsageThread.calculateWorkspaceDiskUsage(DiskUsageThread.java:124)
      at hudson.plugins.disk_usage.DiskUsageThread.execute(DiskUsageThread.java:64)
      at hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:53)
      at java.lang.Thread.run(Thread.java:724)

      The sample JobConfigBadgeAction from build.xml:

      <hudson.plugins.jobConfigHistory.JobConfigBadgeAction plugin="jobConfigHistory@2.4">
      <targetType>hudson.model.AbstractBuild</targetType>
      <configDates>
      <string>2013-09-18_13-06-58</string>
      <string>2013-05-27_06-38-21</string>
      </configDates>
      <build class="build" reference="../../.."/>
      </hudson.plugins.jobConfigHistory.JobConfigBadgeAction>

          [JENKINS-20511] hudson.maven.MavenBuild MissingFieldException: No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction'

          Hello cforce, I am not able to reproduce this.

          • Which version of Jenkins are you using?
          • Which version of the jobConfigHistory-plugin are you using?
          • Do you use the embedded container (do you start Jenkins with java -jar jenkins.war)?
          • What kind of jobs are showing the behavior (Freestyle or Maven job type)?

          Mirko Friedenhagen added a comment - Hello cforce , I am not able to reproduce this. Which version of Jenkins are you using? Which version of the jobConfigHistory-plugin are you using? Do you use the embedded container (do you start Jenkins with java -jar jenkins.war )? What kind of jobs are showing the behavior (Freestyle or Maven job type)?

          cforce added a comment -

          Using Jenkins 1.538, but also appreared on 1.537.
          Jenkins Job Configuration History Plugin, Job history plugin for Jenkins, 2.5

          Using jenkins.war in Tomcat 7

          cforce added a comment - Using Jenkins 1.538, but also appreared on 1.537. Jenkins Job Configuration History Plugin, Job history plugin for Jenkins, 2.5 Using jenkins.war in Tomcat 7

          cforce added a comment -

          Even if i remove the "untreadable data, i get them again afters some time /builds..

          cforce added a comment - Even if i remove the "untreadable data, i get them again afters some time /builds..

          Mirko Friedenhagen:

          I think you need both the jobConfigHistory plugin and the [Build Trigger Badge Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Build+Trigger+Badge+Plugin).

          Run a couple builds and it'll start generating the bogus stuff.

          e.g.

          hudson.model.FreeStyleBuild Maven Seed #18 MissingFieldException: No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction'
          hudson.maven.MavenModuleSetBuild MavenParents #43 MissingFieldException: No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction'
          hudson.maven.MavenModuleSetBuild MavenParents #54 MissingFieldException: No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction'
          hudson.model.FreeStyleBuild Maven Seed #6 MissingFieldException: No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction'

          I'm willing to run any groovy you want to give you better data.

          Christian Höltje added a comment - Mirko Friedenhagen: I think you need both the jobConfigHistory plugin and the [Build Trigger Badge Plugin] ( https://wiki.jenkins-ci.org/display/JENKINS/Build+Trigger+Badge+Plugin ). Run a couple builds and it'll start generating the bogus stuff. e.g. hudson.model.FreeStyleBuild Maven Seed #18 MissingFieldException: No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction' hudson.maven.MavenModuleSetBuild MavenParents #43 MissingFieldException: No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction' hudson.maven.MavenModuleSetBuild MavenParents #54 MissingFieldException: No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction' hudson.model.FreeStyleBuild Maven Seed #6 MissingFieldException: No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction' I'm willing to run any groovy you want to give you better data.

          FYI:
          Jenkins 1.509.4
          Jenkins Job Configuration History Plugin: 2.5
          Build Trigger Badge Plugin: 1.1

          Christian Höltje added a comment - FYI: Jenkins 1.509.4 Jenkins Job Configuration History Plugin: 2.5 Build Trigger Badge Plugin: 1.1

          Hello,

          see https://huschteguzzel.de/hudson/job/jenkinsci-jobConfigHistory-plugin/, I have the Build Badge plugin but do not see these error messages in the log file.

          Regards
          Mirko

          Mirko Friedenhagen added a comment - Hello, see https://huschteguzzel.de/hudson/job/jenkinsci-jobConfigHistory-plugin/ , I have the Build Badge plugin but do not see these error messages in the log file. Regards Mirko

          Huh....can you try editing the config and kick off a new build?

          I also update my configuration regularly...and I see the monkey wrench on all of the ones I listed above and they were also manually kicked off.

          Ciao!

          PS: I wasn't thinking and dismissed the warning. How do I get it back?

          Christian Höltje added a comment - Huh....can you try editing the config and kick off a new build? I also update my configuration regularly...and I see the monkey wrench on all of the ones I listed above and they were also manually kicked off. Ciao! PS: I wasn't thinking and dismissed the warning. How do I get it back?

          Oh, and the builds all failed, too...that's interesting as well.

          Christian Höltje added a comment - Oh, and the builds all failed, too...that's interesting as well.

          Oleg Nenashev added a comment -

          I see this bug on 1.509.4 without JobConfigBadgeAction.

          Some additional info (may be useless):

          • I haven't seen "targetType" complains after migration to 2.5 and restart
          • Seems the issue has appeared after a hard reset of Jenkins master (VM has lost connection to its storage)

          Oleg Nenashev added a comment - I see this bug on 1.509.4 without JobConfigBadgeAction. Some additional info (may be useless): I haven't seen "targetType" complains after migration to 2.5 and restart Seems the issue has appeared after a hard reset of Jenkins master (VM has lost connection to its storage)

          Oleg Nenashev added a comment -

          The error also spams to "System errors log" in Monitoring plugin...

          Oleg Nenashev added a comment - The error also spams to "System errors log" in Monitoring plugin...

          Janne Enberg added a comment -

          I have this same issue, I migrated jobs from our old build server running 1.527 to a new server running 1.539 by copying the jobs folders over. Then I proceeded to check which of the plugins were really in use and installed a handful of those, and eventually managed to get all of the old data warnings to disappear.

          Then a while later, these warnings started to appear. It doesn't seem to cause any issues, nor can I find a fix for it.

          Janne Enberg added a comment - I have this same issue, I migrated jobs from our old build server running 1.527 to a new server running 1.539 by copying the jobs folders over. Then I proceeded to check which of the plugins were really in use and installed a handful of those, and eventually managed to get all of the old data warnings to disappear. Then a while later, these warnings started to appear. It doesn't seem to cause any issues, nor can I find a fix for it.

          Audrey Azra added a comment - - edited

          We also see this bug on Jenkins LTS 1.509.4 ; We don't have buildtriggerbadge installed
          This appears post upgrade from jobconfighistory 2.4 to 2.5
          Both Freestyle & Maven job types affected

          Audrey Azra added a comment - - edited We also see this bug on Jenkins LTS 1.509.4 ; We don't have buildtriggerbadge installed This appears post upgrade from jobconfighistory 2.4 to 2.5 Both Freestyle & Maven job types affected

          Timo Leinonen added a comment -

          Same issue here. Using Jenkins LTS 1.509.4.

          Experience the issue with JobConfigHistory 2.5. Reverting to version 2.4 solves the issue.

          Timo Leinonen added a comment - Same issue here. Using Jenkins LTS 1.509.4. Experience the issue with JobConfigHistory 2.5. Reverting to version 2.4 solves the issue.

          Hannes Kogler added a comment -

          same here. => LTS 1.532.2
          plugin 2.5

          Hannes Kogler added a comment - same here. => LTS 1.532.2 plugin 2.5

          I am still not able to reproduce this

          Mirko Friedenhagen added a comment - I am still not able to reproduce this

          After upgrading to 2.5 I see
          1) old data warnings
          2) loss of build badges

          This happens on all freestyle jobs I checked. (I don't have any Maven jobs).

          I roll back to 2.4 & both conditions reverse.
          I'm on Jenkins ver. 1.513, on CentOS.
          I'm not using Build Trigger Badge Plugin.

          G. Ann Campbell added a comment - After upgrading to 2.5 I see 1) old data warnings 2) loss of build badges This happens on all freestyle jobs I checked. (I don't have any Maven jobs). I roll back to 2.4 & both conditions reverse. I'm on Jenkins ver. 1.513, on CentOS. I'm not using Build Trigger Badge Plugin.

          I do see the issue on
          Jenkins LTS 1.532.1 with Job Configuration History Plugin 2.5.
          Every time a new build is triggered on Maven Jobs there is a new entry added to the Unreadable data warnings.

          Konrad Windszus added a comment - I do see the issue on Jenkins LTS 1.532.1 with Job Configuration History Plugin 2.5. Every time a new build is triggered on Maven Jobs there is a new entry added to the Unreadable data warnings.

          Code changed in jenkins
          User: Stefan Brausch
          Path:
          src/main/java/hudson/plugins/jobConfigHistory/JobConfigBadgeAction.java
          http://jenkins-ci.org/commit/jobConfigHistory-plugin/2bec521905afc13a5d56c741c72c8f931c47e64f
          Log:
          JENKINS-20511 Try to fix MissingFieldException

          Looks like this error comes from RunListener. Trying to extends
          RunListener with more information.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stefan Brausch Path: src/main/java/hudson/plugins/jobConfigHistory/JobConfigBadgeAction.java http://jenkins-ci.org/commit/jobConfigHistory-plugin/2bec521905afc13a5d56c741c72c8f931c47e64f Log: JENKINS-20511 Try to fix MissingFieldException Looks like this error comes from RunListener. Trying to extends RunListener with more information.

          Ronen Peleg added a comment -

          Same issue on LTS 1.509.3

          Error message:
          "No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction'"

          Ronen Peleg added a comment - Same issue on LTS 1.509.3 Error message: "No field 'targetType' found in class 'hudson.plugins.jobConfigHistory.JobConfigBadgeAction'"

          Oleg Nenashev added a comment -

          I'm not sure that the latest change solves the issue. // https://github.com/jenkinsci/jobConfigHistory-plugin/commit/2bec521905afc13a5d56c741c72c8f931c47e64f
          Does anybody has a reproducible scenario for the unit test?

          Oleg Nenashev added a comment - I'm not sure that the latest change solves the issue. // https://github.com/jenkinsci/jobConfigHistory-plugin/commit/2bec521905afc13a5d56c741c72c8f931c47e64f Does anybody has a reproducible scenario for the unit test?

          Oleg Nenashev added a comment -

          Added a full stack trace for the free-style project affected by the issue

          Oleg Nenashev added a comment - Added a full stack trace for the free-style project affected by the issue

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          src/main/java/hudson/plugins/jobConfigHistory/JobConfigBadgeAction.java
          http://jenkins-ci.org/commit/jobConfigHistory-plugin/52f833d0328e80295f2a238f7a02ae1c08f13511
          Log:
          [FIXED JENKINS-20511] - Suppress the targetType loading issue

          The change creates a stub field, which allows to ignore changes

          Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/hudson/plugins/jobConfigHistory/JobConfigBadgeAction.java http://jenkins-ci.org/commit/jobConfigHistory-plugin/52f833d0328e80295f2a238f7a02ae1c08f13511 Log: [FIXED JENKINS-20511] - Suppress the targetType loading issue The change creates a stub field, which allows to ignore changes Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>

          Code changed in jenkins
          User: Stefan Brausch
          Path:
          src/main/java/hudson/plugins/jobConfigHistory/JobConfigBadgeAction.java
          http://jenkins-ci.org/commit/jobConfigHistory-plugin/4bbc0f8eee7b9cf0087db5afa01f96f5b61cd1ba
          Log:
          Merge pull request #28 from synopsys-arc-oss/JENKINS-20511-targetType-fix

          [FIXED JENKINS-20511] - Suppress the targetType loading issue

          Compare: https://github.com/jenkinsci/jobConfigHistory-plugin/compare/3a1b0d9b56bd...4bbc0f8eee7b

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stefan Brausch Path: src/main/java/hudson/plugins/jobConfigHistory/JobConfigBadgeAction.java http://jenkins-ci.org/commit/jobConfigHistory-plugin/4bbc0f8eee7b9cf0087db5afa01f96f5b61cd1ba Log: Merge pull request #28 from synopsys-arc-oss/ JENKINS-20511 -targetType-fix [FIXED JENKINS-20511] - Suppress the targetType loading issue Compare: https://github.com/jenkinsci/jobConfigHistory-plugin/compare/3a1b0d9b56bd...4bbc0f8eee7b

            mfriedenhagen Mirko Friedenhagen
            cforce cforce
            Votes:
            12 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: