Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JDBC programe working on windows but failing on linux 1

Status
Not open for further replies.

mhburney

Programmer
Jul 26, 2005
23
PK
Hi,

I cannot run any JDBC programe on my linux machine..the same programmes would run on windows but not on linux :(( is extremely annoying as the error message is not that helping either...it just says this for all the programmes:

-----------------------------------------------
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: java.net.SocketException: Invalid argument or cannot assign requested address
------------------------------------------------

Desperately need help..
Cheers!
 
Maybe you need to change your driver to a Linux one ...

Cheers,
Dian
 
I think there are some kind of drivers that are OS-specific, but this seems not to be the case.

Looks like the problem is conectivity. Are you sure you have the necessaryu ports opened in your linux box to access the database?

Cheers,
Dian

 
My MySQL server is also on a linux machine and it works fine..i have configured this remote host in MySQL to be able to connect remotely i.e using Grant.The MYSQL Client connects fine on the server..but if i use JDBC using the same remote client..i get that error...

 
Not a good thing.

I'd try downloading the lastest driver and cechking compatibility with you distribution.

Are you using fedora core?

Cheers,
Dian
 
yes iam using Fedora core..why did you ask?
 
Brilliant this is just damn brilliant..the solution on first link worked

****Thanks mate!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top