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

Cucumber Reports fails to intialize org.joda.time.Period

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Windows Server 2008 64bit.

      When Cucumber reports are enabled for a build, I'm getting the following error.

      FATAL: Could not initialize class org.joda.time.Period
      java.lang.NoClassDefFoundError: Could not initialize class org.joda.time.Period
      at net.masterthought.cucumber.util.Util.formatDuration(Util.java:131)
      at net.masterthought.cucumber.ReportInformation.getTotalDurationAsString(ReportInformation.java:100)
      at net.masterthought.cucumber.ReportBuilder.generateFeatureOverview(ReportBuilder.java:148)
      at net.masterthought.cucumber.ReportBuilder.generateReports(ReportBuilder.java:77)
      at net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:113)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724)
      at hudson.model.Run.execute(Run.java:1600)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:237)

      Workaround: Install the git plugin as this has the joda time library as a dependency.

            Unassigned Unassigned
            windyroad windyroad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: