________________________________________________________________
Possible causes of failure phenomena
________________________________________________________________
The servlet cannot compile other than the usual Java language errors, and there are some reasons related to the servlet:
1 did not import javax.servlet.* or javax.servlet.http.*;
Class 2 does not implement the subclass servlet or one of its subclasses;
3 Servlet.jar not set in the Classpath
________________________________________________________________
There may be several reasons why the servlet is not loaded:
1 using the wrong URL (for example, no/servlet specified);
2 capitalization error;
Class 3 is not in servlet path of the servlet engine;
4 The class is not in the servlet engine's classpath;
5 servlet failed during initialization
6 The servlet engine is not in a running state;
7 The Web server is not in a running state
_______________________________________________________________
Empty parameter values see if Getparameteter () uses a parameter with multiple values
_______________________________________________________________
Null-pointer exception this may indicate a failure to create a session before extracting a value from a session
_______________________________________________________________
The error of the initial parameter confirms that the parameter name is spelled exactly the same as in the servlet attribute in the program
(Note case)
________________________________________________________________
Null initialization parameter init () method does not call Super.init (config)
________________________________________________________________
The servlet engine suspends the Destroy () method without invoking Super.destroy () when it is closed;
________________________________________________________________
The wrong MIME type ensures that setContentType () is invoked before writing to the response stream;
________________________________________________________________
The corrupted data value confirms that the instance variable is used in a unsynchronized method.
Remember: Unless it is shown to achieve Singlethreadmode,
A single instance of the servlet can be run by multiple threads, and if so,
Any instance variables are shared by all threads.
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.