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

JDepend NullPointerException

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • jdepend-plugin
    • None
    • Operating System: CentOS 5.5
      Kernel Release: 2.6.18-194.el5

    Description

      I'm using version 1.2.3 of jdepend.

      I am generating output with pdepend as per the instructions listed on http://agile.dzone.com/news/continuous-integration-php

      I have clicked the post-build action box for jdepend, and listed the absolute path to my file. However, my build output lists

      [JDepend] JDepend plugin is ready
      [JDepend] Couldn't generate JDepend file at '/var/lib/jenkins/workspaces/test-job/build/reports/jdepend.xml'java.lang.NullPointerException

      Attachments

        Activity

          HI,

           

          crying to find this issue untouch since its birth :'(

           

          Anyway,

           

          Some (fresh) update

           

          • OS debian 8
          • openjdk 8
          • migrate from jenkins 2.107 -> 2.116
          • jdepends 1.3.0
          • bountycastle 2.16.3
          • command agent launcher 1.2

           

          lots of jobs using jdepend's plugin fail in 2.116; but not in 2.107

          In job console log,

          in 2.116:

          [...]
          [JDepend] JDepend plugin is ready
          [JDepend] Couldn't generate JDepend file at 'build/pdepend.xml'java.nio.file.NoSuchFileException: /path/to/jenkins/jobs/folder/jobs/jobname/workspace/build/pdepend.xml
          
          [icon keeps turning]

          In 2.107:

          [...]
          [JDepend] JDepend plugin is ready
          [JDepend] Couldn't generate JDepend file at 'build/pdepend.xml'java.nio.file.NoSuchFileException: /path/to/jenkins/jobs/folder/jobs/jobname/workspace/build/pdepend.xml
          Finished: SUCCESS
          

          In jenkins.log

          in 2.116

          juin 18, 2018 2:59:52 PM hudson.model.Run execute
          INFOS: folder/jobname #46 main build action completed: SUCCESS
          java.lang.NullPointerException
          at hudson.plugins.jdepend.JDependReportGenerator.doSummarySection(JDependReportGenerator.java:169)
          at hudson.plugins.jdepend.JDependReportGenerator.doGenerateReport(JDependReportGenerator.java:65)
          at hudson.plugins.jdepend.JDependReporter.getReport(JDependReporter.java:96)
          at hudson.plugins.jdepend.JDependReporter.getReport(JDependReporter.java:69)
          at hudson.plugins.jdepend.JDependBuildAction.<init>(JDependBuildAction.java:43)
          at hudson.plugins.jdepend.JDependBuildAction.<init>(JDependBuildAction.java:29)
          at hudson.plugins.jdepend.JDependRecorder.generateJDependReport(JDependRecorder.java:157)
          at hudson.plugins.jdepend.JDependRecorder.perform(JDependRecorder.java:241)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
          at hudson.model.Build$BuildExecution.post2(Build.java:186)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
          at hudson.model.Run.execute(Run.java:1752)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          

          in 2.107

          INFOS: folder/jobname #45 main build action completed: SUCCESS
          juin 15, 2018 6:34:00 AM hudson.model.AsyncPeriodicWork$1 run
          INFOS: Started Gravatar periodic lookup
          juin 15, 2018 6:34:00 AM hudson.model.AsyncPeriodicWork$1 run
          INFOS: Finished Gravatar periodic lookup. 0 ms
          java.lang.NullPointerException
          at hudson.plugins.jdepend.JDependReportGenerator.doSummarySection(JDependReportGenerator.java:169)
          at hudson.plugins.jdepend.JDependReportGenerator.doGenerateReport(JDependReportGenerator.java:65)
          at hudson.plugins.jdepend.JDependReporter.getReport(JDependReporter.java:96)
          at hudson.plugins.jdepend.JDependReporter.getReport(JDependReporter.java:69)
          at hudson.plugins.jdepend.JDependBuildAction.<init>(JDependBuildAction.java:43)
          at hudson.plugins.jdepend.JDependBuildAction.<init>(JDependBuildAction.java:29)
          at hudson.plugins.jdepend.JDependRecorder.generateJDependReport(JDependRecorder.java:157)
          at hudson.plugins.jdepend.JDependRecorder.perform(JDependRecorder.java:241)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
          at hudson.model.Build$BuildExecution.post2(Build.java:186)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
          at hudson.model.Run.execute(Run.java:1752)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          juin 15, 2018 6:41:57 AM hudson.model.Run execute
          

          And in 2.116, je job run continuously, without failling ( one job was running for 10h)

           

           

          deogracia Lionel FÉLICITÉ added a comment - HI,   crying to find this issue untouch since its birth :'(   Anyway,   Some (fresh) update   OS debian 8 openjdk 8 migrate from jenkins 2.107 -> 2.116 jdepends 1.3.0 bountycastle 2.16.3 command agent launcher 1.2   lots of jobs using jdepend's plugin fail in 2.116; but not in 2.107 In job console log, in 2.116: [...] [JDepend] JDepend plugin is ready [JDepend] Couldn 't generate JDepend file at ' build/pdepend.xml'java.nio.file.NoSuchFileException: /path/to/jenkins/jobs/folder/jobs/jobname/workspace/build/pdepend.xml [icon keeps turning] In 2.107: [...] [JDepend] JDepend plugin is ready [JDepend] Couldn 't generate JDepend file at ' build/pdepend.xml'java.nio.file.NoSuchFileException: /path/to/jenkins/jobs/folder/jobs/jobname/workspace/build/pdepend.xml Finished: SUCCESS In jenkins.log in 2.116 juin 18, 2018 2:59:52 PM hudson.model.Run execute INFOS: folder/jobname #46 main build action completed: SUCCESS java.lang.NullPointerException at hudson.plugins.jdepend.JDependReportGenerator.doSummarySection(JDependReportGenerator.java:169) at hudson.plugins.jdepend.JDependReportGenerator.doGenerateReport(JDependReportGenerator.java:65) at hudson.plugins.jdepend.JDependReporter.getReport(JDependReporter.java:96) at hudson.plugins.jdepend.JDependReporter.getReport(JDependReporter.java:69) at hudson.plugins.jdepend.JDependBuildAction.<init>(JDependBuildAction.java:43) at hudson.plugins.jdepend.JDependBuildAction.<init>(JDependBuildAction.java:29) at hudson.plugins.jdepend.JDependRecorder.generateJDependReport(JDependRecorder.java:157) at hudson.plugins.jdepend.JDependRecorder.perform(JDependRecorder.java:241) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) at hudson.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) at hudson.model.Run.execute(Run.java:1752) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) in 2.107 INFOS: folder/jobname #45 main build action completed: SUCCESS juin 15, 2018 6:34:00 AM hudson.model.AsyncPeriodicWork$1 run INFOS: Started Gravatar periodic lookup juin 15, 2018 6:34:00 AM hudson.model.AsyncPeriodicWork$1 run INFOS: Finished Gravatar periodic lookup. 0 ms java.lang.NullPointerException at hudson.plugins.jdepend.JDependReportGenerator.doSummarySection(JDependReportGenerator.java:169) at hudson.plugins.jdepend.JDependReportGenerator.doGenerateReport(JDependReportGenerator.java:65) at hudson.plugins.jdepend.JDependReporter.getReport(JDependReporter.java:96) at hudson.plugins.jdepend.JDependReporter.getReport(JDependReporter.java:69) at hudson.plugins.jdepend.JDependBuildAction.<init>(JDependBuildAction.java:43) at hudson.plugins.jdepend.JDependBuildAction.<init>(JDependBuildAction.java:29) at hudson.plugins.jdepend.JDependRecorder.generateJDependReport(JDependRecorder.java:157) at hudson.plugins.jdepend.JDependRecorder.perform(JDependRecorder.java:241) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) at hudson.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) at hudson.model.Run.execute(Run.java:1752) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) juin 15, 2018 6:41:57 AM hudson.model.Run execute And in 2.116, je job run continuously, without failling ( one job was running for 10h)    

          upgrading to 2.121 gave me the same behavior as with 2.107

          deogracia Lionel FÉLICITÉ added a comment - upgrading to 2.121 gave me the same behavior as with 2.107

          People

            Unassigned Unassigned
            slartibart Benjamin VanEvery
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: