dwr返回时间报错-Error marshalling java.util.Date: For input string: "2013-09-10%2013%3A09"

问题描述

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;
}

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

时间: 2024-10-30 10:14:14

dwr返回时间报错-Error marshalling java.util.Date: For input string: "2013-09-10%2013%3A09"的相关文章

lnk1120-vs2010运行程序报错:error LNK2019: 无法解析的外部符号

问题描述 vs2010运行程序报错:error LNK2019: 无法解析的外部符号 如题,我在vs2010环境下做C++练习题时出现该错误.程序代码如下: //array.h#ifndef ARRAY_H#define ARRAY_Htemplate<typename T>class Array{public: Array(int n);//数组首地址不用指定,待会分配 Array(Array &a); ~Array(); T getAt(int i);//返回第i个数组元素 voi

linux使用wkhtmltopdf报错error while loading shared libraries:

官网提示 linux需要这些动态库.depends on: zlib, fontconfig, freetype, X11 libs (libX11, libXext, libXrender) 在linux上执行 ./wkhtmltopdf –page-size A4 www.baidu.com pdf.pdf 报错   error while loading shared libraries: libXrender.so.1 root@mag-sit:/home/mag-sit/wkhtmlt

mvel no context-MVEL 使用模板,当并发量大的时候, 报错 [Error: no context]

问题描述 MVEL 使用模板,当并发量大的时候, 报错 [Error: no context] Caused by: java.lang.RuntimeException: no context at org.mvel2.ParserContext.makeVisible(ParserContext.java:684) at org.mvel2.ParserContext.addVariable(ParserContext.java:477) at org.mvel2.ast.TypedVarN

arcgis-ae+c#中返回距离函数报错

问题描述 ae+c#中返回距离函数报错 IFeatureLayer aFL = axMapControl1.Map.get_Layer(0) as IFeatureLayer; IFeatureLayer bFL = axMapControl1.Map.get_Layer(1) as IFeatureLayer; IFeatureClass aFClass = aFL.FeatureClass; IFeatureCursor aFC = aFClass.Search(null, true); I

php图片上传报错error=3

问题描述 php图片上传报错error=3 upload: <?php/** Created by PhpStorm. User: rosen Date: 15-11-5 Time: 下午8:43*/print_r($_FILES['file']); ?> 为什么程序运行结果报错Array ( [name] => 2015-10-19 18:47:42屏幕截图.png [type] => [tmp_name] => [error] => 3 [size] => 0

异常-winform程序运行一段时间报错,弹出一框提示,是什么原因

问题描述 winform程序运行一段时间报错,弹出一框提示,是什么原因 报错内容翻译过来时:未处理的异常发生在你有如果您单击继续,应用程序将忽略此错误并尝试continue.if点击"退出",该应用程序将立即关闭.基础连接已关闭:一个连接,将活着被服务器关闭. 解决方案 只提供这点信息,别人可能帮不到你.所以建议你最好是能通过 Visual Studio 工具进行调试,如果在调试时出现错误,VS 会自动中断到代码中出错的地方. 解决方案二: 你的窗体程序里都运行什么?如果不长的话,把代

eclipse-菜鸟一枚~tv.setText(&amp;amp;quot;Hello Android-&amp;amp;quot; + new java.util.Date());这个一直报错滴说

问题描述 菜鸟一枚~tv.setText("Hello Android-" + new java.util.Date());这个一直报错滴说 小女女是菜鸟,最近刚开始看Android,这是一段疯狂Android讲义里面的代码,想试试看,发现会一直报错滴说 package com.example.helloworld; import android.app.Activity; import android.os.Bundle; import android.view.Menu; impo

arcgis-ArcSDE 做POST报错Error: Operation Failed (-1).

问题描述 ArcSDE 做POST报错Error: Operation Failed (-1). 同一主机:Windows2008 R2 64位,ArcSDE for 11g 64bit 本机Oracle11g64位服务端,Oracle11g 32位客户端,Oracle10g 32为服务端 环境变量 path C:appAdministratorproduct11.2.0client_1bin;E:appAdministratorproduct11.2.0dbhome_1bin;C:Progra

docker rmi报错Error response from daemon

docker commit了一个镜像之后想删除旧的镜像,出现以下报错 Error response from daemon: conflict: unable to delete 6f8214d56bfc (cannot be forced) - image has dependent child images 解决思路: docker save保存容器 docker images docker save REPOSITORY > XX.tar 删除镜像容器 docker ps -a docke