java.lang.NullPointerException

Jenkins JIRA | Andrzej Krentosz | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    This is probably related to JENKINS-17877. It works with JUnit but not with Custom Tool. [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing Custom Tool ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due to exception java.lang.NullPointerException at com.thalesgroup.dtkit.metrics.hudson.api.type.MetricsType.isSkipNoTestFiles(MetricsType.java:80) at org.jenkinsci.plugins.xunit.XUnitPublisher.getXUnitToolInfoObject(XUnitPublisher.java:211) at org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:182) at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:119) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:93) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at com.cloudbees.plugins.flow.FlowRun$RunnerImpl.post2(FlowRun.java:210) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1600) at hudson.model.Run.run(Run.java:1521) at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:174) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:241) at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)

    Jenkins JIRA | 4 years ago | Andrzej Krentosz
    java.lang.NullPointerException
  2. 0

    This is probably related to JENKINS-17877. It works with JUnit but not with Custom Tool. [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing Custom Tool ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due to exception java.lang.NullPointerException at com.thalesgroup.dtkit.metrics.hudson.api.type.MetricsType.isSkipNoTestFiles(MetricsType.java:80) at org.jenkinsci.plugins.xunit.XUnitPublisher.getXUnitToolInfoObject(XUnitPublisher.java:211) at org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:182) at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:119) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:93) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at com.cloudbees.plugins.flow.FlowRun$RunnerImpl.post2(FlowRun.java:210) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1600) at hudson.model.Run.run(Run.java:1521) at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:174) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:241) at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)

    Jenkins JIRA | 4 years ago | Andrzej Krentosz
    java.lang.NullPointerException
  3. 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.thalesgroup.dtkit.metrics.hudson.api.type.MetricsType.isSkipNoTestFiles()
    2. com.thalesgroup.dtkit
      MetricsType.isSkipNoTestFiles
      1. com.thalesgroup.dtkit.metrics.hudson.api.type.MetricsType.isSkipNoTestFiles(MetricsType.java:80)
      1 frame
    3. org.jenkinsci.plugins
      XUnitPublisher.perform
      1. org.jenkinsci.plugins.xunit.XUnitPublisher.getXUnitToolInfoObject(XUnitPublisher.java:211)
      2. org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:182)
      3. org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:119)
      4. org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:93)
      4 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
      3 frames
    5. com.cloudbees.plugins
      FlowRun$RunnerImpl.post2
      1. com.cloudbees.plugins.flow.FlowRun$RunnerImpl.post2(FlowRun.java:210)
      1 frame
    6. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
      2. hudson.model.Run.execute(Run.java:1600)
      3. hudson.model.Run.run(Run.java:1521)
      3 frames
    7. com.cloudbees.plugins
      FlowRun.run
      1. com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:174)
      1 frame
    8. Hudson
      OneOffExecutor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:241)
      3. hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)
      3 frames