最近项目中上传一个附件:
下面的是个附件类中的内容的一个设置:
<result property="content" column="CONTENT" typeHandler="org.springframework.orm.ibatis.support.BlobByteArrayTypeHandler"/>spring配置文件中设置了最大上传时100M。Ibatis2 + spring2。之前用的spring1,oracle数据中blob类型该不会有问题的,而且之前也上传过很大的数据。
今天出现了这个
2010-11-23 12:51:39,125 ERROR [cn.com.inxite.kernel.service.impl.EnclServiceImpl] - <error: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [17070];
--- The error occurred while applying a parameter map.
--- Check the insertEncl-InlineParameterMap.
--- Check the parameter mapping for the 'enclcontent' property.
--- Cause: java.sql.SQLException: 数据大小超出此类型的最大值: 59904; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred while applying a parameter map.
--- Check the insertEncl-InlineParameterMap.
--- Check the parameter mapping for the 'enclcontent' property.
--- Cause: java.sql.SQLException: 数据大小超出此类型的最大值: 59904>是spring.jar包换的问题??想了一通也没个结果,请大家帮忙
下面的是个附件类中的内容的一个设置:
<result property="content" column="CONTENT" typeHandler="org.springframework.orm.ibatis.support.BlobByteArrayTypeHandler"/>spring配置文件中设置了最大上传时100M。Ibatis2 + spring2。之前用的spring1,oracle数据中blob类型该不会有问题的,而且之前也上传过很大的数据。
今天出现了这个
2010-11-23 12:51:39,125 ERROR [cn.com.inxite.kernel.service.impl.EnclServiceImpl] - <error: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [17070];
--- The error occurred while applying a parameter map.
--- Check the insertEncl-InlineParameterMap.
--- Check the parameter mapping for the 'enclcontent' property.
--- Cause: java.sql.SQLException: 数据大小超出此类型的最大值: 59904; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred while applying a parameter map.
--- Check the insertEncl-InlineParameterMap.
--- Check the parameter mapping for the 'enclcontent' property.
--- Cause: java.sql.SQLException: 数据大小超出此类型的最大值: 59904>是spring.jar包换的问题??想了一通也没个结果,请大家帮忙
private byte[] enclcontent;
tomcat或resin 都没有这个问题,汗