Http 500 Internal Server Error Jsp
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 of this site About Us Learn more
Http Status 500 - Internal Server Error Java
about Stack Overflow the company Business Learn more about hiring developers or posting ads http status 500 - internal server error glassfish with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow http status 500 - internal server error jsp is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Http 500 Internal Server Error up vote -1 down vote favorite 1 http://localhost:8080/file.jsp?arg1=&arg2=11
Http Status 500 - Internal Server Error Tomcat
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 Apr 2 '12 at 7:19 Ashish Anand 1,38331934 Which app server you are using. It is the server/application issue.
Http 500 Internal Server Error In Jsp Page
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")) ? Integer.parseInt(request.getParameter("arg2")): 0; share|improve this answer edited Apr 2 '12 at 10:00 answered Apr 2 '12 at 9:52 Hardik Mishra 10.4k53776 This doesn't cover string values containing non-digits. E.g. arg2=foo. –BalusC Apr 2 '12 at 14:11 @BalusC: I agre
here for a quick overview of the site Help Center Detailed answers to any questions you might have how to solve http status 500 error in tomcat Meta Discuss the workings and policies of this site About Us
Glassfish Error 500
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with http 500 internal server error in java us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just http://stackoverflow.com/questions/9972295/http-500-internal-server-error 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 can't figure out why. It keeps sending HTTP Status http://stackoverflow.com/questions/33298537/how-to-fix-http-status-500-internal-server-error 500 error. Here's the jsp: <%@page contentType="text/html" pageEncoding="UTF-8"%>