tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piller Sébastien <pi...@hmcrecord.ch>
Subject Re: FW: HTTP Status 500 - with Apache Tomcat/5.5
Date Mon, 15 Dec 2008 09:15:24 GMT
Somewhere in your code, you're trying to decode a date which isn't on 
the right format:

    javax.servlet.ServletException: Unparseable date: "Mon Dec 15
    16:29:38 GMT+08:00 2008"

You can either use a compatible SimpleDateFormat (with a pattern which 
goes fine) or remove that part of code.

But this has nothing to do with tomcat at all, this is pure java


hsuan a écrit :
> Hi all:
>
> when I run the http://localhost:8180/geant2-java-rrd-ma in the browser ,it's
> show the error message as follows :
>
>  
>
>  
>
>  
>
> HTTP Status 500 -
>
>   _____  
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: Exception in JSP: /index.jsp:77
>
>  
>
> 74:        
>
> 75:        java.text.DateFormat dateFormat = new
> java.text.SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");
>
> 76:        java.util.Date now=  new java.util.Date();
>
> 77:        java.util.Date date= dateFormat.parse(now.toString());
>
> 78:        String confPath = "WEB-INF/classes/perfsonar/conf/";
>
> 79:        String ServicePropertiesPath = confPath+ "service.properties";
>
> 80:        ServletContext sc = getServletContext();
>
>  
>
>  
>
> Stacktrace:
>
>  
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWra
> pper.java:451)
>
>  
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 55)
>
>  
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
>
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
>
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> root cause
>
> javax.servlet.ServletException: Unparseable date: "Mon Dec 15 16:29:38
> GMT+08:00 2008"
>
>  
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
> mpl.java:841)
>
>  
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:774)
>
>         org.apache.jsp.index_jsp._jspService(index_jsp.java:239)
>
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
>
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>  
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 31)
>
>  
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
>
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
>
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> root cause
>
> java.text.ParseException: Unparseable date: "Mon Dec 15 16:29:38 GMT+08:00
> 2008"
>
>         java.text.DateFormat.parse(DateFormat.java:335)
>
>         org.apache.jsp.index_jsp._jspService(index_jsp.java:127)
>
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
>
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>  
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 31)
>
>  
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
>
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
>
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.5 logs.
>
>   _____  
>
> Apache Tomcat/5.5
>
>  
>
>  
>
> What's the problem ?
>
> How can I to solve the problem ?
>
>  
>
> Thanks!
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message