Hi all,
I'm new in Calendar and GData. I'm getting the following error when I
try to create the CalendarService and I don't know the cause:
com.google.gwt.user.client.rpc.InvocationException: The call failed on
the server; see server log for details
at
cat.i2cat.argia.clients.reservation.webapp.client.services.CreateReservationService_Proxy
$1.onCompletionImpl(transient source for
cat.i2cat.argia.clients.reservation.webapp.client.services.CreateReservationService_Proxy:
62)
at
cat.i2cat.argia.clients.reservation.webapp.client.services.CreateReservationService_Proxy
$1.onCompletionAndCatch(transient source for
cat.i2cat.argia.clients.reservation.webapp.client.services.CreateReservationService_Proxy:
46)
at
cat.i2cat.argia.clients.reservation.webapp.client.services.CreateReservationService_Proxy
$1.onCompletion(transient source for
cat.i2cat.argia.clients.reservation.webapp.client.services.CreateReservationService_Proxy:
40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
(IDispatchImpl.java:126)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
(IDispatchProxy.java:150)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
(IDispatchImpl.java:293)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:196)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6
(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:689)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:550)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:321)
I'm using GWT in java, and I'm executing my application in hosted
mode, and I don't know where to look for the server (see server log
for details...)
My code is the following one:
class CreateReservationServiceImpl.java:
[...]
CalendarAdministration cal = new CalendarAdministration();
cal.GetAgenda();
[...]
class CalendarAdministration.java:
public class CalendarAdministration
{
static CalendarService myService = null;
public CalendarAdministration ()
{}
public static void GetAgenda() {
myService = new CalendarService("example1.0");
try {
myService.setUserCredentials("[email protected]",
"argia2009");
} catch (AuthenticationException e) {
e.printStackTrace();
}
URL feedUrl = null;
try {
feedUrl = new URL("http://www.google.com/calendar/feeds/
default/allcalendars/full");
} catch (MalformedURLException e) {
e.printStackTrace();
}
CalendarFeed resultFeed = null;
try {
resultFeed = myService.getFeed(feedUrl,
CalendarFeed.class);
} catch (IOException e) {
e.printStackTrace();
} catch (ServiceException e) {
e.printStackTrace();
}
System.out.println("Your calendars:");
System.out.println();
for (int i = 0; i < resultFeed.getEntries().size(); i++) {
CalendarEntry entry = resultFeed.getEntries().get(i);
System.out.println("\t" + entry.getTitle().getPlainText());
}
}
Can you help me please?
Thank you in advance! :)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---