在使用过程中报如下异常:
java.lang.IllegalStateException: Spring transaction synchronization needs to be active for setting values in iBATIS TypeHandlers that delegate to a Spring LobHandler
意思是说我的Spring LobHandler没有添加到事物中,下面是详细的配置文件
-----spring bean.xml<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<!-- 数据库连接池 -->
<bean id="beanConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:jdbc.properties</value>
<value>classpath:main.properties</value>
</list>
</property>
</bean> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName" value="${jdbc.driverClassName}" />
<property name="url" value="${jdbc.url}" />
<property name="username" value="${jdbc.username}" />
<property name="password" value="${jdbc.password}" />
<property name="maxActive" value="50" />
<property name="maxIdle" value="20" />
<property name="maxWait" value="-1" />
<property name="removeAbandoned" value="true" />
<property name="removeAbandonedTimeout" value="400" />
</bean>
<!-- 事务管理器 -->
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource">
<ref local="dataSource" />
</property>
</bean>
<bean id="transactionInterceptor"
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager" ref="transactionManager" />
<property name="transactionAttributes">
<props>
<!--  <prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="*">PROPAGATION_REQUIRED,-AssistantException</prop>-->
<prop key="insert*">PROPAGATION_REQUIRED,-Exception</prop>   
                <prop key="update*">PROPAGATION_REQUIRED,-Exception</prop>   
                <prop key="select*">PROPAGATION_REQUIRED,readOnly</prop>   

</props>
</property>
</bean>
<bean
class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property name="beanNames">
<list>
<value>*ServiceImple</value>
</list>
</property>
<property name="interceptorNames">
<list>
<value>transactionInterceptor</value>
</list>
</property>
<!-- 强制AOP使用CGLIB代理 -->
<property name="proxyTargetClass">
<value>true</value>
</property>
</bean> 

    <bean id="defaultlobHandler"  class="org.springframework.jdbc.support.lob.DefaultLobHandler" lazy-init="true">
    </bean>
<!-- 数据库使用 -->
<bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
    <property name="dataSource" ref="dataSource" />
<property name="lobHandler" ref="defaultlobHandler"/> 
<property name="configLocation" value="classpath:SqlMapConfig.xml" />
</bean>


</beans>
 <bean id="inboxMangerDao"    class="com.***.***.core.dao.InboxMangerDao" >   
        <property name="sqlMapClient" ref="sqlMapClient"/>   
 </bean>   --------dao.xml 配置<resultMap id="InboxRM" class="Inbox">
<result property="uuid" column="Uuid" />
<result property="subject" column="Subjtct" />
<result property="formUser" column="FormUser" />
<result property="isNew" column="IsNew" />
<result property="isFlag" column="IsFlag" />
    <result property="replySign" column="ReplySign" />
 <result property="Content" column="Content" typeHandler="org.springframework.orm.ibatis.support.BlobByteArrayTypeHandler" /> <result property="fromTime" column="FromTime" />
    <result property="status" column="Status" />
<result property="isDelete" column="IsDelete" />
<result property="createTime" column="CreateTime" />
</resultMap>
-<insert id="addInbox" parameterClass="Inbox">
    insert into M_System_Inbox(Uuid,Subjtct,FormUser,IsNew,IsFlag,ReplySign,Content,FromTime) 
    values 
    (#uuid#,#subject#,#formUser#,#isNew#,#isFlag#,#replySign#,#Content,handler=org.springframework.orm.ibatis.support.BlobByteArrayTypeHandler#,#fromTime#)
    </insert>
请各位大大看看是怎么回事