Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9275

execute shell: javax.servlet.ServletException: This page expects a form submission

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • core
    • None
    • Linux / Debian 5.0.8

      I just downloaded the latest version (v. 1.405) because it fixed issue JENKINS-6545 .

      However when I tried to update the job configuration I got the error message below. I'm not absolutely sure whether the problem was already included in some previous version, because may be the last reconfiguration dated back some months ago. I have seen lots of issue reports for this error message, however none of them seem to fit to my problem:

      I was able to narrow it down to a problem with the "Execute Shell" ("Shell ausführen", sorry I have a German localization).

      The attached config.xml I set up with the configuration page, which worked fine. However as soon as I try to add a shell script as an additional build step, I get the error report below during save.

      error message
      HTTP Status 500 -
      
      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: This page expects a form submission
      	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:603)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:233)
      	org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
      	org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      	hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      	hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      	hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      
      root cause
      
      java.lang.Error: This page expects a form submission
      	org.kohsuke.stapler.RequestImpl.getSubmittedForm(RequestImpl.java:783)
      	hudson.model.Job.doConfigSubmit(Job.java:954)
      	hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:624)
      	sun.reflect.GeneratedMethodAccessor674.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	java.lang.reflect.Method.invoke(Method.java:597)
      	org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
      	org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
      	org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
      	org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:103)
      	org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:233)
      	org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
      	org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      	hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      	hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      	hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      
      note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
      Apache Tomcat/5.5
      

            Unassigned Unassigned
            wallenstein Michael Breu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: