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

NotSerializableException with javancss and slave

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • javancss-plugin
    • None
    • Platform: All, OS: All

    Description

      When running the javancss plugin on a build run on a slave node, I get a
      NotSerializableException. This did not happen initially, when I was running
      against four projects' worth of reports, but when I added a couple more
      projects' reports to the mix, I started getting this error. Turning off javancss
      got rid of the exception, but I'm not sure how to debug further.

      Attachments

        Activity

          abayer Andrew Bayer added a comment -

          Created an attachment (id=586)
          Stack trace of JavaNCSS plugin failure

          abayer Andrew Bayer added a comment - Created an attachment (id=586) Stack trace of JavaNCSS plugin failure
          abayer Andrew Bayer added a comment -

          One correction - this kicked in when I went from one project's report to four
          projects' reports.

          abayer Andrew Bayer added a comment - One correction - this kicked in when I went from one project's report to four projects' reports.
          abayer Andrew Bayer added a comment -

          Found the problem: the merge method in the Statistic class was using a HashMap
          with Statistic as the value, and then eventually invoking the .values() method
          of that map. For some reason that I admittedly am not quite sure about, that
          resulted in the NotSerializableException. I'm working up an alternative solution
          now.

          abayer Andrew Bayer added a comment - Found the problem: the merge method in the Statistic class was using a HashMap with Statistic as the value, and then eventually invoking the .values() method of that map. For some reason that I admittedly am not quite sure about, that resulted in the NotSerializableException. I'm working up an alternative solution now.
          abayer Andrew Bayer added a comment -

          Created an attachment (id=596)
          Proposed patch for JavaNCSS plugin serializable exception with slaves and multiple reports

          abayer Andrew Bayer added a comment - Created an attachment (id=596) Proposed patch for JavaNCSS plugin serializable exception with slaves and multiple reports
          abayer Andrew Bayer added a comment -

          Taking ownership and committing fix.

          abayer Andrew Bayer added a comment - Taking ownership and committing fix.

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/plugins/javancss/src/main/java/hudson/plugins/javancss/parser/Statistic.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=16059
          Log:
          [FIXED JENKINS-3194] Fixing NonSerializableException when merging results on a slave

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/plugins/javancss/src/main/java/hudson/plugins/javancss/parser/Statistic.java http://fisheye4.cenqua.com/changelog/hudson/?cs=16059 Log: [FIXED JENKINS-3194] Fixing NonSerializableException when merging results on a slave

          People

            abayer Andrew Bayer
            abayer Andrew Bayer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: