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

IOException with Clover 4.6 plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: clover-plugin
    • Labels:
      None
    • Environment:
      clover plugin 4.6
      jenkins 1.648
    • Similar Issues:

      Description

      I am seeing a new IOException since upgrading to v4.60 of the clover plugin in a job running on a linux ec2 slave

      Archiving artifacts
      Publishing Clover coverage report...
      Publishing Clover HTML report...
      Publishing Clover XML report...
      IOException when checking workspace path:remote file operation failed: /home/ec2-user/jenkins/workspace/the-job at hudson.remoting.Channel@69b58179:<the slave>: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@4836f4e9
      Publishing Clover coverage results...

      The coverage reports seem to be published back to the master correctly despite the IOException.

        Attachments

          Activity

          Hide
          markcariddi Mark Cariddi added a comment -

          I see the XML published by I am not able to see the bullseye coverate report.   

          Show
          markcariddi Mark Cariddi added a comment - I see the XML published by I am not able to see the bullseye coverate report.   
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Marek Parfianowicz
          Path:
          src/main/java/hudson/plugins/clover/CloverPublisher.java
          src/main/java/hudson/plugins/clover/slave/GetPathFileCallable.java
          http://jenkins-ci.org/commit/clover-plugin/c356a20e9f14da32db36194a2e80e1827ead0c44
          Log:
          JENKINS-33610: extracted anonymous class to lop-level to get rid of
          NoClassDefFoundError: hudson/plugins/clover/CloverPublisher$1'; added more logging

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Marek Parfianowicz Path: src/main/java/hudson/plugins/clover/CloverPublisher.java src/main/java/hudson/plugins/clover/slave/GetPathFileCallable.java http://jenkins-ci.org/commit/clover-plugin/c356a20e9f14da32db36194a2e80e1827ead0c44 Log: JENKINS-33610 : extracted anonymous class to lop-level to get rid of NoClassDefFoundError: hudson/plugins/clover/CloverPublisher$1'; added more logging
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Marek Parfianowicz
          Path:
          src/main/java/hudson/plugins/clover/CloverPublisher.java
          http://jenkins-ci.org/commit/clover-plugin/df5b18dc7a8a667464f522c8f9bc3963d645140f
          Log:
          JENKINS-33610: println

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Marek Parfianowicz Path: src/main/java/hudson/plugins/clover/CloverPublisher.java http://jenkins-ci.org/commit/clover-plugin/df5b18dc7a8a667464f522c8f9bc3963d645140f Log: JENKINS-33610 : println
          Hide
          marekparf Marek Parfianowicz added a comment -

          I had a different exception in the log, but after my change I don't see any errors with remote agents.

          I think the change should fix the problem reported by you. I think that because the hudson/plugins/clover/CloverPublisher$1 was an anonymous inner class, so it had a reference to an enclosing class, i.e. the CloverPublisher which does not implement Serializable interface.

          And the most probably the CloverPublisher$1 (now renamed to GetPathFileCallable, which implements SlaveToMasterFileCallable) was called by the FileCallableWrapper mentioned in the bug description.

          Show
          marekparf Marek Parfianowicz added a comment - I had a different exception in the log, but after my change I don't see any errors with remote agents. I think the change should fix the problem reported by you. I think that because the hudson/plugins/clover/CloverPublisher$1 was an anonymous inner class, so it had a reference to an enclosing class, i.e. the CloverPublisher which does not implement Serializable interface. And the most probably the CloverPublisher$1 (now renamed to GetPathFileCallable, which implements SlaveToMasterFileCallable) was called by the FileCallableWrapper mentioned in the bug description.
          Hide
          marekparf Marek Parfianowicz added a comment -

          Fix will be delivered in 4.8.1+

          Show
          marekparf Marek Parfianowicz added a comment - Fix will be delivered in 4.8.1+

            People

            • Assignee:
              Unassigned
              Reporter:
              trbaker Trevor Baker
            • Votes:
              12 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: