java.lang.NoSuchMethodError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Booker Bense,
  • 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.
    via by Booker Bense,
    • 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 at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135) at com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:46) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59)
    No Bugmate found.