开发者社区> 问答> 正文

JRebel4.0 ibatis sqlmap刷新后访问页面报错误:No LobHandler

sqlmap-config.xml文件中有下述的typeHandler


使用JRebel4.0,当更改sqlmap中的sql内容后,重新访问页面,报下述的错误!

JRebel-iBATIS: Reloading sql maps.

org.apache.struts.chain.commands.AbstractExceptionHandler Unhandled exception
java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/typeHandler'. Cause: java.lang.IllegalStateException: No LobHandler found for configuration - lobHandler property must be set on SqlMapClientFactoryBean
---------------问题补充---------------
@desert3:JRebel关于ibatis的版本变更 3.6 (31st January 2011) Fixed iBatis reloading when used with Spring template 3.5 (15th November 2010) Fixed iBATIS sql map reloading when iBATIS is configured by Spring 3.1 (1st June 2010) * Added iBatis plugin for reloading sql maps(5年前)

展开
收起
a123456678 2016-03-12 17:52:32 4224 0
1 条回答
写回答
取消 提交回答
  • 使用Spring框架来转换数据库中的Clob和Blob类型,出现了IllegalStateException主要的原因是你的sqlmap-config.xml文件中第一个typeHandler的javaType="[B",他是通过reflection来转换数据库的类型,问题就在这,

    将javaType="Java.lang.String"覆盖上面的错误。

    2019-07-17 19:01:18
    赞同 展开评论 打赏
问答分类:
问答地址:
相关产品:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载