File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error" Watch "Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error" New topic
Author

Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error

jason polonus
Greenhorn

Joined: Jul 30, 2007
Posts: 1
I received the following:

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

exception

java.lang.NumberFormatException:
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at jsp.mailclient._jspService(mailclient.java:222)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
at java.lang.Thread.run(Unknown Source)



I am new to apache and .jsp all of my prior experience is with IIS and VS. I have a feeling that this is telling me what the issue is, however, I have no idea how to read this. Any help would be appreciated.
Mark Vedder
Ranch Hand

Joined: Dec 17, 2003
Posts: 624

In a nutshell, there is a piece of code that using the Integer.parseInt(String) method. That method is used to convert a String into an integer. That method is throwing a NumberFormatException because the String it is trying to parse does not represent a valid Integer. So the String "50" could be converted to an integer; but "50.5", "blah", or "one" could not be, and a NumberFormatException would get thrown.

It looks like the parseInt method is being used in a JSP (Java Server Page) named mailcliet.jsp The stack trace you show is reporting that the method is being used at line 222, but that is the line number of the compiled JSP, not the source file.

If that is a JSP you wrote, you will want to correct the code so it gets a valid String, or handle the Exception. If that is a JSP page you are using from an external source, then you likely have a typo in a config file or something else that is passing in a String -- that is suppose to represent an integer -- to the JSP.
[ July 30, 2007: Message edited by: Mark Vedder ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error