• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MySQL 4.1 [java.net.ConnectException: Connection refused]

 
Jawad Bokhari
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am receiving following error message when trying to connect my database under mysql 4.1.

java.net.ConnectException: Connection refused

** BEGIN NESTED EXCEPTION **

java.net.ConnectException
MESSAGE: Connection refused

STACKTRACE:

java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:124)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:225)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1779)
at com.mysql.jdbc.Connection.<init>(Connection.java:450)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at com.javaexchange.dbConnectionBroker.DbConnectionBroker.lThtlf(Unknown Source)
at com.javaexchange.dbConnectionBroker.DbConnectionBroker.lthtlf(Unknown Source)
at com.javaexchange.dbConnectionBroker.DbConnectionBroker.<init>(Unknown Source)
at advcomm.advrad.DBParams.<init>(Unknown Source)
at advcomm.advrad.FileParser.Ltht(Unknown Source)
at advcomm.advrad.FileParser.ltht(Unknown Source)
at advcomm.advrad.FileParser.<init>(Unknown Source)
at advcomm.advrad.RadiusServer.parse(Unknown Source)
at advcomm.advrad.RadiusServer.main(Unknown Source)


Appreciate your kind help!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic