Hi
I am trying to get connection then this exception happens. But not always. The way I built the datasource is
public static DataSource getBearPRODDataSource() throws SQLException {
OracleDataSource dataSourceBearProd;
dataSourceBearProd = new OracleDataSource();
HashMap<String, String> map = ApplicationPropertyHolder.getBearPRODDBParams();
dataSourceBearProd.setURL(map.get("url"));
dataSourceBearProd.setUser(map.get("user"));
dataSourceBearProd.setPassword(map.get("password"));
return dataSourceBearProd;
}
The way I am getting connection is
private static Connection getBearProdConnection() throws SQLException {
if (dataSourceBearProd != null)
{
return dataSourceBearProd.getConnection();
}
else
return null;
}
url is of form : jdbc:oracle:thin:@db3.superpages.com:1521:we72c
I only got this error but error is not repeating. Any idea why this suddenly happened.
thanks
Meena