Home > front end >  Tocmat 500
Tocmat 500

Time:12-04

HTTP Status 500 - Internal Server Error
Type abnormality report

Message in [10] [/index. The JSP] when an exception occurs

Description the server encountered an unexpected situation, prevent it to complete the request,

The Exception

Org. Apache. Jasper. JasperException: in [10] processing [/index. The JSP] an exception occurs when the

7: & lt;/head>
8:
9: & lt; body>
10: & lt; The JSP: forward page="ShowIndexServlet" & gt;
11: & lt;/body>
12: & lt;/html>


Stacktrace:
Org. Apache. Jasper. Servlet. JspServletWrapper. HandleJspException (JspServletWrapper. Java: 618)
Org. Apache. Jasper. Servlet. JspServletWrapper. Service (515) JspServletWrapper. Java:
Org. Apache. Jasper. Servlet. JspServlet. ServiceJspFile (JspServlet. Java: 395)
Org. Apache. Jasper. Servlet. JspServlet. Service (339) JspServlet. Java:
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 728)
Cn. Itcast. Itcaststore. Web. Filter. EncodingFilter. DoFilter (EncodingFilter. Java: 27)
Root Cause

Java. Lang. RuntimeException: query the latest to add or modify a announcement failed!
Cn. Itcast. Itcaststore. Service. NoticeService. GetRecentNotice (NoticeService. Java: 61)
Cn. Itcast. Itcaststore. Web. Servlet. Client. ShowIndexServlet. DoPost (ShowIndexServlet. Java: 29)
Cn. Itcast. Itcaststore. Web. Servlet. Client. ShowIndexServlet. DoGet (ShowIndexServlet. Java: 22)
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 621)
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 728)
Org. Apache. Jasper. Runtime. PageContextImpl. DoForward (PageContextImpl. Java: 751)
Org. Apache. Jasper. Runtime. PageContextImpl. Forward (721) PageContextImpl. Java:
Org. Apache. JSP. Index_jsp. _jspService (index_jsp. Java: 94)
Org. Apache. Jasper. Runtime. HttpJspBase. Service (HttpJspBase. Java: 71)
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 728)
Org. Apache. Jasper. Servlet. JspServletWrapper. Service (477) JspServletWrapper. Java:
Org. Apache. Jasper. Servlet. JspServlet. ServiceJspFile (JspServlet. Java: 395)
Org. Apache. Jasper. Servlet. JspServlet. Service (339) JspServlet. Java:
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 728)
Cn. Itcast. Itcaststore. Web. Filter. EncodingFilter. DoFilter (EncodingFilter. Java: 27)
) : the whole stack information can pay attention to the main problem in the server logs view

Apache Tomcat/7.0.103
Where is the mistake, bosses give advice or comments

CodePudding user response:

To debug the code in NoticeService. GetRecentNotice method inside a look

CodePudding user response:

I understand!!!!! One reason is that the mysql connector - Java packages for my database version is too low, go to the website next to matching the mysql database version - connector - Java packages, in import the configuration, you can run the,,,
  • Related