Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle plus-cmdline-sample
    primarykey
    data
    text
    <p>I try to access my Google+ Account in Order to get my Data. Now, I found the sample but it does not work properly...</p> <p>See <a href="http://code.google.com/p/google-api-java-client/source/browse/plus-cmdline-sample/src/main/java/com/google/api/services/samples/plus/cmdline/PlusSample.java?repo=samples" rel="nofollow">here</a>: </p> <p>My problem is in line 70! </p> <p>If I try to run this program following Exception is thrown</p> <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest at com.google.api.client.extensions.jetty.auth.oauth2.LocalServerReceiver.getRedirectUri(LocalServerReceiver.java:97) at com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp.authorize(AuthorizationCodeInstalledApp.java:71) at com.google.api.services.samples.plus.cmdline.PlusSample.authorize(PlusSample.java:70) at com.google.api.services.samples.plus.cmdline.PlusSample.main(PlusSample.java:77) Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 4 more </code></pre> <hr> <p>Now i tried the google-plus-java-starter project.</p> <p>I registered on the console, got my client_id and client_secret and my API-key but now an exception is thrown.</p> <pre><code>Attempting to open a web browser to start the OAuth2 flow Once you authorize please enter the code here: [entered myCode here] ============== Get my Google+ profile ============== Okt 15, 2012 2:00:06 PM Sample getProfile Schwerwiegend: { "error": { "errors": [ { "domain": "usageLimits", "reason": "dailyLimitExceededUnreg", "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.", "extendedHelp": "https://code.google.com/apis/console" } ], "code": 403, "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup." } } Exception in thread "main" java.io.IOException: Stream closed at java.util.zip.GZIPInputStream.ensureOpen(Unknown Source) at java.util.zip.GZIPInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at com.google.api.client.http.HttpResponse.parseAsString(HttpResponse.java:464) at Sample.main(Sample.java:45) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload