File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

vinoth Robert
Ranch Hand
Posts: 31
Firefox Browser MS IE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good noon...

i am using mysql database in my java application.
i've connected mysql stored and retrieved from database using my java program.

now my problem is i need to run a long process. that means 5 functions that is needed to run one by one (each function connects database do some work).
while doing this i am getting this exception

Unable to connect to Communications link failure due to underlying exception:

MESSAGE: Address already in use: connect

STACKTRACE: Address already in use: connect
at com.mysql.jdbc.StandardSocketFactory.connect(
at com.mysql.jdbc.MysqlIO.<init>(
at com.mysql.jdbc.Connection.createNewIO(
at com.mysql.jdbc.Connection.<init>(
at com.mysql.jdbc.NonRegisteringDriver.connect(
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at mrf_general.DBConnection.getConnect(
at mrf_general.DataBase.update_SAPlog(
at importSAP.ScheduleMyJob.updateStockInTransit(
at mrf_general.ScheduleMRF.RunSchedule(
at Schedule.MrfSuserSchedule$1.startSchedule(
at Schedule.MrfSuserSchedule$
at Schedule.Scheduler$
at java.util.TimerThread.mainLoop(Unknown Source)
at Source)


I could not find why this exception occurs.

any one help me.....
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic