Ajax Request background Data return exception and prompt 404 method name does not exist

Source: Internet
Author: User

1, the normal use of Ajax to the background data, the prompt method name does not exist, the Ajax front-end normal, method class Bean injection Normal, the method annotation is normal. However, an exception occurred while parsing the parameter.

@RequestMapping (value= "/getproject") @ResponseBodypublic map<string,object> getproject (@RequestBody map< String, object> paramap,httpservletrequest request) {map<string, object> Map = new hashmap<string, Object > (); String projectName = (string) paramap.get ("ProjectName");

An exception occurred during a strong turn and was not captured. Specifically why this anomaly will affect the request for the resolution is not yet known, there is a big God know please leave a message to explain, thank you.

2. The method cannot return the data directly to the page after normal flow. Tip exceptions are as follows:

October 19, 2016 2:36:47 pm org.apache.catalina.core.StandardWrapperValve invoke severity: Servlet.service () for Servlet Spring-mvc t Hrew exceptionjavax.servlet.ServletException:File "/jsp/error.jsp" not Foundat Org.apache.jasper.servlet.JspServlet.handleMissingResource (jspservlet.java:335) at Org.apache.jasper.servlet.JspServlet.serviceJspFile (jspservlet.java:301) at Org.apache.jasper.servlet.JspServlet.service (jspservlet.java:260) at Javax.servlet.http.HttpServlet.service ( httpservlet.java:723) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( applicationfilterchain.java:290) at Org.apache.catalina.core.ApplicationFilterChain.doFilter ( applicationfilterchain.java:206) at Org.apache.catalina.core.ApplicationDispatcher.invoke ( applicationdispatcher.java:646) at Org.apache.catalina.core.ApplicationDispatcher.doInclude ( applicationdispatcher.java:551) at Org.apache.catalina.core.ApplicationDispatcher.include ( applicationdispatcher.java:488) at Org.springframework.web.servlet.view.InternalResourCeview.rendermergedoutputmodel (internalresourceview.java:229) at Org.springframework.web.servlet.view.AbstractView.render (abstractview.java:264) at Org.springframework.web.servlet.DispatcherServlet.render (dispatcherservlet.java:1208) at Org.springframework.web.servlet.DispatcherServlet.processDispatchResult (dispatcherservlet.java:992) at Org.springframework.web.servlet.DispatcherServlet.doDispatch (dispatcherservlet.java:939) at Org.springframework.web.servlet.DispatcherServlet.doService (dispatcherservlet.java:856) at Org.springframework.web.servlet.FrameworkServlet.processRequest (frameworkservlet.java:920) at Org.springframework.web.servlet.FrameworkServlet.doPost (frameworkservlet.java:827) at Javax.servlet.http.HttpServlet.service (httpservlet.java:643) at Org.springframework.web.servlet.FrameworkServlet.service (frameworkservlet.java:801) at Javax.servlet.http.HttpServlet.service (httpservlet.java:723) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java:290) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206) at Org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal (hiddenhttpmethodfilter.java:77) at Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:107) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:235) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206) at Com.zhaopin.common.filter.SessionFilter.doFilter (sessionfilter.java:111) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:235) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206) at Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:88) at Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:107) at Org.apache.catalina.core.ApplicationFilterChain.internaldofilter (applicationfilterchain.java:235) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206) at Org.apache.catalina.core.StandardWrapperValve.invoke (standardwrappervalve.java:233) at Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:191) at Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:127) at Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:103) at Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:109) at Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:293) at Org.apache.coyote.http11.Http11Processor.process (http11processor.java:861) at Org.apache.coyote.http11.http11protocol$http11connectionhandler.process (http11protocol.java:606) at Org.apache.tomcat.util.net.jioendpoint$worker.run (jioendpoint.java:489) at Java.lang.Thread.run (thread.java:745)

Online search-related information is repeated submissions of data. Check front end discovery, add a <a href= "" > in front of the button that binds the point-click event. This href= "" affected the response jump caused.

Depressed notes under these "accident" stories, the Memory (debugging Pain) Remember (simple bug waste time) ........ ........

Ajax Request background Data return exception and prompt 404 method name does not exist

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.