Just switched to V3 after long time and renewed subscription. Used official java lib and ran Test script with my keys & token .
I am getting NullpointerException, Accesstoken is null.
Exception in thread "main" java.lang.NullPointerException at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.postRequest(KiteRequestHandler.java:91) at com.zerodhatech.kiteconnect.KiteConnect.generateSession(KiteConnect.java:182) at Test.main(Test.java:45)
Thought this step would do it automatically like the previous version(Rainmatter/kiteconnect) User user = kiteConnect.generateSession("yq6iaar2h77bsb", "zxyvm4k38ffyfmcqo");
Please tell me how to do it (sorry if it is basic).
@Manjunathan, I wouldn't run the sample files as is. If you run it as is then you will end up placing orders. Please go through documentation and understand the capabilities of Kite Connect APIs and then refer to the examples.
If you are already using Kite Connect 2 then the flow remains same as earlier. Can you use the latest jar in the dist directory and make sure you set api_key, user_id, enable debug and paste the complete stack trace here?
Thought this step would do it automatically like the previous version(Rainmatter/kiteconnect)
User user = kiteConnect.generateSession("yq6iaar2h77bsb", "zxyvm4k38ffyfmcqo");
Please tell me how to do it (sorry if it is basic).
I wouldn't run the sample files as is. If you run it as is then you will end up placing orders.
Please go through documentation and understand the capabilities of Kite Connect APIs and then refer to the examples.
I wont execute other APIs. I have been using the old version for 3-4 months , so very familiar.
The problem is - Auth part not working in sample file out-of-box( except putting my tokens and keys).
OR how to get/set accesstoken properly.
Thanks for the responses, please close the ticket.