Tomcat reports exception org. apache. catalina. core. standardwrappervalve invoke

Source: Internet
Author: User

First time
This error is the most depressing, because there is no syntax error at all, and everything is correct,
Req. getSession (). setAttribute ("isaudit", audit );
Req. getSession (). setAttribute ("notaudit", notaudit );
Req. getRequestDispatcher ("proposer/applyHistory. jsp"). forward (req, resp );

I send messages through the session on the servlet end, and the other party receives the messages. It seems that there is no error at all, that is, the above exception will occur,
Finally, I searched for it online. As a result, I changed the first parameter name isaudit in setAttribute, which is difficult to find.

Online statement:
Org. apache. catalina. core. StandardWrapperValve invoke
Today, I wrote the code and encountered this exception several times in succession. Debug takes a few hours to figure it out, dizzy.
I found some pieces to make a summary on the Internet, but it is not guaranteed to be accurate. I will write it down for your reference only.
The following are error causes:
1. In servlet or jsp, call the getOutputStream () and response. getWriter () Methods of response repeatedly.
2. The form does not contain the method = "post" action = "" parameter
3. Check the JDBC database Code. For example, the property of the called object is null.
Connection conn = null; then, conn.? is called .?? Method
I am wrong here.
For reference only!

 

Second
My error is that the SQL statement is incorrectly written.

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.