List of usage examples for java.lang.reflect UndeclaredThrowableException getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:it.cnr.icar.eric.server.persistence.rdb.SQLPersistenceManagerImpl.java
private void createConnectionPool() { try {//from ww w .ja va 2 s . c om RegistryProperties registryProperties = RegistryProperties.getInstance(); String initialSize = registryProperties.getProperty("eric.persistence.rdb.pool.initialSize"); int initConns = 1; if (initialSize != null) { initConns = Integer.parseInt(initialSize); } String maxSize = registryProperties.getProperty("eric.persistence.rdb.pool.maxSize"); int maxConns = 1; if (maxSize != null) { maxConns = Integer.parseInt(maxSize); } String connectionTimeOut = registryProperties .getProperty("eric.persistence.rdb.pool.connectionTimeOut"); int timeOut = 0; if (connectionTimeOut != null) { timeOut = Integer.parseInt(connectionTimeOut); } connectionPool = new ConnectionPool("ConnectionPool", databaseURL, user, password, maxConns, initConns, timeOut, transactionIsolation); } catch (java.lang.reflect.UndeclaredThrowableException t) { log.error(ServerResourceBundle.getInstance().getString("message.FailedToCreateConnectionPool", new Object[] { t.getClass().getName(), t.getMessage() }), t); throw t; } }
From source file:org.freebxml.omar.server.persistence.rdb.SQLPersistenceManagerImpl.java
private void createConnectionPool() { try {/*from www.ja v a2 s . com*/ RegistryProperties registryProperties = RegistryProperties.getInstance(); String initialSize = registryProperties.getProperty("omar.persistence.rdb.pool.initialSize"); int initConns = 1; if (initialSize != null) { initConns = Integer.parseInt(initialSize); } String maxSize = registryProperties.getProperty("omar.persistence.rdb.pool.maxSize"); int maxConns = 1; if (maxSize != null) { maxConns = Integer.parseInt(maxSize); } String connectionTimeOut = registryProperties .getProperty("omar.persistence.rdb.pool.connectionTimeOut"); int timeOut = 0; if (connectionTimeOut != null) { timeOut = Integer.parseInt(connectionTimeOut); } connectionPool = new ConnectionPool("ConnectionPool", databaseURL, user, password, maxConns, initConns, timeOut, transactionIsolation); } catch (java.lang.reflect.UndeclaredThrowableException t) { log.error(ServerResourceBundle.getInstance().getString("message.FailedToCreateConnectionPool", new Object[] { t.getClass().getName(), t.getMessage() }), t); throw t; } }