3 Replies Latest reply on May 3, 2013 2:42 PM by Sham HC

    HTTP Error 405

    HarishDv Level 1

      Hi Guys ,,

       

       

      I created a form , which has some input text fields and upload fields , which when filled and submitted has to redirect to success page.

       

      But on submission i am getting

       

      Method POST not supported (405)

      The requested URL /book/order_new_copy.html resulted in an error in com.day.cq.commons.servlets.NonExistingDispatcherServlet.

       

       

      Can anyone help me overcome this problem.

       

       

      Thanks in advance !

        • 1. Re: HTTP Error 405
          Kanika Gera Adobe Employee

          Hi Harish,

           

          Which CQ version are you using? and can you put the error trace over here?

          • 2. Re: HTTP Error 405
            HarishDv Level 1

            Hi kanika ,

             

            I am using CQ 5.3 .The stack strace is given below ,

             

            Method POST not supported (405)

            The requested URL book/order_new_copy.html resulted in an error in com.day.cq.commons.servlets.NonExistingDispatcherServlet.

            Request Progress:

                 0 (2013-05-02 13:48:33) TIMER_START{Request Processing} 0 (2013-05-02 13:48:33) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message> 0 (2013-05-02 13:48:33) LOG Method=POST, PathInfo=/book/order_new_copy.html 0 (2013-05-02 13:48:33) TIMER_START{ResourceResolution} 0 (2013-05-02 13:48:33) TIMER_END{0,ResourceResolution} URI=/book/order_new_copy.html resolves to Resource=JcrNodeResource, type=cq:Page, superType=null, path=/content/myProject/en/book/order_new_copy 0 (2013-05-02 13:48:33) LOG Resource Path Info: SlingRequestPathInfo: path='/content/myProject/en/book/order_new_copy', selectorString='null', extension='html', suffix='null' 0 (2013-05-02 13:48:33) TIMER_START{ServletResolution} 0 (2013-05-02 13:48:33) TIMER_START{resolveServlet(JcrNodeResource, type=cq:Page, superType=null, path=/content/myProject/en/book/order_new_copy)} 0 (2013-05-02 13:48:33) TIMER_END{0,resolveServlet(JcrNodeResource, type=cq:Page, superType=null, path=/content/myProject/en/book/order_new_copy)} Using servlet org.apache.sling.servlets.post.impl.SlingPostServlet 0 (2013-05-02 13:48:33) TIMER_END{0,ServletResolution} URI=/book/order_new_copy.html handled by Servlet=org.apache.sling.servlets.post.impl.SlingPostServlet 0 (2013-05-02 13:48:33) LOG Applying Requestfilters 0 (2013-05-02 13:48:33) LOG Calling filter: com.myProject.wec.filters.AccessControlFilter 0 (2013-05-02 13:48:33) LOG Calling filter: org.apache.sling.portal.container.internal.request.PortalFilter 0 (2013-05-02 13:48:33) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter 0 (2013-05-02 13:48:33) LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter 0 (2013-05-02 13:48:33) LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet 16 (2013-05-02 13:48:33) LOG Including resource NonExistingResource, path=/content/myProject/en/book/order_new_copy/jcr:content/par_top/customerorderform/placeorder/formStart.form.html (SlingRequestPathInfo: path='/content/myProject/en/book/order_new_copy/jcr:content/par_top/customerorderform/placeorder/formStart.form.html', selectorString='form', extension='html', suffix='null') 16 (2013-05-02 13:48:33) TIMER_START{resolveServlet(NonExistingResource, path=/content/myProject/en/book/order_new_copy/jcr:content/par_top/customerorderform/placeorder/formStart.form.html)} 16 (2013-05-02 13:48:33) TIMER_END{0,resolveServlet(NonExistingResource, path=/content/myProject/en/book/order_new_copy/jcr:content/par_top/customerorderform/placeorder/formStart.form.html)} Using servlet com.day.cq.commons.servlets.NonExistingDispatcherServlet 16 (2013-05-02 13:48:33) LOG Applying Forwardfilters 16 (2013-05-02 13:48:33) LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter 16 (2013-05-02 13:48:33) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter 16 (2013-05-02 13:48:33) TIMER_START{com.day.cq.commons.servlets.NonExistingDispatcherServlet#0} 16 (2013-05-02 13:48:33) TIMER_START{handleError:status=405} 16 (2013-05-02 13:48:33) TIMER_END{0,handleError:status=405} Using handler org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet 16 (2013-05-02 13:48:33) TIMER_END{16,Request Processing} Dumping SlingRequestProgressTracker Entries

            ApacheSling/2.2 (Day-Servlet-Engine/4.1.8, Java HotSpot(TM) Client VM 1.5.0_10, Windows XP 5.1 x86)
            • 3. Re: HTTP Error 405
              Sham HC Level 7

              Hi Harish

               

              Make sure in the form action configuration the Content Path is set to location the user has access. Generally it point under /content/usergenerated

              From the error it looks like form submission is trying to store at /content/myProject/en/book/order_new_copy

               

               

              Thanks,

              Sham

              @adobe_sham

              1 person found this helpful