youtube analytics api

190 views
Skip to first unread message

u bestt

unread,
Dec 31, 2014, 5:42:33 AM12/31/14
to google-analytics...@googlegroups.com
        Hi,,,    
   I am trying for hours already to access the Analytics API.,,        I worked myself through step by step but unfortunately I couldn't get through. Even though I included ALL libs from google-api-java-client and servelt api,,its shows exception,Throwable: javax/servlet/http/HttpServletRequest,java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest,    at com.google.api.client.extensions.jetty.auth.oauth2.LocalServerReceiver.getRedirectUri(LocalServerReceiver.java:98),    at com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp.authorize(AuthorizationCodeInstalledApp.java:76),    at Auth.authorize(Auth.java:75),    at YouTubeAnalyticsReports.main(YouTubeAnalyticsReports.java:73),Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest,    at java.net.URLClassLoader$1.run(URLClassLoader.java:217),    at java.security.AccessController.doPrivileged(Native Method),    at java.net.URLClassLoader.findClass(URLClassLoader.java:205),    at java.lang.ClassLoader.loadClass(ClassLoader.java:323),    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294),    at java.lang.ClassLoader.loadClass(ClassLoader.java:268),    ... 4 more

Matthew Cohoon

unread,
Jan 2, 2015, 1:13:34 PM1/2/15
to google-analytics...@googlegroups.com
Depending your Java environment you may need to 
Download and include the javax.servlet.jar into your java path.
-Matt

u bestt

unread,
Jan 6, 2015, 4:31:01 AM1/6/15
to google-analytics...@googlegroups.com
could please find the solution? for this

Throwable: null
java.lang.NullPointerException
    at java.io.Reader.<init>(Reader.java:78)
    at java.io.InputStreamReader.<init>(InputStreamReader.java:72)
    at com.java.Auth.authorize(Auth.java:51)
    at com.java.YouTubeAnalyticsReports.main(YouTubeAnalyticsReports.java:72)

u bestt

unread,
Jan 20, 2015, 6:24:17 AM1/20/15
to google-analytics...@googlegroups.com
Hi,,,      could you please reslove the error ? help me...
   I am trying for hours already to access the Analytics API., I worked myself through step by step but unfortunately I couldn't get through. Even though I included ALL libs from google-api-java-client.
Throwable: null
java.lang.NullPointerException
    at com.google.api.client.repackaged.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)
    at com.google.api.client.util.Preconditions.checkNotNull(Preconditions.java:127)
    at com.google.api.client.json.jackson2.JacksonFactory.createJsonParser(JacksonFactory.java:96)
    at com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:85)
    at com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:81)
    at com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:88)
    at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
    at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
    at com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
    at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
    at com.google.api.client.auth.oauth2.Credential.intercept(Credential.java:217)
    at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:859)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
    at com.google.api.services.samples.youtube.cmdline.analytics.YouTubeAnalyticsReports.main(YouTubeAnalyticsReports.java:87)
 
Reply all
Reply to author
Forward
0 new messages