qq_40585211 2018-07-25 08:05 采纳率: 0%
浏览 3214
已结题

执行insert操作时报错,求问错误原因

在程序执行一个insert操作时,出现报错,求问各位大佬问题出在哪里?
报错为:
org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];

--- The error occurred while applying a parameter map.

--- Check the IfapChatRecord.insertSelective-InlineParameterMap.

--- Check the parameter mapping for the 'content' property.

--- Cause: java.lang.IllegalStateException: Spring transaction synchronization needs to be active for setting values in iBATIS TypeHandlers that delegate to a Spring LobHandler; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:

--- The error occurred while applying a parameter map.

--- Check the IfapChatRecord.insertSelective-InlineParameterMap.

--- Check the parameter mapping for the 'content' property.

--- Cause: java.lang.IllegalStateException: Spring transaction synchronization needs to be active for setting values in iBATIS TypeHandlers that delegate to a Spring LobHandler

  • 写回答

4条回答 默认 最新

  • threenewbee 2018-07-25 08:08
    关注

    ibatis插入Blob类型,操作要在事务中进行

    评论

报告相同问题?

悬赏问题

  • ¥15 gwas 分析-数据质控之过滤稀有突变中出现的问题
  • ¥15 没有注册类 (异常来自 HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
  • ¥15 知识蒸馏实战博客问题
  • ¥15 用PLC设计纸袋糊底机送料系统
  • ¥15 simulink仿真中dtc控制永磁同步电机如何控制开关频率
  • ¥15 用C语言输入方程怎么
  • ¥15 网站显示不安全连接问题
  • ¥15 51单片机显示器问题
  • ¥20 关于#qt#的问题:Qt代码的移植问题
  • ¥50 求图像处理的matlab方案