Server 500 Erros and Java
One of my developers and I are having a discussion. He is stating that a server 500 error means that the server (apache) is causing the server 500 error.
I on the other hand am stating that the server 500 error is being caused by a java application that abnormally exists due to a problem.
The problem is Input validation, as I see it. The application is expecting a parameter being sent back from a web form, (example: ?state=NV) but the parameter is not there (example: ?state=&zip=21022) OR the parameter contains bogus information (example: ?state=%27). When this is sent back to the application, it crashes. The application is not showing the java screen dump, because he's capturing it.
From some testing, I found that the application aborts (server 500 error) upon the entry of anything ther than what is expected in the state field.
Now, correct me if I am wrong, but the server 500 error generated is the apache server stating that the application aborted.
I would assume that in Java like other languages, you should be able to capture the error exception prior to the crash and deal with it through an error handler. Right?
My knowledge of Java is limited and I appreciate anyones input here