WARNING: unable to change permissions for everybody:

前端 未结 8 1013
后悔当初
后悔当初 2020-11-28 11:14

When running the Java quickstart sample at https://developers.google.com/drive/web/quickstart/java?hl=hu in NetBeans, I\'m receiving the error code:

Jun 04,         


        
8条回答
  •  眼角桃花
    2020-11-28 11:42

    Had the same issue and wasted hours before realizing that "unable to change permissions for owner: C:\Users\Quibbles.credentials\drive-api-quickstart"
    is just a warning.

    The real issue is the null pointer here.

    InputStream in =
                DriveQuickstart.class.getResourceAsStream("/client_secret.json");
    

    This line was the issue in my case. "in" was null and hence the null pointer.

    InputStream in    = new FileInputStream("\\client_secret.json");  
    

    This resolved my issue.

提交回复
热议问题