Package org.apache.openjpa.lib.log

Examples of org.apache.openjpa.lib.log.Log.error()


           
            try {
                log.trace("verify annuity with rider");
                verifyAnnuityValues(myEMF, annuity, annuityType);
            } catch (Exception e) {
                log.error("failed to verify create annuity successfuly.", e);
                throw e;
            }      
           
            if (log.isTraceEnabled())
                log.trace("upating annuity");
View Full Code Here


                log.trace("upating annuity");
            try {
                log.trace("create annuity with payout");
                annuity = createAnnuityPayout(myEMF, annuity);
            } catch (Exception e) {
                log.error("failed to create annuity successfuly.", e);
                throw e;
            }
           
            try {
                verifyAnnuityValues(myEMF, annuity, annuityType);
View Full Code Here

            }
           
            try {
                verifyAnnuityValues(myEMF, annuity, annuityType);
            } catch (Exception e) {
                log.error("failed to verify create annuity successfuly.", e);
                throw e;
            }      
           
            if (log.isTraceEnabled())
                log.trace("upating annuity");
View Full Code Here

                    annuity.setAnnuityHolderId(annuityHolder.getId());
                    annuity = em.merge(annuity);
                em.getTransaction().commit();
                closeEM(em);
            } catch (Exception e) {
                log.error("failed to update annuity successfuly.", e);
                throw e;
            }
           
            try {
                verifyAnnuityValues(myEMF, annuity, annuityType);
View Full Code Here

            }
           
            try {
                verifyAnnuityValues(myEMF, annuity, annuityType);
            } catch (Exception e) {
                log.error("failed to verify annuity update successfuly.", e);
                throw e;
            }
        } finally {
            log.error("scenario: failed.");
        }
View Full Code Here

            } catch (Exception e) {
                log.error("failed to verify annuity update successfuly.", e);
                throw e;
            }
        } finally {
            log.error("scenario: failed.");
        }
       
        if (log.isTraceEnabled())
            log.trace("scenario: completed.");
    }
View Full Code Here

                        if (log.isWarnEnabled())
                            log.warn(warning);
                        break;
                    case WARN_LOG_ERROR:
                        if (log.isErrorEnabled())
                            log.error(warning);
                        break;
                    case WARN_THROW:
                        // just throw it as if it were a SQLException
                        throw warning;
                    case WARN_HANDLE:
View Full Code Here

                if (log.isWarnEnabled())
                    log.warn(_loc.get(msg, oid, vmd, owner));
                break;
            case Log.ERROR:
                if (log.isErrorEnabled())
                    log.error(_loc.get(msg, oid, vmd, owner));
                break;
            case Log.FATAL:
                if (log.isFatalEnabled())
                    log.fatal(_loc.get(msg, oid, vmd, owner));
                break;
View Full Code Here

                        if (fatal)
                            throw re;
                        Log log = (conf == null) ? null : conf
                                .getConfigurationLog();
                        if (log != null && log.isErrorEnabled())
                            log.error(_loc
                                    .get("plugin-creation-exception", val), re);
                        return null;
                    }
                }
            }
View Full Code Here

                ("obj-create", cls).getMessage(), e);
            if (fatal)
                throw re;
            Log log = (conf == null) ? null : conf.getConfigurationLog();
            if (log != null && log.isErrorEnabled())
                log.error(_loc.get("plugin-creation-exception", val), re);
            return null;
        }
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.