[Cosmo-dev] MKCALENDAR on hibernate branch

Bobby Rullo br at osafoundation.org
Fri Sep 8 16:59:36 PDT 2006


Hi, I'm having trouble doing a MKCALENDAR on the hibernate build. I  
make the same request on Cosmo trunk and it's all good. I'm not even  
sure if MKCALENDAR is supposed to be working or not, but if so:


Here's the request body:

<?xml version="1.0" encoding="utf-8" ?>
    <C:mkcalendar xmlns:D="DAV:"
                  xmlns:C="urn:ietf:params:xml:ns:caldav">
      <D:set>
        <D:prop>
          <D:displayname>Test Events</D:displayname>
          <C:calendar-description xml:lang="en"
    >Calendar restricted to events.</C:calendar-description>
          <C:supported-calendar-component-set>
            <C:comp name="VEVENT"/>
          </C:supported-calendar-component-set>
          <C:calendar-timezone><![CDATA[BEGIN:VCALENDAR
PRODID:-//Example Corp.//CalDAV Client//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:US-Eastern
LAST-MODIFIED:19870101T000000Z
BEGIN:STANDARD
DTSTART:19671029T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
TZNAME:Eastern Standard Time (US & Canada)
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:19870405T020000
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
TZNAME:Eastern Daylight Time (US & Canada)
END:DAYLIGHT
END:VTIMEZONE
END:VCALENDAR
]]></C:calendar-timezone>
</D:prop>
</D:set>
</C:mkcalendar>

Here's the Exception:
2006-09-08 16:55:56,168 ERROR [[dav]] Servlet.service() for servlet  
dav threw exception
org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureExcept 
ion: No row with the given identifier exists:  
[org.osaf.cosmo.model.ContentItem#-1]; nested exception is  
org.hibernate.UnresolvableObjectException: No row with the given  
identifier exists: [org.osaf.cosmo.model.ContentItem#-1]
org.hibernate.UnresolvableObjectException: No row with the given  
identifier exists: [org.osaf.cosmo.model.ContentItem#-1]
         at org.hibernate.UnresolvableObjectException.throwIfNull 
(UnresolvableObjectException.java:42)
         at  
org.hibernate.event.def.DefaultRefreshEventListener.onRefresh 
(DefaultRefreshEventListener.java:126)
         at  
org.hibernate.event.def.DefaultRefreshEventListener.onRefresh 
(DefaultRefreshEventListener.java:39)
         at org.hibernate.impl.SessionImpl.fireRefresh 
(SessionImpl.java:886)
         at org.hibernate.impl.SessionImpl.refresh(SessionImpl.java:870)
         at org.osaf.cosmo.dao.hibernate.ItemDaoImpl.removeItem 
(ItemDaoImpl.java:103)
         at org.osaf.cosmo.dao.hibernate.ContentDaoImpl.removeContent 
(ContentDaoImpl.java:283)
         at  
org.osaf.cosmo.service.impl.StandardContentService.removeContent 
(StandardContentService.java:224)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/cosmo-dev/attachments/20060908/b2b8a495/attachment-0001.htm


More information about the cosmo-dev mailing list