Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / June 2005

Tip: Looking for answers? Try searching our database.

java.sql.SQLException: Io exception: The Network Adapter could not  establish the connection

Thread view: 
ohaya - 10 Jun 2005 20:02 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.