hi
 please help me...
 while fetching the calenadar events, i had to get the values of title
and content of event. I have no problem with getting the value of
title but for content i am getting ClassCastException

"Exception in thread "main" java.lang.ClassCastException:
com.google.gdata.data.OutOfLineContent cannot be cast to
com.google.gdata.data.TextContent"

Please help. what should i do?
MY code :


myEntry.setTitle(new PlainTextConstruct(" My Title "));
myEntry.setContent(new PlainTextConstruct(" My Content"));

EventEntry insertedEntry = myService.insert(postUrl, myEntry);
System.out.println(entry.getTitle().getPlainText());
System.out.println(((TextContent)entry.getContent()).getContent
().getPlainText());

........................................................................................................................
output is :

My Title
Exception in thread "main" java.lang.ClassCastException:
com.google.gdata.data.OutOfLineContent cannot be cast to
com.google.gdata.data.TextContent



Thanks 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to