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)
Please refer this thread https://kite.trade/forum/discussion/1679/how-can-i-use-kitesdk-in-spring-application-to-trade-with-zerodha#latest for answer.