java - WARNING: unable to change permissions for everybody: -


when running java quickstart sample @ https://developers.google.com/drive/web/quickstart/java?hl=hu in netbeans, i'm receiving error code:

jun 04, 2015 12:12:11 com.google.api.client.util.store.filedatastorefactory setpermissionstoowneronly warning: unable change permissions everybody: c:\users\quibbles\credentials\drive-api-quickstart 

what doing wrong?

edit: complete error message.

jun 04, 2015 5:11:39 pm com.google.api.client.util.store.filedatastorefactory setpermissionstoowneronly warning: unable change permissions owner: c:\users\quibbles\.credentials\drive-api-quickstart exception in thread "main" java.lang.nullpointerexception     @ java.io.reader.<init>(reader.java:78)     @ java.io.inputstreamreader.<init>(inputstreamreader.java:72)     @ drivequickstart.authorize(drivequickstart.java:64)     @ drivequickstart.getdriveservice(drivequickstart.java:87)     @ drivequickstart.main(drivequickstart.java:96) java result: 1 

had same issue , wasted hours before realizing "unable change permissions owner: c:\users\quibbles.credentials\drive-api-quickstart"
warning.

the real issue null pointer here.

inputstream in =             drivequickstart.class.getresourceasstream("/client_secret.json"); 

this line issue in case. "in" null , hence null pointer.

inputstream in    = new fileinputstream("<full path>\\client_secret.json");   

this resolved issue.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -