ORA-01461错误解决

ORA-01461: can bind a LONG value only for insert into a LONG column

原来是用weblogic的连接池,没有问题。

转为tomcat或直接jdbc调用,报错。

原因:使用了ojdbc14.jar,更新为ojdbc6即可。weblogic连接池是不用WEB-INF下的lib的ojdbc.jar的。

详细错误信息:

DEBUG SQL execute time: 0.0s

DEBUG SQL update TF_SP_USER_PERSON set ADDRESS = ?,CERTIFICATE_NO = ?,CERTIFICATE_TYPE = ?,CREATE_TIME = ?,CUST_LEVEL = ?,CUST_NO = ?,CUST_RISK = ?,HEAD_FILE_ID = ?,IS_FUND_FLAG = ?,MOBILE_PHONE = ?,PERSON_NAME = ?,POST_CODE = ?,RISK_END_DATE = ?,SP_USER_ID
= ?,SP_USER_NAME = ?,UPDATE_TIME = ? where SP_USER_ID = ?

DEBUG PARAM [佛山, 441422199108292310, 0, 2015-01-23 17:14:45.0, null, 31507,   , null, 1, 1868880XXXX, 桂强, 528000,         , 1000139, 桂强, 2015-01-28 16:07:08.0, 1000139]

ERROR ERROR SQL update TF_SP_USER_PERSON set ADDRESS = ?,CERTIFICATE_NO = ?,CERTIFICATE_TYPE = ?,CREATE_TIME = ?,CUST_LEVEL = ?,CUST_NO = ?,CUST_RISK = ?,HEAD_FILE_ID = ?,IS_FUND_FLAG = ?,MOBILE_PHONE = ?,PERSON_NAME = ?,POST_CODE = ?,RISK_END_DATE = ?,SP_USER_ID
= ?,SP_USER_NAME = ?,UPDATE_TIME = ? where SP_USER_ID = ?

org.apache.tapestry.ApplicationRuntimeException: Unable to invoke method personLogin on [email protected][thfund.Login]: null

at org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java:283)

at org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:46)

at org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(ListenerMap.java:97)

at org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTriggered(ListenerMap.java:102)

at com.company.webframework.tapestry.components.ajaxComponent.MappService.service(MappService.java:78)

at org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:889)

at org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:198)

at org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:327)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.company.filter.RightFilter.doFilter(RightFilter.java:37)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.company.filter.AutoLoginFilter.doFilter(AutoLoginFilter.java:56)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.company.filter.security.xss.XSSSecurityFilter.doFilter(XSSSecurityFilter.java:36)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:620)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:662)

Caused by: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java:257)

... 30 more

Caused by: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)

at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)

at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)

at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:543)

at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)

at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)

at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2960)

at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)

at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)

at com.company.dbframework.jdbc.ParameterStatement.executeUpdate(ParameterStatement.java:99)

at com.company.dbframework.jdbc.DaoManager.executeUpdate(DaoManager.java:244)

at com.company.dbframework.jdbc.DaoManager.update(DaoManager.java:989)

at com.company.dbframework.jdbc.DaoManager.save(DaoManager.java:1319)

at com.company.dbframework.jdbc.DaoManager.save(DaoManager.java:1274)

at com.company.dbframework.jdbc.DaoManager.save(DaoManager.java:1235)

at com.company.dbframework.jdbc.DaoManager.save(DaoManager.java:1246)

at com.company.thfund.bean.register.RegisterDAO.updatePerson(RegisterDAO.java:50)

at com.company.thfund.bean.login.LoginBean.modifyPersonInfo(LoginBean.java:243)

at com.company.thfund.view.Login.personLogin(Login.java:99)

... 35 more

ERROR execute failed, rollback...sdcen1

时间: 2024-10-28 22:18:20

ORA-01461错误解决的相关文章

【Oracle】ora-12541错误解决

ORA-12541: TNS无监听程序错误 1.在oracle安装目录下查找listener.ora和tnsnames.ora文件,然后打开 2.将host改为机器名 3.执行命令:lsnrctl stop,再执行lsnrctl start. [Oracle]ora-12541错误解决,布布扣,bubuko.com

【故障处理】分布式事务ORA-01591错误解决

[故障处理]分布式事务ORA-01591错误解决 1  BLOG文档结构图       2  前言部分 2.1  导读和注意事项 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O(∩_∩)O~: ① 分布式事务的简单概念         ② ORA-01591错误解决   Tips: ① 本文在ITpub(http://blog.itpub.net/26736162).博客园(http://www.cnblogs.com/lhrbest)和微信公众号(x

ORA-27100 shared memory realm already exists错误解决方法

环境:win 2003   + oracle 10g win 2003服务器物理内存4G oracle10g SGA             1504M 事故背景: 调整SGA大小,因为OS的内存只有4G,建议SGA的大小不要超过60%,我调整为2G SQL> alter systemset sga_max_size=2000m scope=spfile; 重启数据库报错ORA-27100 shared memory realm already exists 分析原因:对于32位机器ORACLE

Oracle 数据库 Database Express Edition 11g Release 2 (11.2) 错误解决集锦

前言:第一次接触数据库,想下载个oracle试玩下(虽然听说一般大企业才用),到 官网下载 了个简易版 XE 版本,安装时要注意记住自己输入的数据库密码(口令)  还有安装路径不能含有空格(Do not select a directory that has spaces in its name), 安装完后什么都没反应,唯一的帮助就是开始菜单->Oracle Database Express Edition ->获取帮助    点击 阅读文档 可以到官网看基本使用说明. 基本的操作问题在 阅

关于10g DG中的ORA-19527和ORA-00312错误解决示例

这几天在搭建10g DG Windows 2008 R2的测试环境,主要是明天要去给一客户重新搭建一套生产库的DG,其中发现一些问题,特此记录一下 由于将要部署到生产环境,所以考虑在线搭建DG的方案,即不停库的情况下,而问题主要就是出在不停库时,用RAMN创建STANDBY的时候 通常在线搭建DG,主要是下面几个步骤: 1. 确保主库开启归档,并开启force logging模式 2. 主库在线修改spifle,alter system set .... scope=both;并创建pfile

This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery' 错误解决

原因是内层select语句带有limit子句. 原: update stu_score_childen A  set  A.fScore='-1' where  A.fID in (select B.fID from stu_score_childen B limit 0,50 ) 更改后的 update stu_score_childen A  set  A.fScore='-1' where  A.fID in (select C.fID from (select B.fID from st

Out of resources when opening file 错误解决

mysqldump: Got error: 23: Out of resources when opening file './mydb/tax_calculation_rate_title.MYD' (Errcode: 24) when using LOCK TABLES 看到这个后,我比较奇怪,备份时锁定表却出错,关键是这个数据库现在也没被使用啊 后来到网上查查找到了原因 在mysql配置文件 my.cnf 中 找到 open_files_limit 增加它的值就行了 我的原来是 open_

阿里云Windows server 2008服务器搭建VPN 图文教程,购买境外服务器自建vpn,Win8/win10 连接VPN被阻止,出现812错误解决方法

阿里云Windows server 2008服务器搭建VPN 图文教程(超详细) 第一步:购买阿里云服务器,本文使用的是Windows Server 2008 R2 企业版64位中文版 IP地址:47.88.151.129,所属节点:亚太(新加坡) 服务器配置:2核,4GB,带宽10Mbps 第二步: 打开服务器管理器,点击添加角色,如下图: 本帖隐藏的内容然后弹出如下图所示,点击下一步: 点击后,如下图,勾选网络策略和网络服务,然后点击下一步: 接着继续点击下一步,直到弹出如下图所示的页面,勾

no module named win32com.client 错误解决

no module named win32com.client错误解决 一.错误描述 运行import win32com.client 的时候发现有import Error  no module named win32com.client这个提示,表明该模块未安装. 二.下载模块 从  https://sourceforge.net/projects/pywin32/files/pywin32/  下载相应Python版本的模块.安装后问题即解决. pywin32-220.win-amd64-p

mysql Access denied for user [email protected]错误解决方法总结(转)

mysql Access denied for user [email protected]错误解决方法总结(转) mysql Access denied for user \'root\'@\'localhost\'”解决办法总结,下面我们对常见的出现的一些错误代码进行分析并给出解决办法,有需要的朋友可参考一下. 错误代码 1045 Access denied for user 'root'@'localhost' (using password:YES) 解决办法是重新设置root用户密码,