java.lang.NoSuchMethodError: com.gargoylesoftware.htmlunit.WebClient.setCookiesEnabled(Z)V

Jenkins JIRA | Jeremy Nelson | 5 years ago
  1. 0

    After a build runs, it tries to do a campfire notification and fails as follows. Downgraded Jenkins back to 1.423 and all is well. FATAL: com.gargoylesoftware.htmlunit.WebClient.setCookiesEnabled(Z)V java.lang.NoSuchMethodError: com.gargoylesoftware.htmlunit.WebClient.setCookiesEnabled(Z)V at hudson.plugins.campfire.Campfire.<init>(Campfire.java:51) at hudson.plugins.campfire.CampfireNotifier.initialize(CampfireNotifier.java:62) at hudson.plugins.campfire.CampfireNotifier.initialize(CampfireNotifier.java:58) at hudson.plugins.campfire.CampfireNotifier.checkCampfireConnection(CampfireNotifier.java:53) at hudson.plugins.campfire.CampfireNotifier.publish(CampfireNotifier.java:42) at hudson.plugins.campfire.CampfireNotifier.perform(CampfireNotifier.java:80) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1400) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175)

    Jenkins JIRA | 5 years ago | Jeremy Nelson
    java.lang.NoSuchMethodError: com.gargoylesoftware.htmlunit.WebClient.setCookiesEnabled(Z)V
  2. 0

    After a build runs, it tries to do a campfire notification and fails as follows. Downgraded Jenkins back to 1.423 and all is well. FATAL: com.gargoylesoftware.htmlunit.WebClient.setCookiesEnabled(Z)V java.lang.NoSuchMethodError: com.gargoylesoftware.htmlunit.WebClient.setCookiesEnabled(Z)V at hudson.plugins.campfire.Campfire.<init>(Campfire.java:51) at hudson.plugins.campfire.CampfireNotifier.initialize(CampfireNotifier.java:62) at hudson.plugins.campfire.CampfireNotifier.initialize(CampfireNotifier.java:58) at hudson.plugins.campfire.CampfireNotifier.checkCampfireConnection(CampfireNotifier.java:53) at hudson.plugins.campfire.CampfireNotifier.publish(CampfireNotifier.java:42) at hudson.plugins.campfire.CampfireNotifier.perform(CampfireNotifier.java:80) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1400) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175)

    Jenkins JIRA | 5 years ago | Jeremy Nelson
    java.lang.NoSuchMethodError: com.gargoylesoftware.htmlunit.WebClient.setCookiesEnabled(Z)V
  3. 0
    Put Jackson Java Module and Scala module in the same version.
    via GitHub by anujlal01
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Check if you didn't miss adding Jackson dependencies to your code.
    via GitHub by anujlal01
  6. 0
    This bug happens in version 2.60, try updating to 2.60-rc4 or more recent.
    via GitHub by anujlal01

    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.NoSuchMethodError

      com.gargoylesoftware.htmlunit.WebClient.setCookiesEnabled(Z)V

      at hudson.plugins.campfire.Campfire.<init>()
    2. hudson.plugins.campfire
      CampfireNotifier.perform
      1. hudson.plugins.campfire.Campfire.<init>(Campfire.java:51)
      2. hudson.plugins.campfire.CampfireNotifier.initialize(CampfireNotifier.java:62)
      3. hudson.plugins.campfire.CampfireNotifier.initialize(CampfireNotifier.java:58)
      4. hudson.plugins.campfire.CampfireNotifier.checkCampfireConnection(CampfireNotifier.java:53)
      5. hudson.plugins.campfire.CampfireNotifier.publish(CampfireNotifier.java:42)
      6. hudson.plugins.campfire.CampfireNotifier.perform(CampfireNotifier.java:80)
      6 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:161)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604)
      7. hudson.model.Run.run(Run.java:1400)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:175)
      10 frames