1 Reply Latest reply on Dec 10, 2007 9:21 PM by gianfeng lee

    fmt:formatDate  Unparseable date urgent!

    gianfeng lee Newbie

      When web server is resin, it's ok. And these days I deploy the web app to jboss-4.2.1.GA.

      When i use jstl(1.1) like this:

      <fmt:formatDate value="10/25/2007 " type="both"/>

      report follow error.

      How to resolve this problem? thank you!

      org.apache.jasper.JasperException: org.jboss.util.NestedRuntimeException: Unparseable date: "Thu Oct 25 14:00:00 CST 2007"; - nested throwable: (java.text.ParseException: Unparseable date: "Thu Oct 25 14:00:00 CST 2007")
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:535)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:429)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
      org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      root cause


        • 1. Re: fmt:formatDate  Unparseable date urgent!
          gianfeng lee Newbie

          Maybe the top topic's error list is not excatly.

          org.jboss.util.NestedRuntimeException: Unparseable date: "2007-10-12 14:30:30"; - nested throwable: (java.text.ParseException: Unparseable date: "2007-10-12 14:30:30")
          org.jboss.util.propertyeditor.DateEditor.setAsText(DateEditor.java:134)
          org.apache.taglibs.standard.lang.jstl.Coercions.coerceToObject(Coercions.java:683)
          org.apache.taglibs.standard.lang.jstl.Coercions.coerce(Coercions.java:268)
          org.apache.taglibs.standard.lang.jstl.ELEvaluator.convertStaticValueToExpectedType(ELEvaluator.java:329)
          org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:206)
          org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:172)
          org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:110)
          org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:138)
          org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:84)
          org.apache.taglibs.standard.tag.el.fmt.FormatDateTag.evaluateExpressions(FormatDateTag.java:143)
          org.apache.taglibs.standard.tag.el.fmt.FormatDateTag.doStartTag(FormatDateTag.java:76)
          org.apache.jsp.clubindex_jsp._jspx_meth_fmt_005fformatDate_005f0(clubindex_jsp.java:905)
          org.apache.jsp.clubindex_jsp._jspService(clubindex_jsp.java:228)
          org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
          org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
          org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
          org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
          org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
          org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
          org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)