- 论坛徽章:
- 0
|
情况是这样:
我在HP-UX下的oracle 9.2.0.1,web服务器是tomcat,在这样的配置下,应用没有问题
目前我把数据库迁移到linux下的oracle 9.2.0.4和oracle 10.2.0.1
迁移到linux下的oracle 9i和oracle 10g上面,我通过数据库直接插入或者pl/sql插入中文
都没有问题,但通过tomcat下的应用插入中文就报错如下:
Caused by: com.ibatis.dao.client.DaoException: Failed to insert - id [insertElement], parameterObject [com.unisk.cms.domain.Element@304648]. Cause: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/unisk/cms/persistence/sqlmapdao/sql/Element.xml.
--- The error occurred while applying a parameter map.
--- Check the insertElement-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
Caused by: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/unisk/cms/persistence/sqlmapdao/sql/Element.xml.
--- The error occurred while applying a parameter map.
--- Check the insertElement-InlineParameterMap.
--- Check the statement (update failed).
这是怎末回事,大家看看怎末解决 |
|