Currently, I am also working on DrEdit code and I have been through the error as no such method for line - return GoogleClientSecrets.load(JSON_FACTORY, stream);
I corrected the code by adding one line before this statement as - InputStream stream = getServletContext().getResourceAsStream(CLIENT_SECRETS_FILE_PATH); InputStreamReader reader = new InputStreamReader(stream); //I have added this line. try { return GoogleClientSecrets.load(JSON_FACTORY, reader); //initially it was stream. I changed it to reader.
This solves my no such method problem. I am not sure about the NPE that you are getting. Hope this small correction, also resolves your problem.
Warm Regards, Avani