XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • sloccount-plugin
    • None
    • CentOS 6.3-64 bit/CentOS 5.6-32bit

      sloccount 1.8 running on the master works just fine.
      sloccount 1.8 is returning NPE when running the same job on a slave:

      00:00:00.000 Started by user Dolores Scott
      00:00:00.017 [EnvInject] - Loading node environment variables.
      00:00:00.164 Building remotely on Dev32_Server in workspace /opt/jenkins-slave/workspace/test-aiken32-compileall
      00:00:00.165
      00:00:00.165 Deleting project workspace...
      00:00:00.959 done
      00:00:00.959
      00:00:01.017 Checkout:test-aiken32-compileall / /opt/jenkins-slave/workspace/test-aiken32-compileall - hudson.remoting.Channel@1d48c:Dev32_Server
      00:00:01.017 Using strategy: Default
      00:00:01.063 Last Built Revision: Revision a071cc670b36cd96002feada0f426b13b74d7996 (origin/aiken)
      00:00:03.785 Cloning the remote Git repository
      00:00:03.790 Cloning repository ssh://aplcm@10.1.1.47/var/git/Integration/appliance.git
      00:00:03.875 git --version
      00:00:03.876 git version 1.8.0

      00:00:26.680 Fetching upstream changes from origin

      00:00:27.192 Commencing build of Revision a071cc670b36cd96002feada0f426b13b74d7996 (origin/aiken)
      00:00:27.548 Checking out Revision a071cc670b36cd96002feada0f426b13b74d7996 (origin/aiken)

      00:00:31.840 [test-aiken32-compileall] $ /bin/sh -xe /tmp/hudson8520274860963285058.sh
      00:00:31.873 + cd build
      00:00:32.147 [test-aiken32-compileall] $ /bin/sh -xe /tmp/hudson1653286013608686853.sh
      00:00:32.205 + sloccount --wide --details .

      00:01:09.222 [WARNINGS] Parsing warnings in console log with parser GNU Make + GNU Compiler (gcc)

      00:01:18.165 [TASKS] Scanning folder '/opt/jenkins-slave/workspace/test-aiken32-compileall' for files matching the pattern '*/.c,*/.cxx,*/.h,*/.mk,*/Makefile,/.sh' - excludes:
      00:01:18.166 [TASKS] Found 2860 files to scan for tasks
      00:01:18.166 [TASKS] Found 992 open tasks.

      00:01:19.234 [TASKS] Computing warning deltas based on reference build #10

      00:01:22.105 ERROR: Publisher hudson.plugins.sloccount.SloccountPublisher aborted due to exception
      00:01:22.105 java.lang.NullPointerException
      00:01:22.106 at java.lang.String.lastIndexOf(String.java:1823)
      00:01:22.106 at java.lang.String.lastIndexOf(String.java:1805)
      00:01:22.106 at hudson.plugins.sloccount.model.SloccountReport.extractFolder(SloccountReport.java:68)
      00:01:22.106 at hudson.plugins.sloccount.model.SloccountReport.add(SloccountReport.java:47)
      00:01:22.106 at hudson.plugins.sloccount.model.SloccountParser.parseLine(SloccountParser.java:92)
      00:01:22.106 at hudson.plugins.sloccount.model.SloccountParser.parse(SloccountParser.java:59)
      00:01:22.107 at hudson.plugins.sloccount.model.SloccountParser.parse(SloccountParser.java:50)
      00:01:22.107 at hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:40)
      00:01:22.107 at hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:17)
      00:01:22.107 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348)
      00:01:22.107 at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      00:01:22.107 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      00:01:22.107 at hudson.remoting.Request$2.run(Request.java:326)
      00:01:22.108 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      00:01:22.108 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      00:01:22.108 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      00:01:22.108 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      00:01:22.108 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      00:01:22.108 at java.lang.Thread.run(Thread.java:619)
      00:01:22.233 Sending e-mails to: dolores.scott@securelogix.com
      00:01:22.297 Finished: FAILURE

      When I revert back to sloccount 1.7 and run the same job on the slave, it works just fine.

            sogabe sogabe
            shadowfen Shadow Fen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: