|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
eclipselink.jdbc.batch-writingWhen I add the <property name="eclipselink.jdbc.batch-writing"
value="Oracle-JDBC" /> to my persistence.xml I get the following error when the transaction tries to commit: javax.persistence.RollbackException: Transaction rolled back because transaction was set to RollbackOnly. Can anyone tell me why this exception is thrown? thanks, Leon _______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: eclipselink.jdbc.batch-writingThis normally occurs when some error occurred previously. Check that you did not catch an exception earlier. You can also enable logging in EclipseLink, and all exceptions that occur within EclipseLink should be logged.
What application server are you using? Ensure that you are using the Oracle9Platform and Oracle JDBC driver.
James Sutherland EclipseLink, TopLink Wiki: EclipseLink, TopLink Forums: TopLink, EclipseLink Book: Java Persistence |
|
|
Re: eclipselink.jdbc.batch-writingHi James,
I use this: <property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.oracle.Oracle10Platform" /> with the oracle 10g XE database and its jdbc drivers. I already enabled logging, but see no other error. I use tomcat, maybe that is the problem? Leon James Sutherland wrote: > This normally occurs when some error occurred previously. Check that you did > not catch an exception earlier. You can also enable logging in EclipseLink, > and all exceptions that occur within EclipseLink should be logged. > > What application server are you using? > > Ensure that you are using the Oracle9Platform and Oracle JDBC driver. > > > Leon Derks-2 wrote: > >> When I add the <property name="eclipselink.jdbc.batch-writing" >> value="Oracle-JDBC" /> to my persistence.xml >> >> I get the following error when the transaction tries to commit: >> >> javax.persistence.RollbackException: Transaction rolled back because >> transaction was set to RollbackOnly. >> >> Can anyone tell me why this exception is thrown? >> >> thanks, >> Leon >> >> > > > ----- > --- > http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland > http://www.eclipse.org/eclipselink/ > EclipseLink , http://www.oracle.com/technology/products/ias/toplink/ > TopLink > Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink , > http://wiki.oracle.com/page/TopLink TopLink > Forums: http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , > http://www.nabble.com/EclipseLink-f26430.html EclipseLink > Book: http://en.wikibooks.org/wiki/Java_Persistence Java Persistence > _______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: eclipselink.jdbc.batch-writingCould you include the full stack trace to the exception.
It is very odd for this error to be occurring without any other error being logged. Are you using JTA?
James Sutherland EclipseLink, TopLink Wiki: EclipseLink, TopLink Forums: TopLink, EclipseLink Book: Java Persistence |
| Free embeddable forum powered by Nabble | Forum Help |