Hi,
never used Java but looking over the guide i notice:
CalendarEventFeed resultFeed = myService.query(myQuery, Feed.class);
not CalendarEventFeed.class
and also incase you haven't just left this out of your post
myService.setUserCredentials("[email protected]", "mypassword");
needs adding just before that
If thats not fixed it i don't know any java to help more!
Bim
On Apr 8, 5:58 am, 준상장 <[email protected]> wrote:
> Hello .
>
> I developed some application using google calendar api.
>
> please help me out. I can't find what is wrong.
>
> Currently, I am trying to following the examples provided in Calendar Data
> API Version2.0 Java
> Guide.http://code.google.com/intl/ko-KR/apis/calendar/data/2.0/developers_g...
>
> I would like to get some event feed. so I call the method(ex getFeed or
> query method).
>
> when I call these method. it's
> occured ParserConfigurationException.(catched service exception)
>
> I can't figure out these happens why. because when I test in my-pc(not
> android application, just run virtual machine), it has any problem. not
> ocuured exception.
>
> The method is doing proper.
>
> what's the problem..?
>
> Anyone does solve this problem...?
>
> Here's my code..
>
> Login is ok.
>
> //build
> eventFeedUrl = new URL(METAFEED_URL_BASE + calendar+
> EVENT_FEED_URL_SUFFIX);
>
> //build query
> CalendarQuery myQuery = new CalendarQuery(eventFeedUrl);
> myQuery.setMinimumStartTime(startTime);
> myQuery.setMaximumStartTime(endTime);
>
> //send query
> CalendarEventFeed resultFeed = myService.query(myQuery,
> CalendarEventFeed.class);
>
> catch (ServiceException e)
> {
> // TODO Auto-generated catch block
> e.printStackTrace();
>
> }
>
> //Log-cat
> 04-08 02:35:26.202: WARN/XmlParser(308):
> javax.xml.parsers.ParserConfigurationException:
> org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
--
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://code.google.com/apis/calendar/community/forum.html