java.lang.NoSuchFieldError: service

JFrog JIRA | Tim Preston | 2 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. 1

    I attempted to upgrade the plugins on a Jenkins instance (v1.627) and ran into what appears to be an incompatibility between Artifactory Plugin 2.3.1 and JIRA Plugin 2.0. {code} java.lang.NoSuchFieldError: service at org.jfrog.hudson.util.IssuesTrackerHelper.<init>(IssuesTrackerHelper.java:48) at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:157) at org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator$2.buildEnvVars(ArtifactoryGradleConfigurator.java:526) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944) at org.jenkinsci.plugins.tokenmacro.impl.EnvironmentVariableMacro.evaluate(EnvironmentVariableMacro.java:23) at org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.evaluate(DataBoundTokenMacro.java:189) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:182) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:154) at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setDisplayName(BuildNameSetter.java:50) at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.access$000(BuildNameSetter.java:26) at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter$1.tearDown(BuildNameSetter.java:42) at hudson.model.Build$BuildExecution.doRun(Build.java:173) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) {code}

    JFrog JIRA | 2 years ago | Tim Preston
    java.lang.NoSuchFieldError: service
  2. 0

    I attempted to upgrade the plugins on a Jenkins instance (v1.627) and ran into what appears to be an incompatibility between Artifactory Plugin 2.3.1 and JIRA Plugin 2.0. {code} java.lang.NoSuchFieldError: service at org.jfrog.hudson.util.IssuesTrackerHelper.<init>(IssuesTrackerHelper.java:48) at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:157) at org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator$2.buildEnvVars(ArtifactoryGradleConfigurator.java:526) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944) at org.jenkinsci.plugins.tokenmacro.impl.EnvironmentVariableMacro.evaluate(EnvironmentVariableMacro.java:23) at org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.evaluate(DataBoundTokenMacro.java:189) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:182) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:154) at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setDisplayName(BuildNameSetter.java:50) at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.access$000(BuildNameSetter.java:26) at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter$1.tearDown(BuildNameSetter.java:42) at hudson.model.Build$BuildExecution.doRun(Build.java:173) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) {code}

    JFrog JIRA | 2 years ago | Tim Preston
    java.lang.NoSuchFieldError: service

    Root Cause Analysis

    1. java.lang.NoSuchFieldError

      service

      at org.jfrog.hudson.util.IssuesTrackerHelper.<init>()
    2. org.jfrog.hudson
      ArtifactoryGradleConfigurator$2.buildEnvVars
      1. org.jfrog.hudson.util.IssuesTrackerHelper.<init>(IssuesTrackerHelper.java:48)
      2. org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:157)
      3. org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator$2.buildEnvVars(ArtifactoryGradleConfigurator.java:526)
      3 frames
    3. Hudson
      AbstractBuild.getEnvironment
      1. hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944)
      1 frame
    4. Token Macro Plugin
      TokenMacro.expand
      1. org.jenkinsci.plugins.tokenmacro.impl.EnvironmentVariableMacro.evaluate(EnvironmentVariableMacro.java:23)
      2. org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.evaluate(DataBoundTokenMacro.java:189)
      3. org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:182)
      4. org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:154)
      4 frames
    5. org.jenkinsci.plugins
      BuildNameSetter$1.tearDown
      1. org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setDisplayName(BuildNameSetter.java:50)
      2. org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.access$000(BuildNameSetter.java:26)
      3. org.jenkinsci.plugins.buildnamesetter.BuildNameSetter$1.tearDown(BuildNameSetter.java:42)
      3 frames
    6. Hudson
      Executor.run
      1. hudson.model.Build$BuildExecution.doRun(Build.java:173)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      3. hudson.model.Run.execute(Run.java:1741)
      4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      5. hudson.model.ResourceController.execute(ResourceController.java:98)
      6. hudson.model.Executor.run(Executor.java:408)
      6 frames