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

NotSerializableException with javancss and slave

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: javancss-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      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

          Hide
          abayer Andrew Bayer added a comment -

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

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

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

          Show
          abayer Andrew Bayer added a comment - One correction - this kicked in when I went from one project's report to four projects' reports.
          Hide
          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.

          Show
          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.
          Hide
          abayer Andrew Bayer added a comment -

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

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

          Taking ownership and committing fix.

          Show
          abayer Andrew Bayer added a comment - Taking ownership and committing fix.
          Hide
          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

          Show
          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

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

              Dates

              Created:
              Updated:
              Resolved: