| BatchUpdateException: invalid batch command: invalid SELECT batch command 0 [message #546353] |
Mon, 12 July 2010 10:20  |
muralirama Messages: 6 Registered: July 2010 |
Junior Member |
|
|
Hi,
I would like to post a question on Eclipselink. Using Eclipsllink and Oracle weblogic app server we get every now and then (but not always) following error during some object updates by Eclipselink. Could somebody tell if there is any configuration or data issue that could cause this kind of error? Since there is no direct sql query update used and this is not always happening there is nothing suspect on the update query itself. I could see that Eclipselink does batch update when many fields of an object is updated where this error is thrown. Once this error is thrown then no other updates woirk in the application unless the application (app server) is restarted. Could someone please answer this question or direct me to procedure where I could post and get answer?
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.BatchUpdateException: invalid batch command: invalid SELECT batch command 0
Error Code: 17080
Query: UpdateObjectQuery(some.package.dao.toplink.FsrShortFormImpl@5030ba9)
at weblogic.ejb.container.internal.EJBRuntimeUtils.throwTransac tionRolledback(EJBRuntimeUtils.java:200)
at weblogic.ejb.container.internal.EJBRuntimeUtils.throwRemoteE xception(EJBRuntimeUtils.java:93)
at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1 (BaseRemoteObject.java:659)
at weblogic.ejb.container.internal.StatelessRemoteObject.postIn voke1(StatelessRemoteObject.java:60)
at weblogic.ejb.container.internal.BaseRemoteObject.postInvokeT xRetry(BaseRemoteObject.java:441)
at some.package.sf269.Sf269ServiceEJB_ojxlf1_EOImpl.processFSRU pdate(Sf269ServiceEJB_ojxlf1_EOImpl.java:506)
... 36 more
Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.BatchUpdateException: invalid batch command: invalid SELECT batch command 0
Error Code: 17080
Query: UpdateObjectQuery(some.package.dao.toplink.FsrShortFormImpl@5030ba9)
Thanks
- murali
|
|
|
|
|
| Re: BatchUpdateException: invalid batch command: invalid SELECT batch command 0 [message #547143 is a reply to message #546353] |
Thu, 15 July 2010 12:51   |
James Sutherland Messages: 1844 Registered: July 2009 |
Senior Member |
|
|
Batch writing is off by default, so if it is being used, you have configured it somwhere. Check your persistence.xml or SessionCustomizer.
Batch writing should work with Oracle 11g2, are you using the correct JDBC driver version for your database version? Are you using thin or oci?
Please include the full exception stack trace including the caused by, and the log on finest of the transaction. Also include your persistence.xml, or if not using JPA, your sessions.xml or other configuration.
James : Wiki : Book : Blog
|
|
|
|
| Re: BatchUpdateException: invalid batch command: invalid SELECT batch command 0 [message #550831 is a reply to message #547162] |
Wed, 04 August 2010 09:23  |
James Sutherland Messages: 1844 Registered: July 2009 |
Senior Member |
|
|
The error seems to be a database/driver issue.
Without the full stack trace there is little more I can do.
If you are turning batch writing on for just one process, it is odd that you do not turn it back off when that process is done.
Check your SQL and see if the error is a valid error, i.e. the database should have thrown an error for one of the SQL's in the batch.
You could try resetting the JDBC connection or connection pool when the error occurs to attempt to avoid the error reoccurring.
James : Wiki : Book : Blog
|
|
|
Powered by
FUDForum. Page generated in 0.01640 seconds