最近项目中上传一个附件:
下面的是个附件类中的内容的一个设置:
<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包换的问题??想了一通也没个结果,请大家帮忙

解决方案 »

  1.   

    最大100M的,oracle CLOB类型的怎么能连60K都放不下?
      

  2.   

    你的DTO里 和这个字段对应的 变量时什么类型的?
      

  3.   

    你的DTO里 和这个字段对应的 变量时什么类型的?
      

  4.   

    抱歉搞别的了,定义的是byte[] 类型的
    private byte[] enclcontent;
      

  5.   

    别提了又出现新情况,我用的jetty进行的部署,出现这个问题,但用
    tomcat或resin 都没有这个问题,汗