expected type: java.lang.String, actual value: $Proxy26
来源:互联网 发布:it项目管理工具 编辑:程序博客网 时间:2024/05/28 15:07
这个错误是在什么情况下报出的:
sqlsever+ssh的 时候
使用的是非持久化的查询,因为是多服务器查询,
query = getSession().createSQLQuery(sql).setResultTransformer(Transformers.aliasToBean(clazz));
其中使用 了这句转换:
那么为什么报String的错误列,时因为hibernate查询出来之后我对应数据库(sqlserver)的字段是text,hibernate使用的是blob
所以不能直接转换string;
白白浪费10分钟调试.
- expected type: java.lang.String, actual value: $Proxy26
- 解决:Failed to convert value of type 'java.lang.String' to required type 'java.util.Date';
- Failed to convert from type java.lang.String to type java.util.Date for value解决办法
- had objects of type "java.lang.String" but expected signature "org.apache.struts.upload.FormFile"
- Failed to convert property value of type [java.lang.String] to required type [boolean] for property
- 配置Spring Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource]
- Failed to convert value of type 'java.lang.String' to required type 'org.springframework.web.multipa
- springmvc-- Failed to convert property value of type 'java.lang.String' to required type
- Failed to convert property value of type [java.lang.String] to required type [int]
- Failed to convert property value of type 'java.lang.String' to required type 'int' for property
- org.json.JSONException: Value java.net.UnknownHostException of type java.lang.String cannot be conv
- cannot convert value of type 'String!' to expected argument type 'inout String'
- java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual
- Value of type java.lang.String cannot be converted to JSONObject
- Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONArra
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- #pragma comment
- COM技术初探(一)
- applicactioncontext的又一种写法
- ASP.NET十步学习法——第一步
- qt中的位置
- expected type: java.lang.String, actual value: $Proxy26
- html5 progress
- Jakarta Commons
- os.popen
- COM编程入门-- 第二部分——深入COM服务器
- 学习编程技术的成长之路
- IE6 IE 7 Firefox兼容处理
- eclispe override报错的解决办法
- spi读ic识别lcd