One: Cause
(1) Oneself next want to go the path of the algorithm, intends to put ten algorithms and mathematical model learning, is to give oneself before javaweb a summary;
(2) Remember that Java is the first to compare the language, but also with Javaweb through a long time, to do a summary of their own;
(3) Javaweb project development process errors, always recurring, in order to avoid the need to find trouble again, in this summary.
(4) Javaweb programming general error Handling collection
Second: Incorrect grooming of the HTTP status status code
(1) 500 error: Server internal error) the server encountered an error and could not complete the request--indicating an unexpected condition inside the server that prevented him from completing the processing of the team request, which released the error
In: Program run error published on the server;
(2) 501 (not implemented) the server does not have the ability to complete the request. For example, this code may be returned when the server does not recognize the request method (other 5** are uncommon);
(3) 404:not Found request not found, the requested resource is not found on the server (can be subdivided into 404.1-404.3) (not found) the server could not find the requested Web page;
(4) 405: The page cannot be found, that is, the page you are searching for may have been deleted, renamed, or temporarily unavailable. (please check that the URL is spelled correctly and that the HTTP verb used to access this page is not allowed
(method is not allowed). (method Disabled) Disables the method specified in the request.
(5) The rest is not very common, here will not write, detailed please see http://www.cnblogs.com/DeasonGuan/articles/Hanami.html
Three: The wrong comb Java Exceptions
(3) ClassNotFoundException: The exception for the specified class was not found, typically the exception that is thrown when a program view loads a class through a string (for example, the jar package was imported successfully;
References class, forname () ClassLoader, etc.);
(2) Nosuchmethodexception: Access to a non-existent method;
(3) SQLException: JDBC Link Database access exception (database service is not open, or database password is a problem, etc.);
(4) IllegalArgumentException: parameter illegal anomaly;
(5) Indexoutofboundexception: Index out-of-bounds exception, exceeding the length of array, string, list collection;
(6) NullPointerException: This thing is the most common, but also the most difficult to find exception: null pointer exception, access to a null object reference (can debug to locate the specific bit of the error
To find the position of the null pointer or add an empty statement before this statement, and of course use other exceptions that cause null, which Baidu should have)
(7) Emptystackexception: Empty stack exception, perform a stack operation on an empty stack
(8) FileNotFoundException: When the program view open a nonexistent file, read and write will throw an exception (seemingly not a lot of, a lot of read and write files, there is no automatic creation of OH)
(9) Other exceptions are rare. Exception processing see Java exception hierarchy and Java exceptions for the actual combat chapter (Trows and try Catch Dead Code)
Summary: 1) is a section of the project to do for oneself, 2) to Javaweb development, STL learning is over, 3) Open the Big Data algorithm, Hadoop, Spark Learning Road, 4) easy to re-pick up javaweb;5) graduate students should do something, Although the publication of the paper is reduced, it becomes a general periodical
Javaweb Error Handling Highlights