Jun 02, 2018 8:46:47 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [dispatcher] in context with path [/tradtool] threw exception [Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: okio.BufferedSource.rangeEquals(JLokio/ByteString;)Z] with root cause java.lang.NoSuchMethodError: okio.BufferedSource.rangeEquals(JLokio/ByteString;)Z at okhttp3.internal.Util.bomAwareCharset(Util.java:431) at okhttp3.ResponseBody.string(ResponseBody.java:174) at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.postRequest(KiteRequestHandler.java:84) at com.zerodhatech.kiteconnect.KiteConnect.generateSession(KiteConnect.java:180)
================================================================================== we are using below maven dependency
please solve my problem.
still getting error
{
"status": "error",
"message": "Token is invalid or has expired.",
"data": null,
"error_type": "TokenException"
}
Check out this thread, you shouldn't set request token for every run.