Menu

#2173 Oracle JDBC driver problema

Core
open-remind
Technical (124)
3
2010-04-16
2009-10-12
No

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

Discussion

  • Cristina Ghita

    Cristina Ghita - 2009-10-12
    • assigned_to: nobody --> teo_sarca
     
  • Teo Sarca

    Teo Sarca - 2009-10-12
    • status: open --> pending-fixed
     
  • Teo Sarca

    Teo Sarca - 2009-10-12

    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

     
  • Heng Sin

    Heng Sin - 2009-10-12

    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

     
  • Carlos Ruiz

    Carlos Ruiz - 2009-10-12

    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

     
  • Carlos Ruiz

    Carlos Ruiz - 2009-10-12
    • status: pending-fixed --> open-fixed
     
  • Teo Sarca

    Teo Sarca - 2009-10-13
    • status: open-fixed --> open-remind
     
  • Teo Sarca

    Teo Sarca - 2009-10-13

    Hi,

    Ok, I will do this in next days.

    Best regards,
    Teo Sarca

     
  • Teo Sarca

    Teo Sarca - 2009-10-23

    I uploaded the changed file. Please review.

     
  • Teo Sarca

    Teo Sarca - 2009-10-23
     
  • Carlos Ruiz

    Carlos Ruiz - 2010-04-16

    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

     
  • Carlos Ruiz

    Carlos Ruiz - 2010-04-16
    • priority: 5 --> 3
    • milestone: --> Core
     

Log in to post a comment.