java.lang.NumberFormatException: For input string: ""

Jenkins JIRA | edovale | 5 years ago
  1. 0

    Publish testing tools result report fails with Java error (xUnit plugin)

    Google Groups | 5 years ago | Hans
    java.lang.NumberFormatException: For input string: ""
  2. 0

    Here is the stack trace that I am getting: [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing PHPUnit-3.4 (default) [xUnit] [INFO] - [PHPUnit-3.4 (default)] - 1 test report file(s) were found with the pattern 'build/unit-tests.xml' relative to '/var/lib/jenkins/jobs/respond-COMMIT/workspace' for the testing framework 'PHPUnit-3.4 (default)'. [xUnit] [INFO] - Check 'Failed Tests' threshold. ERROR: Publisher com.thalesgroup.hudson.plugins.xunit.XUnitPublisher aborted due to exception java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:470) at java.lang.Integer.parseInt(Integer.java:499) at org.jenkinsci.plugins.xunit.threshold.XUnitThreshold.convertToInteger(XUnitThreshold.java:60) at org.jenkinsci.plugins.xunit.threshold.XUnitThreshold.getResultThreshold(XUnitThreshold.java:76) at org.jenkinsci.plugins.xunit.threshold.FailedThreshold.getResultThreshold(FailedThreshold.java:33) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.processResultThreshold(XUnitPublisher.java:357) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.getResultWithThreshold(XUnitPublisher.java:345) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.setBuildStatus(XUnitPublisher.java:330) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:133) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:101) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238)

    Jenkins JIRA | 5 years ago | edovale
    java.lang.NumberFormatException: For input string: ""
  3. 0

    Here is the stack trace that I am getting: [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing PHPUnit-3.4 (default) [xUnit] [INFO] - [PHPUnit-3.4 (default)] - 1 test report file(s) were found with the pattern 'build/unit-tests.xml' relative to '/var/lib/jenkins/jobs/respond-COMMIT/workspace' for the testing framework 'PHPUnit-3.4 (default)'. [xUnit] [INFO] - Check 'Failed Tests' threshold. ERROR: Publisher com.thalesgroup.hudson.plugins.xunit.XUnitPublisher aborted due to exception java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:470) at java.lang.Integer.parseInt(Integer.java:499) at org.jenkinsci.plugins.xunit.threshold.XUnitThreshold.convertToInteger(XUnitThreshold.java:60) at org.jenkinsci.plugins.xunit.threshold.XUnitThreshold.getResultThreshold(XUnitThreshold.java:76) at org.jenkinsci.plugins.xunit.threshold.FailedThreshold.getResultThreshold(FailedThreshold.java:33) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.processResultThreshold(XUnitPublisher.java:357) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.getResultWithThreshold(XUnitPublisher.java:345) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.setBuildStatus(XUnitPublisher.java:330) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:133) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:101) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238)

    Jenkins JIRA | 5 years ago | edovale
    java.lang.NumberFormatException: For input string: ""
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Number Format Exception In Fitness

    GitHub | 2 years ago | aravsri
    java.lang.NumberFormatException: For input string: ""
  6. 0

    java.lang.NumberFormatException: For input string: ""

    GitHub | 3 years ago | rushtehrani
    java.lang.NumberFormatException: For input string: ""

  1. Handemelindo 6 times, last 4 days ago
  2. bmacedo 2 times, last 5 days ago
  3. MoYapro 1 times, last 1 week ago
  4. filpgame 4 times, last 3 weeks ago
  5. silex 6 times, last 1 month ago
32 more registered users
63 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    For input string: ""

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Integer.parseInt
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    2. java.lang.Integer.parseInt(Integer.java:470)
    3. java.lang.Integer.parseInt(Integer.java:499)
    3 frames
  3. org.jenkinsci.plugins
    FailedThreshold.getResultThreshold
    1. org.jenkinsci.plugins.xunit.threshold.XUnitThreshold.convertToInteger(XUnitThreshold.java:60)
    2. org.jenkinsci.plugins.xunit.threshold.XUnitThreshold.getResultThreshold(XUnitThreshold.java:76)
    3. org.jenkinsci.plugins.xunit.threshold.FailedThreshold.getResultThreshold(FailedThreshold.java:33)
    3 frames
  4. com.thalesgroup.hudson
    XUnitPublisher.perform
    1. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.processResultThreshold(XUnitPublisher.java:357)
    2. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.getResultWithThreshold(XUnitPublisher.java:345)
    3. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.setBuildStatus(XUnitPublisher.java:330)
    4. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:133)
    5. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:101)
    5 frames
  5. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692)
    3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667)
    4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645)
    5. hudson.model.Build$RunnerImpl.post2(Build.java:162)
    6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614)
    7. hudson.model.Run.run(Run.java:1429)
    8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    9. hudson.model.ResourceController.execute(ResourceController.java:88)
    10. hudson.model.Executor.run(Executor.java:238)
    10 frames