KiteNoNetworkException while trying to get access token

sun04
This is the first time am trying to setup automatic setup and facing following issue, could someone help me on this

UserModel userModel = kiteconnect.requestAccessToken("xxx",
"yyy");

The above call throws following exception with description "Connection error"

com.rainmatter.kitehttp.exceptions.KiteNoNetworkException
at com.rainmatter.kitehttp.KiteRequest.postRequest(KiteRequest.java:49)
at com.rainmatter.kiteconnect.KiteConnect.requestAccessToken(KiteConnect.java:169)
at com.test.trade.Test.main(Test.java:49)

This discussion has been closed.