Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.sql.SQLException: invalid arguments in call

843859Sep 16 2008 — edited Jan 20 2015
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 14 2008
Added on Sep 16 2008
0 comments
240 views