Hi,
I get same error. Can you please let me know, if you find a fix for this ?
thanks
Satya
On Wednesday, March 14, 2007 at 6:49:59 AM UTC-5, graham manderson wrote:
>
> I am trying to access my GoogleSpreadsheet account programmatically
> using Java.
> My GoogleSpreadsheet account contains one unpublished spreadsheet and
> one published
> spreadsheet.
>
> I request that the one time token is sent to my Java Servlet and the
> code below attempts
> to deal with it.
>
> String oneTimeToken =
> AuthSubUtil.getTokenFromReply(request.getQueryString());
>
> try
> {
> String sessionToken =
> AuthSubUtil.exchangeForSessionToken(oneTimeToken, null);
>
> SpreadsheetService service = new SpreadsheetService("Google App
> Client");
> service.setAuthSubToken(sessionToken);
>
> SpreadsheetFeed myFeed = service.getFeed(new
> URL("http://spreadsheets.google.com/feeds/
> spreadsheets/private/full"),
> SpreadsheetFeed.class);
>
> AuthSubUtil.revokeToken(sessionToken, null);
> }
> catch(Exception ex)
> {
> String x = ex.getMessage();
> }
>
> When execution reaches "service.getFeed" I get the following error:
>
> HTTP Status 500 -
>
>
> --------------------------------------------------------------------------------
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:
> 300)
>
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:
> 165)
>
>
> root cause
>
> java.lang.ExceptionInInitializerError
> com.google.gdata.client.http.GoogleGDataRequest
> $Factory.getRequest(Unknown Source)
> com.google.gdata.client.Service.createRequest(Unknown Source)
> com.google.gdata.client.GoogleService.createRequest(Unknown Source)
> com.google.gdata.client.Service.createFeedRequest(Unknown Source)
> com.google.gdata.client.Service.getFeed(Unknown Source)
> com.google.gdata.client.GoogleService.getFeed(Unknown Source)
> com.google.gdata.client.Service.getFeed(Unknown Source)
> GoogleAppServlet.processRequest(GoogleAppServlet.java:24)
> GoogleAppServlet.doGet(GoogleAppServlet.java:43)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:
> 249)
> java.security.AccessController.doPrivileged(Native Method)
> javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:
> 282)
>
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:
> 165)
>
> Can anyone shed some light on why this is happening? Every thing seems
> set up correctly.
>
> Thanks in advance,
> Graham.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Spreadsheets API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.