`

Most JDBC drivers require that the JdbcType must be specified for all nullable p

阅读更多

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: Error setting null parameter.  Most JDBC drivers require that the JdbcType must be specified for all nullable parameters. Cause: java.sql.SQLException: 无效的列类型
; uncategorized SQLException for SQL []; SQL state [null]; error code [17004]; 无效的列类型; nested exception is java.sql.SQLException: 无效的列类型
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:886)
	org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:790)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

在向oracle插入数据时,mybatis3报Error setting null parameter. Most JDBC drivers require that the JdbcType must be specified for all nullable parameters,是由于参数出现了null值,对于Mybatis,如果进行操作的时候,没有指定jdbcType类型的参数,mybatis默认jdbcType.OTHER导致,给参数加上jdbcType可解决(注意大小写)

http://code.google.com/p/mybatis/issues/detail?id=224&q=Error%20setting%20null%20parameter&colspec=ID

  1. <insert id="insertAccountError" statementType="PREPARED"  
  2.     parameterType="AccountError">  
  3.     INSERT INTO t_acctreg_accounterror(createdate,acctno, errorinfo)  
  4.     VALUES(#{createdate,jdbcType=DATE},#{acctno,jdbcType=VARCHAR},#{errorinfo,jdbcType=VARCHAR})  
  5. </insert>
分享到:
评论

相关推荐

    a project model for the FreeBSD Project.7z

    This is synonymous with deliverable, that is defined as “any measurable, tangible, verifiable outcome, result or item that must be produced to complete a project or part of a project. Often used ...

    微软内部资料-SQL性能优化5

    Normally, only the columns in the WHERE clause are helpful in determining useful indexes, but for a covering index, all columns must be included. If all columns needed for the query are in the index,...

    数位板压力测试

    In this document, the words "tablet" and "digitizer" are used interchange¬ably to mean all absolute point¬ing or digitizing devices that can be made to work with this interface. The definition is ...

    uhdd.sys源码

    The small UHDD and UDVD2 drivers are also available for those who want only non caching drivers or a smaller size driver set for use on &quot;boot&quot; diskettes etc UHDD can cache 26 SATA IDE ...

    计算机网络第六版答案

    Hence, it becomes possible for the attacker to issue a command to all the nodes, that target a single node (for example, all nodes in the botnet might be commanded by the attacker to send a TCP SYN ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    The definition of an inline function needs to be in a header file, so that the compiler has the definition available for inlining at the call sites. However, implementation code properly belongs in ....

    Multi-Core Cache Hierarchies

    the accessing core, and the most important data must be identified for retention. Finally, difficulties in scaling existing technologies require adapting to and exploiting new technology constraints. ...

    windows update logic

    For instance, printer drivers often require specific functionalities that might not be applicable to other types of devices. As a result, the logic used to offer printer drivers can differ from that ...

    LCTF软件备份VariSpec™ Liquid Crystal Tunable Filters

    although they can be called in an asynchronous mode where the function returns as soon as all commands have been sent to the VariSpec, without waiting for them to run to completion. Another option ...

    微软内部资料-SQL性能优化2

     Identify at least five counters for each subsystem that are key to understanding the performance of that subsystem.  Identify three common myths associated with the memory, I/O, or CPU subsystems...

    0 Reference Answer for Assignments.pptx

    Testing is done at different stages, including unit testing, integration testing, and system testing, to verify that the software meets the specified requirements and performs as expected.Experience:...

    OMG 本体定义元模型 V1.1 英文版

    For a given implementation to claim ODM compliance, it must be Compliant, as defined in 2, above, with one of these three packages. There are several compliance options available to vendors for the ...

    All New Electronics Self Teaching Guide (Self-Teaching Guides) by Harry Kybett

    The components are not specified and the author basically just suggests that you try to implement what is shown in a circuit diagram rather the providing the details (as he did in the other ...

    Java邮件开发Fundamentals of the JavaMail API

    All versions of the JavaMail API require the JavaBeans Activation Framework. The framework adds support for typing arbitrary blocks of data and handling it accordingly. This doesn't sound like much,...

    BURNINTEST--硬件检测工具

    number of Network Addresses specified in Preferences-&gt;Network will be the number of NICs tested. This will error faulty NICs that are not detected by the BurnInTest auto NIC detection mechanism. ...

    acpi控制笔记本风扇转速

    Fixed the Load ASL operator for the case where the source operand is a region field. A buffer object is also allowed as the source operand. BZ 480 Fixed a problem where the Load ASL operator allowed ...

    rfc全部文档离线下载rfc1-rfc8505

    One of the inherent problems in the network is the fact that all responses from a remote HOST will require on the order of a half-second or so, no matter how simple. For teletype use, we could ...

    NIST SP800-54.pdf

    Most of the risk to BGP comes from accidental failures, but there is also a significant risk that attackers could disable parts or all of network, disrupting communications, commerce, and possibly ...

    蓝屏查看,主要用于查找蓝屏错误

    the crash, and find all drivers/modules that might be involved in the crash. * BlueScreenView also allows you to work with another instance of Windows, simply by choosing the right minidump folder ...

    win 3.11 for workgroup tcpip支持

    containing the LMHOSTS file must be in the Null Sessions list on the Server by adding the share name to the following Windows NT Registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services \...

Global site tag (gtag.js) - Google Analytics