2 guo1362112501 guo1362112501 于 2013.11.20 11:02 提问

Error marshalling java.util.Date: For input string: "2013-09-10%2013%3A09"

时间文本框:

通过dwr获取res,向表单传值:
res[0] = [{devNo:res[0].devNo,sleepTime:res[0].sleepTime,syncTime:formatDate(res[0].syncTime,'yyyy-mm-dd HH:nn'),safeTime:formatDate(res[0].safeTime,'HH:nn'),warmCount:res[0].warmCount,limitDl:res[0].limitDl}];

获取数据的方法:
public List queryDevInitParam(String dn, boolean bool) {
isQueryDev=false;
User user = UserUtil.getCurrentUser();
if (user == null || user.getPowerSupply() == null || dn == null)
return Collections.EMPTY_LIST;
// this.packQueryDev(dn);

        StringBuffer sb = new StringBuffer(
                "select d.id as id, d.dev_no as devNo,d.sleep_time as sleepTime,"
                        + "d.sync_time as syncTime,d.safe_time as safeTime,d.warm_count as warmCount,d.limit_dl as limitDl"
                        + " from t_dev_param d where d.dev_no=:dn");
        Map params = new HashMap();
        params.put("dn", dn);
        Map sc = new HashMap();
        sc.put("id", Hibernate.STRING);
        sc.put("devNo", Hibernate.STRING);
        sc.put("sleepTime", Hibernate.INTEGER);
        sc.put("syncTime", Hibernate.TIMESTAMP);
        sc.put("safeTime", Hibernate.TIMESTAMP);
        sc.put("warmCount", Hibernate.INTEGER);
        sc.put("limitDl", Hibernate.INTEGER);
        HibernateCallback action = HibernateCallbackUtil.getNativeCallback(
                sb, params, false, sc, Transformers.ALIAS_TO_ENTITY_MAP);
        List res = (List) hibernateTemplate.execute(action);

        return res; 
}

问什么回报错呢?????

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
org.directwebremoting.extend.MarshallException: Error marshalling
dwr常见问题
Error marshalling com.boao.crm.model.dtd.FacilityOrderTypeSet: Error reading bean. Input parameter
8947 [http-80-5] WARN  org.directwebremoting.dwrp.BaseCallMarshaller  - Marshalling exception org.directwebremoting.extend.MarshallException: Error marshalling com.boao.crm.model.dtd.FacilityOrderTyp
org.apache.cxf.interceptor.Fault: Marshalling Error: XXXX is not known to this context
今天在调用webservice 接口时,报如下错误 org.apache.cxf.interceptor.Fault: Marshalling Error: XXXX is not known to this context 原因: cxf的一个方法或者说一个请求中,多次调用webservice时,不允许存在多个webservice的wsdl地址 解决办法: 每次调用每次修改wsd
Error marshalling data
使用dwr的时候,调用时页面老师报Error marshalling data yuany
Can not deserialize value of type java.util.Date from String异常解决办法
问题描述:今天在用swagger2接口测试文档,调试接口时,传递日期值时报以下异常: Can not deserialize value of type java.util.Date from String异常Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not deserialize value...
java.rmi.MarshalException: error marshalling arguments
测试Java RMI时报告一下错误 java.rmi.MarshalException: error marshalling arguments; nested exception is:          java.io.NotSerializableException: com.server.IHelloImpl         at sun.rmi.registry.RegistryI
Marshalling Error: XXXX is not known to this context
近期一个需求,需要在一个 cfx+spring搭建的webService项目的一个功能中调用另外一个WebService项目中的两个接口,单独调用两个接口没有任何异常,但是同时调用两个接口就会报异常 org.apache.cxf.interceptor.Fault: Marshalling Error: XXXX is not known to this conte,同事帮助得以解决,做个例子特此
关于jackson中时间字符串的转换
"yyyy-MM-dd'T'HH:mm:ss.SSSZ" "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" "EEE, dd MMM yyyy HH:mm:ss zzz" "yyyy-MM-dd" 当尸实体中存在Date类型,但是json字符串中是字符串类型 只支持以上几种格式否则报错 org.codehaus.jackson.map.JsonMappingException
SpringMVC json处理 (Jackson)
package com.e6.ztest; public class AccountBean {    private int id;    private String name;    private String email;    private String address;    private Birthday birthday;        //gette
org.codehaus.jackson.map.JsonMappingException: Can not construct instance of java.util.Date from Str
项目中使用了redis做缓存,之前使用的SSM框架,没有出现什么问题。后来将SSM换成Springboot后,莫名其妙的出现了以下错误:关键报错信息:com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not deserialize value of type java.util.Date from String "2017...