throw new Error("Error while obtaining database connection");
throw new Error("Error while obtaining database connection", le);
    protected int performValidCommit() {        // in memory everything is ok, but we need to check against the db        PersistenceBroker pb = getOJBBroker();        try {            if (!pb.isInTransaction()) {                pb.beginTransaction();            }            int txNumber = getNumber();            try {                if (TransactionChangeLogs.updateFromTxLogsOnDatabase(pb, txNumber, true) != txNumber) {                    // the cache may have been updated, so perform the                    // tx-validation again                    if (!validateCommit()) {                        throw new jvstm.CommitException();                    }                }            } catch (SQLException sqlex) {                throw new CommitException();            }            txNumber = super.performValidCommit();            // ensure that changes are visible to other TXs before releasing            // lock            pb.commitTransaction();            pb = null;            return txNumber;        } catch (LookupException le) {            throw new Error("Error while obtaining database connection");        } finally {            if (pb != null) {                pb.abortTransaction();            }        }    }