java.lang.NoSuchFieldError: service

JFrog JIRA | Tim Preston | 1 year ago
  1. 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 | 1 year 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 | 1 year ago | Tim Preston
    java.lang.NoSuchFieldError: service
  3. 0

    Re: Test, Migrating to Turbine 4.0-M1

    turbine-user | 5 years ago | Thomas Vandahl
    java.lang.NoSuchFieldError: ROLE org.apache.turbine.services.rundata.TurbineRunDataService.init(TurbineRunDataService.java:146) org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:476) org.apache.turbine.Turbine.getRunDataService(Turbine.java:1000) org.apache.turbine.Turbine.doGet(Turbine.java:766) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > * Using fulcrum-pool 1.0.4 instead of fulcrum 3.0-b1, we got the > following "java.lang.ClassCastException: > org.apache.fulcrum.pool.DefaultPoolService cannot be cast to > org.apache.turbine.services.Service" Horrible Exception: org.apache.turbine.services.InstantiationException: Failed to instantiate service PoolService at org.apache.turbine.services.BaseServiceBroker.getServiceInstance(BaseServiceBroker.java:607) at org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:468)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: Test, Migrating to Turbine 4.0-M1

    turbine-user | 5 years ago | opensource@memocomp.de
    java.lang.NoSuchFieldError: ROLE org.apache.turbine.services.rundata.TurbineRunDataService.init(TurbineRunDataService.java:146) org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:476) org.apache.turbine.Turbine.getRunDataService(Turbine.java:1000) org.apache.turbine.Turbine.doGet(Turbine.java:766) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > * Using fulcrum-pool 1.0.4 instead of fulcrum 3.0-b1, we got the > following "java.lang.ClassCastException: > org.apache.fulcrum.pool.DefaultPoolService cannot be cast to > org.apache.turbine.services.Service" Horrible Exception: org.apache.turbine.services.InstantiationException: Failed to instantiate service PoolService
  6. 0

    Re: Test, Migrating to Turbine 4.0-M1

    turbine-user | 5 years ago | Thomas Vandahl
    java.lang.NoSuchFieldError: ROLE org.apache.turbine.services.rundata.TurbineRunDataService.init(TurbineRunDataService.java:146) org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:476) org.apache.turbine.Turbine.getRunDataService(Turbine.java:1000) org.apache.turbine.Turbine.doGet(Turbine.java:766) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > * Using fulcrum-pool 1.0.4 instead of fulcrum 3.0-b1, we got the > following "java.lang.ClassCastException: > org.apache.fulcrum.pool.DefaultPoolService cannot be cast to > org.apache.turbine.services.Service" Horrible Exception: org.apache.turbine.services.InstantiationException: Failed to instantiate service PoolService at org.apache.turbine.services.BaseServiceBroker.getServiceInstance(BaseServiceBroker.java:607) at org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:468)

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