Home Database Mysql Tutorial ORA-01461:仅能绑定要插入LONG列的LONG值

ORA-01461:仅能绑定要插入LONG列的LONG值

Jun 07, 2016 pm 04:22 PM
long insert

19:52:35,156 WARN JDBCExceptionReporter:100 - SQL Error: 1461, SQLState: 72000 19:52:35,156 ERROR JDBCExceptionReporter:101 - ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值 19:52:35,156 WARN JDBCExceptionReporter:100 - SQL Error: 1461, SQLSta

19:52:35,156  WARN JDBCExceptionReporter:100 - SQL Error: 1461, SQLState: 72000

19:52:35,156 ERROR JDBCExceptionReporter:101 - ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值

 

19:52:35,156  WARN JDBCExceptionReporter:100 - SQL Error: 1461, SQLState: 72000

19:52:35,156 ERROR JDBCExceptionReporter:101 - ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值

 

19:52:35,156 ERROR AbstractFlushingEventListener:324 - Could not synchronize database state with session

org.hibernate.QueryTimeoutException: Could not execute JDBC batch update

 at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:124)

 at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)

 at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)

 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:262)

 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:178)

 at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)

 at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)

 at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)

 at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:375)

 at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)

 at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:6

56)

 at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformT

ra

nsactionManager.java:754)

 at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransact

ionManager.java:723)

 at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(Transa

cti

onAspectSupport.java:393)

 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)

 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

 at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)

 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

 at $Proxy45.queryObjectOut(Unknown Source)

 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.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)

 at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)

 at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:178)

 at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:68)

 at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)

 at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

 at java.util.concurrent.FutureTask.run(FutureTask.java:138)

 at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

 at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:107)

 at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)

 at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

 at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)

 at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)

 at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)

 at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)

 at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:167)

 at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)

 at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)

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

 at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)

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

 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:102)

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

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

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

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

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

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

Caused by: java.sql.BatchUpdateException: ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值

 

 at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343)

 at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10656)

 at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723)

 at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)

 at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)

 ... 55 more

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Using the MINUS operator in SQL Using the MINUS operator in SQL Feb 18, 2024 pm 04:53 PM

Usage of MINUS in SQL and specific code examples In SQL, MINUS is an operator used to perform a difference operation between two result sets. It is used to delete the same rows from the first result set as in the second result set. The result set returned by the MINUS operator will contain rows that exist only in the first result set. The following uses specific code examples to demonstrate the usage of MINUS: Assume there are two tables - "table1" and "table2", their structures are as follows: Table name: table1 field

How to query long type in oracle How to query long type in oracle Jun 12, 2023 pm 05:05 PM

How to query long type in oracle: 1. TO_LOB function, use "SELECT TO_LOB()" syntax to convert the LONG type column in the table to CLOB type and return it as the query result; 2. SUBSTR function, use "SELECT SUBSTR() )" will return the 250 characters starting from the 100th character in the LONG type column in the table, which are returned as VARCHAR type.

Can we insert null value in Java list? Can we insert null value in Java list? Aug 20, 2023 pm 07:01 PM

SolutionYes,Wecaninsertnullvaluestoalisteasilyusingitsadd()method.IncaseofListimplementationdoesnotsupportnullthenitwillthrowNullPointerException.Syntaxbooleanadd(Ee) Appends the specified element to the end of this list. Type parameter E − The runtime type of the element. Parameter e − element to be appended to this list

How to determine whether two Long objects are equal in Java? How to determine whether two Long objects are equal in Java? Apr 20, 2023 pm 09:10 PM

Throws a question: Longa=4l;Longb=4l;a==b//trueLonga=128l;Longb=128l;a==b//false If the value of Long is between [-127,128], use "==" There is no problem in judging whether they are equal. If they are not in this range, "==" cannot be used. The reason is explained in the source code as follows: publicstaticLongvalueOf(longl){finalintoffset=128;if(l>=-128&&l

What is the assignment method of java long type data? What is the assignment method of java long type data? Apr 28, 2023 pm 03:52 PM

Assignment problem of javalong type data When the program has a large value (exceeding the int type: -2^31 to 2^31-1), the type needs to be changed to the Long type. longl=1507772738542;Longl1=(long)1507772738542;The above writing method will report an error during compilation, which probably means that the data is too long and exceeds the value of type int. Solve Longl=1507772738542L; you can add L or l after the data. A strange problem occurs when assigning null to long. The reason for the problem is that I obtain a Long type data from an object and assign it to a long variable.

How to insert graphics and text of China map into wps document How to insert graphics and text of China map into wps document Mar 27, 2024 pm 02:01 PM

1. Open the wps software and enter the wps text operation interface. 2. Find the insert option in this interface. 3. Click the Insert option and find the Shape option in its editing area. 4. Click the shape option and find the recommended option in its sub-menu. 5. Find the China map option in the recommended options. 6. Click on the China map option and drag it with the left mouse button in the editing input area to get the China map we need.

How many bytes does long occupy? How many bytes does long occupy? Feb 01, 2023 am 11:49 AM

long occupies 4 bytes; long represents a kind of long integer data, which is a basic data type in programming languages. It is the abbreviation of "long int". The default is signed long integer type, containing 4 bytes. The value range is "-2^31 ~ (2^31 -1)".

How to implement a statement to insert multiple rows of data in MySQL? How to implement a statement to insert multiple rows of data in MySQL? Nov 08, 2023 pm 09:54 PM

How to implement a statement to insert multiple rows of data in MySQL? In MySQL, sometimes we need to insert multiple rows of data into the table at one time. In this case, we can use the INSERTINTO statement to achieve this. The following will introduce how to use the INSERTINTO statement to insert multiple rows of data, and give specific code examples. Suppose we have a table named students, which contains id, name, and age fields. Now we want to insert multiple pieces of student information at once. We can follow the following steps to achieve this:

See all articles