Details

    Description

      This happens with 1.8.

      I get the sloccount-data (report.sc) and some other XML files (findbugs etc.). Other than that, the workspace is empty. After retrieving the files, I run the publishers.

      Please tell me how to work around this issue or fix the plugin.

      If you need more information, please ask. I'm not sure how to write bug reports in here.

      Best regards,
      Carsten

      ERROR: Publisher hudson.plugins.sloccount.SloccountPublisher aborted due to exception
      java.lang.NullPointerException
      at hudson.plugins.sloccount.model.SloccountParser.parseLine(SloccountParser.java:92)
      at hudson.plugins.sloccount.model.SloccountParser.parse(SloccountParser.java:59)
      at hudson.plugins.sloccount.model.SloccountParser.parse(SloccountParser.java:50)
      at hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:40)
      at hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:17)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2180)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:287)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)

      Attachments

        Activity

          c_otto Carsten Otto added a comment -

          I uploaded the HPI file (no idea if that worked?) and created a new job based on a job that previously failed (and still does). However, the new job also fails with the same error message. Furthermore, even if the fix worked, I'd need to use the plugin for existing jobs.

          c_otto Carsten Otto added a comment - I uploaded the HPI file (no idea if that worked?) and created a new job based on a job that previously failed (and still does). However, the new job also fails with the same error message. Furthermore, even if the fix worked, I'd need to use the plugin for existing jobs.
          ben25 Karsten Brandt added a comment - - edited

          @Carsten: I've revoked the last "optimization" in commit 2d0f2d6358cad6ae144abef5e6f304c4e3e5bb94 to keep the backward compatibility. The introducing of a new class field 'report' in class SloccountParser has lead to a change of the serialVersionUID and this leads probably to the java.io.InvalidClassException as reported in #JENKINS-14255. And probably also to your reported issue.

          Please try again with the modified plugin, which has been attached to issue #JENKINS-14255. Thereto download the attached hpi file (advanced settings dialog within the plugin manager) and restart your jenkins server. After restart you should see in the plugin manager a installed plugin version look like this: 1.8-SNAPSHOT (private-07/01/2012 10:53-brandt).

          Many thanks for your effort,
          Karsten

          ben25 Karsten Brandt added a comment - - edited @Carsten: I've revoked the last "optimization" in commit 2d0f2d6358cad6ae144abef5e6f304c4e3e5bb94 to keep the backward compatibility. The introducing of a new class field 'report' in class SloccountParser has lead to a change of the serialVersionUID and this leads probably to the java.io.InvalidClassException as reported in # JENKINS-14255 . And probably also to your reported issue. Please try again with the modified plugin, which has been attached to issue # JENKINS-14255 . Thereto download the attached hpi file (advanced settings dialog within the plugin manager) and restart your jenkins server. After restart you should see in the plugin manager a installed plugin version look like this: 1.8-SNAPSHOT (private-07/01/2012 10:53-brandt). Many thanks for your effort, Karsten
          c_otto Carsten Otto added a comment -

          Yes, now it works.

          c_otto Carsten Otto added a comment - Yes, now it works.

          @ssogabe: This issue can be closed, if https://github.com/jenkinsci/sloccount-plugin/pull/8 merged into the repository.

          ben25 Karsten Brandt added a comment - @ssogabe: This issue can be closed, if https://github.com/jenkinsci/sloccount-plugin/pull/8 merged into the repository.

          https://github.com/jenkinsci/sloccount-plugin/pull/8

          has been merged into the master repo

          ben25 Karsten Brandt added a comment - https://github.com/jenkinsci/sloccount-plugin/pull/8 has been merged into the master repo

          People

            ben25 Karsten Brandt
            c_otto Carsten Otto
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: