Closed GoogleCodeExporter closed 9 years ago
Which java version are you using?
Original comment by robipo...@gmail.com
on 17 Apr 2009 at 11:44
Caldav4j requires Java 1.6
Original comment by robipo...@gmail.com
on 17 Apr 2009 at 12:21
Helo
I hav the same problem : addEvent works fine but this instruction :
Calendar pippo = cdm.getCalendarForEventUID( ((HttpClient
cdm.client),nve.getUid().getValue() );
i have an exception :
Exception in thread "main" org.osaf.caldav4j.CalDAV4JException: Problem executing
method
at
org.osaf.caldav4j.CalDAVCalendarCollection.getCalDAVResourceForEventUID(CalDAVCa
lendarCollection.java:642)
at
org.osaf.caldav4j.CalDAVCalendarCollection.getCalendarForEventUID(CalDAVCalendar
Collection.java:123)
at com.nqi.test.test3.main(test3.java:82)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at org.osaf.caldav4j.util.XMLUtils.toPrettyXML(XMLUtils.java:96)
at
org.osaf.caldav4j.methods.CalDAVReportMethod.generateRequestBody(CalDAVReportMet
hod.java:133)
at
org.apache.webdav.lib.methods.XMLResponseMethodBase.getRequestContentLength(XMLR
esponseMethodBase.java:226)
at
org.apache.webdav.lib.methods.XMLResponseMethodBase.writeRequestBody(XMLResponse
MethodBase.java:291)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:21
14)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDire
ctor.java:398)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirecto
r.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.osaf.caldav4j.methods.HttpClient.executeMethod(HttpClient.java:103)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at
org.osaf.caldav4j.CalDAVCalendarCollection.getCalDAVResourceForEventUID(CalDAVCa
lendarCollection.java:640)
... 2 more
Caused by: java.lang.NullPointerException
at
org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:687)
at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer
.java:1239)
at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer
.java:1307)
at
org.apache.xml.serialize.BaseMarkupSerializer.serialize(BaseMarkupSerializer.jav
a:501)
at org.osaf.caldav4j.util.XMLUtils.toPrettyXML(XMLUtils.java:94)
... 13 more
Java Result: 1
I use Java 1.6 i don't now why he does'nt works , i use xercesImpl.jar . Maybe
the
problem com from this jar file. Help me !!!
Original comment by as.lan...@gmail.com
on 17 Jul 2009 at 1:47
Hi,
I'm also facing the same problem. Add event works fine, but as instruction :
Calendar pippo = cdm.getCalendarForEventUID( ((HttpClient
cdm.client),nve.getUid().getValue() );
execute it throws:
Exception in thread "main"
org.osaf.caldav4j.exceptions.ResourceNotFoundException: Could not find resource
for the UID 'my_id'
at
org.osaf.caldav4j.CalDAVCalendarCollection.getPathToResourceForEventId(CalDAVCal
endarCollection.java:587)
at CalDavCollectionManager.main(CalDavCollectionManager.java:398)
Please help me out from this problem.
Also if i tried to retrieved calendar using getResponseBodyAsString() it works
fine but as i changed it to getReaponseBodyAsCalendar() it again throwing
exception saying
Content type expected text/calendar. Was text/html....
Now what i can do to solve this????????
Original comment by 77testte...@gmail.com
on 15 Sep 2011 at 7:52
Original issue reported on code.google.com by
izena...@gmail.com
on 17 Apr 2009 at 11:28