Jsp 500 Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies
500 Internal Server Error Jsp
of this site About Us Learn more about Stack Overflow the company Business http status 500 - internal server error java Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges http 500 internal server error in jsp page Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute:
Http 500 Internal Server Error In Java
Sign up Http 500 Internal Server Error up vote -1 down vote favorite 1 http://localhost:8080/file.jsp?arg1=&arg2=11 runs successfully http://localhost:8080/file.jsp?arg1=&arg2= (empty value for argument 'arg2') shows 500 Internal Server Error The value of 'arg2' is used by an 'int' variable in 'jsp' using Integer.parseInt(request.getParameter("arg2") How to fix it? jsp arguments internal-server-error get-request share|improve this question edited Apr 2 '12 at 10:32 Hardik Mishra 10.4k53776 asked
Http Status 500 - Internal Server Error Glassfish
Apr 2 '12 at 7:19 Ashish Anand 1,38331934 Which app server you are using. It is the server/application issue. Check if your application is handling null values, or else check with the server support. –Ramesh PVK Apr 2 '12 at 8:36 3 "HTTP 500 internal server error" is an overly generic message that the server has a problem processing the request. This is in turn usually caused by a bug in the server side code. This information is visible in the server logs, usually in flavor of an exception and a stacktrace. You, as a developer, should pay attention to this exception. Just telling "I got a 500 error" is absolutely not helpful. –BalusC Apr 2 '12 at 14:10 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted It is because you are trying to parse "" with Integer.parseInt Check Integer parseInt() API When you do not pass any values Like below http://localhost:8080/file.jsp?arg1=&arg2= Empty string will be passed in http request parameters. So, better put empty check when parsing integer from string. int arg2 = !"".equals(request.getParameter("arg2
here for a quick overview of the site Help Center Detailed answers to any questions the server encountered an internal error () that prevented it from fulfilling this request. you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a http://stackoverflow.com/questions/9972295/http-500-internal-server-error community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to Fix “HTTP Status 500 - Internal Server Error” up vote 1 down vote favorite I'm trying to send variables between jsp using servlets, but I got this error that I still http://stackoverflow.com/questions/33298537/how-to-fix-http-status-500-internal-server-error can't figure out why. It keeps sending HTTP Status 500 error. Here's the jsp: <%@page contentType="text/html" pageEncoding="UTF-8"%>