Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application name is not set. Call Builder#setApplicationName. error

Tags:

Application: Connecting to BigQuery using BigQuery APIs for Java Environment: Eclipse, Windows 7

My application was running fine until last night. I've made no changes (except for restarting my computer) and my code is suddenly giving me this error:

Application name is not set. Call Builder#setApplicationName.

Thankfully I had a tar'd version of my workspace from last night. I ran a folder compare and found the local_db.bin file was different. I deleted the existing local_db.bin file and tried to run the program again. And it worked fine!

Any idea why this might have happened?

Hopefully this will help anyone else who stumbles upon this issue.

like image 913
Febian Shah Avatar asked Nov 27 '13 19:11

Febian Shah


1 Answers

Try this to set your application name

Drive service = new Drive.Builder(httpTransport, jsonFactory, null)
                  .setHttpRequestInitializer(credential)
                  .setApplicationName("Your app name")
                  .build();
like image 157
SampathKumar Avatar answered Sep 30 '22 09:09

SampathKumar