Package org.springframework.dao

Examples of org.springframework.dao.DataAccessResourceFailureException


    }
    catch (PersistenceBrokerException ex) {
      throw convertOjbAccessException(ex);
    }
    catch (LookupException ex) {
      throw new DataAccessResourceFailureException("Could not retrieve resource", ex);
    }
    catch (SQLException ex) {
      throw convertJdbcAccessException(ex);
    }
    catch (RuntimeException ex) {
View Full Code Here


                    }
                    return null;
                }
            });
        } catch (MetaDataAccessException e) {
            throw new DataAccessResourceFailureException("Error retreiving metadata", e);
        }
        newPo.setPersistentFields(newMetaData);
        return newPo;
    }
View Full Code Here

  public static JbpmSession getSession(JbpmSessionFactory sessionFactory) {
    try {
      return doGetSession(sessionFactory, true);
    }
    catch (RuntimeException e) {
      throw new DataAccessResourceFailureException("Could not open jBPM Session", e);
    }
  }
View Full Code Here

      }

      return pb;
    }
    catch (OJBRuntimeException ex) {
      throw new DataAccessResourceFailureException("Could not open OJB PersistenceBroker", ex);
    }
  }
View Full Code Here

    }
    catch (NotSupportedException ex) {
      throw new CciOperationNotSupportedException("CCI operation not supported by connector", ex);
    }
    catch (ResourceException ex) {
      throw new DataAccessResourceFailureException("CCI operation failed", ex);
    }
    catch (SQLException ex) {
      throw new InvalidResultSetAccessException("Parsing of CCI ResultSet failed", ex);
    }
    finally {
View Full Code Here

      try {
        EntityManager em = createEntityManager();
        TransactionSynchronizationManager.bindResource(getEntityManagerFactory(), new EntityManagerHolder(em));
      }
      catch (PersistenceException ex) {
        throw new DataAccessResourceFailureException("Could not create JPA EntityManager", ex);
      }
    }
  }
View Full Code Here

                EntityManager em = createEntityManager();
                TransactionSynchronizationManager.bindResource(
                        getEntityManagerFactory(), new EntityManagerHolder(em));
            }
            catch (PersistenceException ex) {
                throw new DataAccessResourceFailureException("Could not create JPA EntityManager", ex);
            }
        }
    }
View Full Code Here

                maxConnections = current;
            }
            return c;
        }
        catch (SQLException e) {
            throw new DataAccessResourceFailureException(
                    "RDBMServices sql error trying to get connection to " + dbName, e);
        }
    }
View Full Code Here

        LOG.error("Error during database initialization. ", e);
        /*
         * We must throw a RuntimeException here to avoid starting the portal
         * with incorrect assumptions about what the database supports.
         */
        throw new DataAccessResourceFailureException("Error during database initialization. ",e);
      }finally{
        this.releaseConnection(conn);
      }
    }
View Full Code Here

            try {
                EntityManager em = emf.createEntityManager();
                TransactionSynchronizationManager.bindResource(emf, new EntityManagerHolder(em));
            }
            catch (PersistenceException ex) {
                throw new DataAccessResourceFailureException("Could not create JPA EntityManager", ex);
            }
        }

        try {
            runnable.run();
View Full Code Here

TOP

Related Classes of org.springframework.dao.DataAccessResourceFailureException

Copyright © 2018 www.massapicom. 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.