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

Null pointer exception when publishing results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cloverphp-plugin
    • Labels:
      None
    • Environment:
      Windows Server 2008 R2 x64
    • Similar Issues:

      Description

      ERROR: Publisher org.jenkinsci.plugins.cloverphp.CloverPublisher aborted due to exception
      java.lang.NullPointerException
      at org.jenkinsci.plugins.cloverphp.CloverCoverageParser.trimPaths(CloverCoverageParser.java:29)
      at org.jenkinsci.plugins.cloverphp.CloverCoverageParser.parse(CloverCoverageParser.java:50)
      at org.jenkinsci.plugins.cloverphp.CloverPublisher.processCloverXml(CloverPublisher.java:216)
      at org.jenkinsci.plugins.cloverphp.CloverPublisher.perform(CloverPublisher.java:189)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:786)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:733)
      at hudson.model.Run.execute(Run.java:1592)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:237)
      Finished: FAILURE

        Attachments

          Activity

          Hide
          sogabe sogabe added a comment -

          Are you using phpunit2 task in a build.xml? If so, you have to use exec task as follows.

          <exec dir="."
                command="phpunit --log-junit 'reports/unitreport.xml'
                                 --coverage-html 'reports/coverage'
                                 --coverage-clover 'reports/coverage/coverage.xml'
                                 test/"
          />
          

          Phpunit2 task generate coverage xml, but it is incompatible with clover.

          Show
          sogabe sogabe added a comment - Are you using phpunit2 task in a build.xml? If so, you have to use exec task as follows. <exec dir= "." command="phpunit --log-junit 'reports/unitreport.xml' --coverage-html 'reports/coverage' --coverage-clover 'reports/coverage/coverage.xml' test/" /> Phpunit2 task generate coverage xml, but it is incompatible with clover.
          Hide
          gameshas Justinas Urbanavicius added a comment -

          I'm actually using phpunit 3.7, so you are saying that phpunit3 is not compatible with clover.

          Shouldn't it just skip the clover generation instead of an error, and put out some kind of a warning that unsupported format ? instead of exception and failing the build

          Show
          gameshas Justinas Urbanavicius added a comment - I'm actually using phpunit 3.7, so you are saying that phpunit3 is not compatible with clover. Shouldn't it just skip the clover generation instead of an error, and put out some kind of a warning that unsupported format ? instead of exception and failing the build
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Seiji Sogabe
          Path:
          src/main/java/org/jenkinsci/plugins/cloverphp/CloverCoverageParser.java
          src/main/java/org/jenkinsci/plugins/cloverphp/CloverPublisher.java
          http://jenkins-ci.org/commit/cloverphp-plugin/c70e441c6671816e2085c7e12d513512e2a85ab6
          Log:
          JENKINS-17037 added message if clover xml is incompatible with clover style

          Compare: https://github.com/jenkinsci/cloverphp-plugin/compare/d55c91f13092...c70e441c6671


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: src/main/java/org/jenkinsci/plugins/cloverphp/CloverCoverageParser.java src/main/java/org/jenkinsci/plugins/cloverphp/CloverPublisher.java http://jenkins-ci.org/commit/cloverphp-plugin/c70e441c6671816e2085c7e12d513512e2a85ab6 Log: JENKINS-17037 added message if clover xml is incompatible with clover style Compare: https://github.com/jenkinsci/cloverphp-plugin/compare/d55c91f13092...c70e441c6671 – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .

            People

            • Assignee:
              sogabe sogabe
              Reporter:
              gameshas Justinas Urbanavicius
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: