java.lang.NoSuchMethodError: hudson.model.RunMap.put(Lhudson/model/Run;)Lhudson/model/Run;

Jenkins JIRA | Booker Bense | 4 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. 0

    An external job using this command export JENKINS_HOME=http://127.0.0.1:8080 java -jar /opt/jenkins/jenkins-data/war/WEB-INF/lib/jenkins-core-*.jar testcron /u/sf/bbense/ bin/synctaylor 2>&1 > /dev/null works fine in 1.478, but fails with this long error after upgrading to 1.488. Reverting to 1.478 ( and changing file permissions to allow reading the jar file ) resolves the problem. <html><head><title>Error 500</title></head> <body bgcolor=#fff><h1>Status Code: 500</h1>Exception: java.lang.NoSuchMethodError: hudson.model.RunMap.put(Lhudson/model/Run;)Lhudson/model/Run;<br>Stacktrace: <pre>javax.servlet.ServletException: java.lang.NoSuchMethodError: hudson.model.RunMap.put(Lhudson/model/Run;)Lhudson/model/Run; at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:616) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488) at org.kohsuke.stapler.Stapler.service(Stapler.java:162) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:248) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) All external jobs using this kind of script setup fail with 1.488.

    Jenkins JIRA | 4 years ago | Booker Bense
    java.lang.NoSuchMethodError: hudson.model.RunMap.put(Lhudson/model/Run;)Lhudson/model/Run;
  2. 0

    An external job using this command export JENKINS_HOME=http://127.0.0.1:8080 java -jar /opt/jenkins/jenkins-data/war/WEB-INF/lib/jenkins-core-*.jar testcron /u/sf/bbense/ bin/synctaylor 2>&1 > /dev/null works fine in 1.478, but fails with this long error after upgrading to 1.488. Reverting to 1.478 ( and changing file permissions to allow reading the jar file ) resolves the problem. <html><head><title>Error 500</title></head> <body bgcolor=#fff><h1>Status Code: 500</h1>Exception: java.lang.NoSuchMethodError: hudson.model.RunMap.put(Lhudson/model/Run;)Lhudson/model/Run;<br>Stacktrace: <pre>javax.servlet.ServletException: java.lang.NoSuchMethodError: hudson.model.RunMap.put(Lhudson/model/Run;)Lhudson/model/Run; at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:616) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488) at org.kohsuke.stapler.Stapler.service(Stapler.java:162) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:248) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) All external jobs using this kind of script setup fail with 1.488.

    Jenkins JIRA | 4 years ago | Booker Bense
    java.lang.NoSuchMethodError: hudson.model.RunMap.put(Lhudson/model/Run;)Lhudson/model/Run;
  3. 0

    [JIRA] [docker-traceability-plugin] (JENKINS-28933) Classloading issues in Docker-traceability: conflict with unshaded API

    Google Groups | 2 years ago | o.v.ne...@gmail.com (JIRA)
    java.lang.NoSuchMethodError: org.jenkinsci.plugins.docker.traceability.api.DockerTraceabilityReport.&amp;lt;init&gt;(Lorg/jenkinsci/plugins/docker/traceability/dockerjava/api/model/Event;Lorg/jenkinsci/plugins/docker/traceability/dockerjava/api/model/Info;Lorg/jenkinsci/plugins/docker/traceability/dockerjava/api/command/InspectContainerResponse;Ljava/lang/String;Ljava/lang/String;Lorg/jenkinsci/plugins/docker/traceability/dockerjava/api/command/InspectImageResponse;Ljava/util/List;Ljava/lang/String;)V
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      hudson.model.RunMap.put(Lhudson/model/Run;)Lhudson/model/Run;

      at org.kohsuke.stapler.Stapler.tryInvoke()
    2. Stapler
      Stapler.service
      1. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:616)
      2. org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
      3. org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
      4. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      5. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
      6. org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
      7. org.kohsuke.stapler.Stapler.invoke(Stapler.java:488)
      8. org.kohsuke.stapler.Stapler.service(Stapler.java:162)
      8 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      1 frame
    4. winstone
      RequestDispatcher.doFilter
      1. winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
      2. winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      3. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
      3 frames
    5. Hudson
      PluginServletFilter.doFilter
      1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      2 frames
    6. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      2 frames