Hi,
I'm having a strange problem with establishing a JDBC connection.
I'm using the following code to make the connection:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
System.out.println("About to open connection");
conn = DriverManager.getConnection
("jdbc20:oracle:thin:@192.168.0.xxxx:1521:test","testuser", "testpwd");
When I put this code in a small standalone test application, it works
fine, and this also seems to show that I don't have a connectivity
problem.
However, when I use this same code in a class file that is being used by
another application (I don't have the source for this other app), I am
getting that SQLException.
Can anyone suggest how I might diagnose this problem?
Thanks,
Jim
joeNOSPAM@BEA.com - 10 Jun 2005 21:25 GMT
Check the classpaths involved. Is the same version of the oracle thin
driver being used? Is this on the same machine? Ie: can you open
a socket to port 1521 on 192.168.0.xxxx from the machine(s)?
Joe Weinstein at BEA