Hi,
After I integrated the BF [ 2849122 ] PO.AfterSave is not rollback on error - add releaseSavepoint method, I couldn't anymore to post documents.
The problem is in method releaseSavepoint(Savepoint savepoint). Apparently , Oracle JDBC driver doesn't support releasing savepoints .
Regards,
Cristina Ghita, www.arhipac.ro
Revision: 10580
http://adempiere.svn.sourceforge.net/adempiere/?rev=10580&view=rev
Author: teo_sarca
Date: 2009-10-12 08:37:01 +0000 (Mon, 12 Oct 2009)
Log Message:
-----------
BF [ 2876927 ] Oracle JDBC driver problema
https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2876927&group_id=176962
Note: As of Oracle Database 10g, releaseSavepoint and
oracleReleaseSavepoint are not supported. If you call either
of the methods, then SQLException is thrown with the message
"Unsupported feature".
-- 4-4 Oracle Database JDBC Developer's Guide and Reference
Modified Paths:
--------------
trunk/base/src/org/compiere/util/Trx.java
Hi Teo,
I think we should treat releaseSavepoint similar to the rollback of transaction where it is reasonably safe to ignore the sqlexception ( maybe just log as warning ).
WDYT ?
Regards,
Low
Teo, I don't like this solution.
The last version of oracle jdbc is 11.2.0.1.0:
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
I think a better solution will be to upgrade the jdbc jar to the latest - and ignore the sqlexception when unsupported (as Heng Sin adviced).
Regards,
Carlos Ruiz
Hi,
Ok, I will do this in next days.
Best regards,
Teo Sarca
I uploaded the changed file. Please review.
Warning - seems like Trx.java is dropping a public method (unused in Adempiere).
Pending tasks -> upgrade oracle jdbc driver
integrate Trx.java here (just the changes on releaseSavePoint)
Regards,
Carlos Ruiz
Committed revision 12536.
upgraded to Oracle Database 11g Release 2 (11.2.0.1.0) JDBC Drivers downloaded from
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_112010.html
ojdbc6.jar (2,111,220 bytes) - Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types.
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2876927
We need to check if the provided Trx.java works better now.
Regards,
Carlos Ruiz
Merged Rev 12536 to /trunk with Revision: 12538
http://adempiere.svn.sourceforge.net/adempiere/?rev=12538&view=rev
Regards,
Tony