calendar-home-set attribute not found

Help
varun
2012-03-26
2013-06-05
  • varun
    varun
    2012-03-26

    I am trying to retrieve the Calendar collections from an Oracle stbeehive server.
    I am able to connect to the store, but when i try to perform store.getCollections, I get the following error :

    No calendar-home-set attribute found for the user
    net.fortuna.ical4j.connector.ObjectNotFoundException: No calendar-home-set attribute found for the user
    at net.fortuna.ical4j.connector.dav.CalDavCalendarStore.getCollections(CalDavCalendarStore.java:272)
    at testCodes.retrieveCalendarFromServer.main(retrieveCalendarFromServer.java:29)

    Do i need to set the calendar-home-set property manually?
    Is this an issue with the way the PathResolver has been defined by me for Oracle stbeehive ? I have created the following PathResolver for it :

    public String getPrincipalPath(String username) {
    return  "/st/home/"+ username +"/calendars/MyCalendar";
    }

    public String getUserPath(String username) {
    return " /st/home/""+ username +""/calendars/MyCalendar";

    As this is the location where I define all my calendars.

    Thanks