黑马程序员技术交流社区

标题: DateConverter does not support default String to 'Date' conversion. [打印本页]

作者: tfy    时间: 2013-1-4 23:45
标题: DateConverter does not support default String to 'Date' conversion.
2013-1-4 23:44:40 org.apache.commons.beanutils.converters.DateTimeConverter toDate
警告:     DateConverter does not support default String to 'Date' conversion.
org.apache.commons.beanutils.ConversionException: DateConverter does not support default String to 'Date' conversion.
2013-1-4 23:44:40 org.apache.commons.beanutils.converters.DateTimeConverter toDate
警告:     (N.B. Re-configure Converter or use alternative implementation)
        at org.apache.commons.beanutils.converters.DateTimeConverter.toDate(DateTimeConverter.java:468)
        at org.apache.commons.beanutils.converters.DateTimeConverter.convertToType(DateTimeConverter.java:343)
        at org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:156)
        at org.apache.commons.beanutils.converters.ConverterFacade.convert(ConverterFacade.java:60)
        at org.apache.commons.beanutils.BeanUtilsBean.convert(BeanUtilsBean.java:1078)
        at org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:437)
        at org.apache.commons.beanutils.BeanUtilsBean.copyProperties(BeanUtilsBean.java:286)
        at org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:137)
        at com.itheima.web.controller.AddCustomerServlet.doGet(AddCustomerServlet.java:40)
        at com.itheima.web.controller.AddCustomerServlet.doPost(AddCustomerServlet.java:69)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
        at java.lang.Thread.run(Thread.java:619)



作者: 杨杨    时间: 2013-1-30 12:57
string to date有格式要求你在看看手册吧




欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2