This is related to the problem i have: unathorized: I would really
like to know if release of 1.0.9.6 or the Google Server update had
something to do with this cause I would really like to get this
fixed...
I have put the printed out the exception and I get: unauthorized!!!!
Exception/UpdateEvent/GoogleBE.java:
com.google.gdata.util.AuthenticationException: Unauthorized
com.google.gdata.util.AuthenticationException: Unauthorized
at
com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(Unknown
Source)
at
com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(Unknown
Source)
at
com.google.gdata.client.http.HttpGDataRequest.checkResponse(Unknown
Source)
at
com.google.gdata.client.http.HttpGDataRequest.execute(Unknown
Source)
at
com.google.gdata.client.http.GoogleGDataRequest.execute(Unknown
Source)
at com.google.gdata.client.Service.getFeed(Unknown Source)
at com.google.gdata.client.GoogleService.getFeed(Unknown
Source)
at com.google.gdata.client.Service.query(Unknown Source)
at com.google.gdata.client.Service.query(Unknown Source)
at Calendar.GoogleBE.getEvents(GoogleBE.java:80)
at Calendar.GoogleBE.addToVector(GoogleBE.java:93)
at Calendar.GoogleBE.removeEvent(GoogleBE.java:190)
at Calendar.GoogleBE.updateEvent(GoogleBE.java:226)
at Calendar.GoogleWeb.AddEvent(GoogleWeb.java:143)
at
org.apache.jsp.src.insertlocation_jsp._jspService(insertlocation_jsp.java:
116)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
803)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
384)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
320)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
228)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
104)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
216)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:
445)
at java.lang.Thread.run(Unknown Source)
however the jsp calls a class:
<jsp:useBean id="cal" class="Calendar.GoogleWeb"/>
answer = cal.AddEvent(frame2, loc);
and in AddEvent I have:
GoogleBE google = new GoogleBE(user, password);
CalendarBE calendar = google;.......
ArrayList test = calendar.updateEvent(type, newtype);
The GoogleBE looks like
public GoogleBE(String username, String password) throws
Exception
{
try{
calendarService = new CalendarService("stonybrook-
RavenCalendar-1");
calendarService.setUserCredentials(username,
password);
privateFeedUrl = new URL(CALENDAR_FEEDS_URL + "/
default/private/full");
System.out.println("Logged in!!!!!!!");
}
catch(Exception e){
System.out.println("Exception in Login: "+e);
e.printStackTrace();
}
}
updateEvent looks like
CalendarQuery myQuery = new CalendarQuery(privateFeedUrl);
myQuery.setMinimumStartTime(info.getStartDate());
myQuery.setMaximumStartTime(info.getEndDate());
CalendarEventFeed resultFeed =
calendarService.query(myQuery, CalendarEventFeed.class);
return resultFeed;
and this is where I get the error in the query....in the
calendarService.query????
Please anyone help!!!!!
Weird thing works on http://localhost:8080 but not on
http://nlp.homeip.net:29750
is there any ports that are not allowed to connect to Google
Calendar....this was just working last week but not this week???
On Apr 23, 10:56 pm, "Lane LiaBraaten (Google)"
- Hide quoted text -
- Show quoted text -
On Apr 26, 9:58 am, Kulvinder Singh <[EMAIL PROTECTED]> wrote:
> So what could be the possible reason then ?
>
> Frank Mantek <[EMAIL PROTECTED]> wrote: It can't really be related to a
> binary release that you are not using. I just tried the 1.0.9.6 build and ran
> the unittests against the calendar, and for me at least, everything is
> working fine. So it does not seem to be a generic problem.
>
> Frank Mantek
> Google
>
> On 4/26/07, Kulvinder Singh <[EMAIL PROTECTED]> wrote: Hi,
>
> I am trying to get an authenticated feed from my Google Calendar using the
> C# .NET Google Calendar APi version 1.0.9.4 but i am getting this error :
>
> Execution of request failed:
>
> http://www.google.com/calendar/feeds/<my email>/private/full?m
> ax-results=2147483647&start-min=2007-04-23T04:00:00Z&start-max=2007-04-3
> 0T04:00:00Z
>
> The remote server returned an error: (401) Unauthorized.
>
> When i looked into the Google Server Error, it was :
>
> <HTML>
> <HEAD>
> <TITLE>Authorization required</TITLE>
> </HEAD>
> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1>Authorization required</H1>
> <H2>Error 401</H2> </BODY> </HTML>
>
> I am 1000% sure that may Username and Password are correct. Also, i can go
> to Google Calendar and i am able to login using the same credentials. A few
> days back same code was working perfectly. Its this something related with
> the release of 1.0.9.6 or the Google Server update. I dont think that i
> should get affected by all this.
>
> I need an explanation on this IMMEDIATELY.
>
> Kulvinder Singh
>
> ---------------------------------
> Ahhh...imagining that irresistible "new car" smell?
> Check out new cars at Yahoo! Autos.
>
> ---------------------------------
> Ahhh...imagining that irresistible "new car" smell?
> Check outnew cars at Yahoo! Autos.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---