Google DrEdit example for Java won't work

0 views
Skip to first unread message

Dhanu MS via StackOverflow

unread,
Mar 5, 2015, 2:28:42 AM3/5/15
to google-appengin...@googlegroups.com

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



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/19145738/google-dredit-example-for-java-wont-work/28872228#28872228
Reply all
Reply to author
Forward
0 new messages