COMMIT or ROLLBACK TRANSACTION statement is missing.

From: Filip Balas (fbala..mail.com)
Date: Mon Sep 19 2005 - 19:46:41 EDT

  • Next message: Jerome Chan: "Re: Help with recursive relationship"

    The following statements:
        DisciplineLead_RelationshipConnected aDL_Connected =
    (DisciplineLead_RelationshipConnected)
    getDataContext().createAndRegisterNewObject(DisciplineLead_RelationshipConnected.class);
        
        aDL_Connected.setDiscipline(aDL_context, getDiscipline());
        aDL_Connected.setUser(aDL_context, getUser());
        getDataContext().commitChanges() ;

    Produce the following cayenne exception:
    Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK
    TRANSACTION statement is missing. Previous count = 0, current count =
    1.

    I do not perform any commits prior to executing this.
    How is this possible?

    Filip



    This archive was generated by hypermail 2.0.0 : Mon Sep 19 2005 - 19:46:44 EDT