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

Null pointer exception when publishing results

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • cloverphp-plugin
    • None
    • Windows Server 2008 R2 x64

    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

          gameshas Justinas Urbanavicius created issue -
          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.

          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.

          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

          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

          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.

          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 .
          sogabe sogabe made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 147868 ] JNJira + In-Review [ 192618 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: