url recorder

i am working on url recorder program, when i am running that program it shows some exception in the end. i have tried but not getting any idea how to remove it.
exceptions it is showing ,
com.cdac.qaf.service.QAFEnvironmentException: Communications link failure due to underlying exception:

java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:208)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:271)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2771)
at com.mysql.jdbc.Connection.<init>(Connection.java:1555)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at com.cdac.qaf.db.QAFDatabase.getConnection(QAFDatabase.java:119)
at com.cdac.qaf.db.DBOperations.<clinit>(DBOperations.java:35)
at com.cdac.qaf.util.snif.TCPAgent.urlExist(TCPAgent.java:409)
at com.cdac.qaf.util.snif.TCPAgent.setRequest(TCPAgent.java:375)
at com.cdac.qaf.util.snif.TCPAgent.log(TCPAgent.java:353)
at com.cdac.qaf.util.snif.TCPAgent.run(TCPAgent.java:129)
at java.lang.Thread.run(Thread.java:619)