`
lin213_213
  • 浏览: 78732 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

ORA-00932: 数据类型不一致: 应为 NUMBER, 但却获得 BINARY

 
阅读更多

[eStore]2011-11-13 15:38:36,078 WARN  SQL Error: 932, SQLState: 42000 | JDBCExceptionReporter.logExceptions(77)
[eStore]2011-11-13 15:38:36,109 ERROR ORA-00932: 鏁版嵁绫诲瀷涓嶄竴鑷� 搴斾负 NUMBER, 浣嗗嵈鑾峰緱 BINARY
 | JDBCExceptionReporter.logExceptions(78)
[eStore]2011-11-13 15:38:36,531 ERROR Error processing url:/mpmsfront/customer/csEditProfile.html | reportError_jsp._jspService(110)
[eStore]2011-11-13 15:38:36,531 ERROR Probably an exception caught by Spring MVC, check the debug info which may help identifying the error. | reportError_jsp._jspService(121)
[eStore]2011-11-13 15:38:36,546 ERROR Detailed JSP Exception: | reportError_jsp._jspService(125)
org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
Caused by:
org.hibernate.exception.SQLGrammarException: could not execute query
 at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
 at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
 at org.hibernate.loader.Loader.doList(Loader.java:2216)
 at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
 at org.hibernate.loader.Loader.list(Loader.java:2099)
 at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
 at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
 at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
 at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
 at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
 at org.springframework.orm.hibernate3.HibernateTemplate$29.doInHibernate(HibernateTemplate.java:849)
 at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:372)
 at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:840)
 at com.probiz.estore.system.dao.impl.MembershipDAOImpl.getMemberShipById(MembershipDAOImpl.java:110)
 at com.probiz.estore.system.service.impl.MembershipManagerImpl.getById(MembershipManagerImpl.java:122)
 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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
 at $Proxy24.getById(Unknown Source)
 at com.probiz.estore.customer.web.action.CustomerFormFrontController.formBackingObject(CustomerFormFrontController.java:107)
 at org.springframework.web.servlet.mvc.AbstractFormController.getErrorsForNewForm(AbstractFormController.java:358)
 at org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:338)
 at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:278)
 at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
 at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:859)
 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:793)
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
 at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
 at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
 at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
 at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
 at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
 at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
 at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:406)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at com.probiz.estore.core.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:62)
 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at com.probiz.estore.core.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:39)
 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at com.opensymphony.oscache.web.filter.CacheFilter.doFilter(CacheFilter.java:121)
 at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
 at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at com.probiz.estore.webapp.filter.ActionFilter.doFilterInternal(ActionFilter.java:62)
 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
 at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
 at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
 at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
 at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
 at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
 at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
 at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at com.probiz.estore.core.filter.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:110)
 at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
 at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
 at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
 at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
 at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
 at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
 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:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:619)
Caused by: java.sql.SQLException: ORA-00932: 鏁版嵁绫诲瀷涓嶄竴鑷� 搴斾负 NUMBER, 浣嗗嵈鑾峰緱 BINARY

 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
 at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
 at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
 at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)

 

 

出现这个数据类型不一致的误,很可能是因为传的值为空引起来的,空指针!

分享到:
评论

相关推荐

    oracle面试1000例

    3. **数据类型**: - 数值类型:NUMBER、INTEGER、BINARY_INTEGER等。 - 字符串类型:VARCHAR2、CHAR、LONG。 - 日期时间类型:DATE、TIMESTAMP。 4. **表操作**: - 创建表:CREATE TABLE语句,包括主键、外键...

    oracle与sql_server数据类型对应关系.doc

    4. **DATETIME映射问题**:SQL Server的datetime数据类型在Oracle中会被映射为char4,这可能造成数据格式不匹配的问题。 5. **FLOAT和REAL类型范围差异**:SQL Server的float和real类型在数值范围上与Oracle存在...

    streamsets数据采集常见问题汇总1

    解决方法:使用JDBC Query Consumer组件,并在SQL查询中使用Oracle的TO_CHAR函数来转换数据类型,确保数据能正确导入。 4. **读取Oracle速度慢** 使用场景:从Oracle全量导入大量数据到Hive。 问题描述:导入...

    PLSQL教程.doc

    PL/SQL提供了多种数据类型来满足不同场景的需求: - **NUMBER** - 存储整数或实数,可以定义精度和取值范围。 - **BINARY_INTEGER** - 存储带符号整数,适用于整数计算,性能更优。 - **DEC** - NUMBER类型的子类型...

    Oracle基于系统级触发器的审计功能

    `SYS_CONTEXT`函数用于获取与用户会话相关的信息,包括但不限于客户端操作系统终端名称、用户权限等。常用的参数有: - `TERMINAL`:客户端操作系统终端的名称。 - `LANGUAGE`:NLS_LANG的值。 - `LANG`:ISO字符集...

    ORACLE构架体系.

    根据提供的信息,我们可以深入探讨Oracle数据库中的数据类型及其特点,特别是与标题和描述中提到的字符类型相关的知识点。 ### ORACLE构架体系 在Oracle数据库系统中,数据类型的定义是其核心组成部分之一,它们...

    oracle 基本语法1

    - Oracle支持多种数据类型,如`NUMBER(precision, scale)`用于存储数值,`VARCHAR2(length)`存储变长字符串,`DATE`存储日期和时间,`BINARY_FLOAT`和`BINARY_DOUBLE`用于浮点数,以及`TIMESTAMP`和`INTERVAL`等...

    浅谈ORACLE与SQL SERVER的差异.docx

    在数据类型上,Oracle的LOB类型(BLOB、CLOB、NCLOB)用于存储大对象,它们支持事务处理,而SQL Server的BINARY和VARBINARY以及TEXT和NTEXT类型则用于类似目的,但LOB类型的处理方式略有不同。 Oracle的NCLOB用于...

    oracle系统内置函数大全

    以上是对Oracle系统内置函数大全的知识点介绍,内容涵盖了字符处理、数字计算、日期处理、数据类型转换、分组聚合等多个方面的函数。Oracle数据库管理员和开发人员经常需要用到这些函数以实现各种数据处理需求。

    oracle入门

    本文将为你提供Oracle入门的基础知识,包括Oracle的概述、安装、数据类型、SQL语句、表的操作以及简单的数据库管理。 Oracle数据库系统由美国甲骨文公司开发,它是一个高度可扩展、高性能、高可靠性的数据库解决...

    Oracle数据库经典教程

    Oracle支持多种数据类型,如数值类型(NUMBER、INTEGER、BINARY_INTEGER等)、字符类型(VARCHAR2、CHAR、CLOB)、日期时间类型(DATE、TIMESTAMP)以及二进制数据类型(RAW、BLOB)等。 **创建表和约束** 创建表时...

    Oracle的CLOB大数据字段类型操作方法

    经常会遇到超过VARCHAR2字段类型所能容纳的数据量,此时就需要使用LOB(Large Object)数据类型,特别是对于存储大量字符数据的情况,CLOB(Character Large Object)类型就显得尤为重要。 CLOB是一种专门用于存储...

    ORACLE 超长字符串问题的解决办法

    当试图存储更长的字符串时,我们通常会转向LONG类型,但即使LONG类型理论上可以存储最多2GB的数据,实践中也可能遇到限制。在上述示例中,即使字符串长度未达到2GB,仍然报错。这可能是因为PL/SQL处理LONG类型的内部...

Global site tag (gtag.js) - Google Analytics