deyanTG / caldav4j

Automatically exported from code.google.com/p/caldav4j
0 stars 0 forks source link

Invalid Parameters With ICAL #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
With ical client, i add an event and invite some people to the event .
When I get the events via CalDav4j, i've got an exception for an event in
particular :

Caused by: java.lang.IllegalArgumentException: Invalid parameter name:
SCHEDULE-STATUS
    at
net.fortuna.ical4j.model.ParameterFactoryImpl.createParameter(ParameterFactoryIm
pl.java:642)
    at net.fortuna.ical4j.data.CalendarBuilder.parameter(CalendarBuilder.java:241)
    at
net.fortuna.ical4j.data.CalendarParserImpl.parseParameter(CalendarParserImpl.jav
a:290)

If i delete the event i get the others events without problems.

To reproduce the problem
1. create an event via ical-client (use ICAL Server from Mac)
2. invite somebody to this event
3. call the caldav server and get events

Is it a problem or write i bad query ?
I'm using the generate query : 
GenerateQuery generator = new GenerateQuery();
            generator.setFilter(Component.VEVENT);
            generator.setTimeRange(startDate,endDate);
            List<Calendar> result = cdm.getComponentByQuery(cdm.getClient(),
Component.VEVENT, generator.generateQuery());

Original issue reported on code.google.com by jimmy.ve...@gmail.com on 7 May 2010 at 10:32

GoogleCodeExporter commented 8 years ago
Here is the complete exception :

Exception in thread "main" org.osaf.caldav4j.CalDAV4JException: Malformed 
calendar
resource returned.
    at
org.osaf.caldav4j.CalDAVCalendarCollection.getCalDAVResourceFromServer(CalDAVCal
endarCollection.java:733)
    at
org.osaf.caldav4j.CalDAVCalendarCollection.getCalDAVResource(CalDAVCalendarColle
ction.java:696)
    at
org.osaf.caldav4j.CalDAVCalendarCollection.getComponentByQuery(CalDAVCalendarCol
lection.java:1093)
    at
org.osaf.caldav4j.CalDAVCalendarCollection.getEventResources(CalDAVCalendarColle
ction.java:166)
    at
com.inovelan.gwt.dcr.calendar.server.caldavClient.CalDavCollectionManager.getEve
ntResources(CalDavCollectionManager.java:113)
    at com.inovelan.gwt.dcr.calendar.server.caldavClient.Main.getEvents(Main.java:94)
    at com.inovelan.gwt.dcr.calendar.server.caldavClient.Main.main(Main.java:76)
Caused by: net.fortuna.ical4j.data.ParserException: Error at line 161: Invalid
parameter name: SCHEDULE-STATUS
    at net.fortuna.ical4j.data.CalendarParserImpl.parse(CalendarParserImpl.java:139)
    at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:167)
    at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:149)
    at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:137)
    at org.osaf.caldav4j.methods.GetMethod.getResponseBodyAsCalendar(GetMethod.java:62)
    at
org.osaf.caldav4j.CalDAVCalendarCollection.getCalDAVResourceFromServer(CalDAVCal
endarCollection.java:731)
    ... 6 more
Caused by: java.lang.IllegalArgumentException: Invalid parameter name: 
SCHEDULE-STATUS
    at
net.fortuna.ical4j.model.ParameterFactoryImpl.createParameter(ParameterFactoryIm
pl.java:642)
    at net.fortuna.ical4j.data.CalendarBuilder.parameter(CalendarBuilder.java:241)
    at
net.fortuna.ical4j.data.CalendarParserImpl.parseParameter(CalendarParserImpl.jav
a:290)
    at
net.fortuna.ical4j.data.CalendarParserImpl.parseParameterList(CalendarParserImpl
.java:252)
    at net.fortuna.ical4j.data.CalendarParserImpl.parseProperty(CalendarParserImpl.java:195)
    at
net.fortuna.ical4j.data.CalendarParserImpl.parsePropertyList(CalendarParserImpl.
java:167)
    at
net.fortuna.ical4j.data.CalendarParserImpl.parseComponent(CalendarParserImpl.jav
a:334)
    at
net.fortuna.ical4j.data.CalendarParserImpl.parsePropertyList(CalendarParserImpl.
java:164)
    at net.fortuna.ical4j.data.CalendarParserImpl.parse(CalendarParserImpl.java:107)
    ... 11 more

Original comment by jimmy.ve...@gmail.com on 7 May 2010 at 10:44

GoogleCodeExporter commented 8 years ago
it seems an issue in the underlying library ical4j...
anyway you can provide a sample ics in list.

Caused by: java.lang.IllegalArgumentException: Invalid parameter name: SCHEDULE-
STATUS
    at
net.fortuna.ical4j.model.ParameterFactoryImpl.createParameter(ParameterFactoryIm
pl.ja
va:642)
    at 
net.fortuna.ical4j.data.CalendarBuilder.parameter(CalendarBuilder.java:241)

Original comment by robipo...@gmail.com on 24 May 2010 at 12:40