关于取sql 2K中的text类型的字段值过大的有关问题

关于取sql 2K中的text类型的字段值过大的问题

前几天实施oa的时候,出现了一个大的问题,当客户发表文章过长的时候。

就会发生:Caused by: java.sql.SQLException: The amount of data read from the stream is not = length.

 

The error occurred while applying a result map.

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

 

 

最后发现换一个包可以解决。jtds-1.0.2.jar换成更高版本的:jtds-1.2.jar 。附下载。