Questions tagged [ical4j]

iCal4j is a Java API that provides support for the iCalendar specification as defined in RFC2445.

iCal4j is a Java API that provides support for the iCalendar specification as defined in RFC2445. This support includes a Parser, Model and Generator for iCalendar data streams. For more information check out the API Documentation.

139 questions
1
vote
1 answer

Why am I getting ValidationException while using ical4j properly?

I've tried to build a calendar with ical4j. When I'm trying to get the output to a file, it's giving me an exception like given below : net.fortuna.ical4j.validate.ValidationException: Property [PRODID] must be specified once. The code :…
1
vote
1 answer

No line separation when sending an iCalendar to web page. Java

I am trying to send an iCalendar to webpage but when I send it there is no line separation and it is not considered as correct iCalendar format. If I send iCalendar format its just JSON format. And if its calendar.toString() there is no line…
cuteBrick
  • 75
  • 2
  • 8
1
vote
1 answer

format support for errors

I'm developing an application that creates company calendar with data recived from other systems (it's a part of bigger J2EE app, for calendar export I'm using ical4j). One of client requirements was to put 'secret token' into calendar sync link in…
1
vote
2 answers

Previously working Calendar Invite has stopped working for outlook email client but working for Gmail client

I am using Sendgrid for sending emails and Ical4j library to create a calendar invite. The below-mentioned code was working fine a few months back and all the calendar invites sent through were also showing up all the required things such as;…
Prasanna
  • 131
  • 1
  • 11
1
vote
1 answer

I can't set properly the dates for an event with iCal4j

I'm generating a bookings calendar with iCal4j for a Spring Boot app, but all dates come with one month more and two days less, than it should. For example: (dd/MM/yyyy) for 22/03/2018 in the iCal I get 20/04/2018. Debugging, I've seen that all…
Aleix Alcover
  • 599
  • 3
  • 11
  • 27
1
vote
1 answer

Is there a typed wrapper for ical4j?

Ical4j seems pretty robust, but the interface is really unintuitive. It gives you untyped iterators that you need to cast to it's internal types, and all the dates are stored in it's own Date implementation, rather than joda. Has anyone written a…
1
vote
0 answers

Recurring events are not expanded from Yahoo with caldav4j

I have one problem with loading expanded events from Yahoo using caldav4j. I have one recurring event that occurs every Monday starting from 1.11.2017 to 30.12.2017. I'm creating query for that range and using this for…
Djordje Ivanovic
  • 4,151
  • 4
  • 27
  • 49
1
vote
1 answer

Ical4j. RFC5545. Calculate event occurrences, duration hack

I check ical4j library. At time I need calculate event occurrences. Useful example to calculate is here. I try to shift start date and end date. In original start date is 20101113 - 2010 November, Saturday (it maps on pattern see BYDAY=...SA). I…
Sergii
  • 7,044
  • 14
  • 58
  • 116
1
vote
1 answer

How to create recurring event .ics file using ical4j in java?

This is the sample code for creating .ics file using java for normal event. Calendar calendar = new Calendar(); calendar.getProperties().add(new ProdId("-//Ben Fortuna//iCal4j 1.0//EN")); …
Tushar Saxena
  • 345
  • 4
  • 15
1
vote
1 answer

calendar clients ignoring FREEBUSY property in ical4j generated .ics file

I am using ical4j to generate the following ics file BEGIN:VCALENDAR VERSION:2.0 PRODID:-//iOffice//iCal4j 1.0//EN CALSCALE:GREGORIAN BEGIN:VEVENT DTSTAMP:20170116T180054Z DTSTART:20170116T190000Z DTEND:20170116T200000Z SUMMARY:03-300C…
Mark
  • 3,137
  • 4
  • 39
  • 76
1
vote
1 answer

Java - iCal4j - set X-ALT-DESC;FMTTYPE=text/html

Is there a way to set this X-ALT-DESC;FMTTYPE=text/html using iCal4j? I need to set HTML content on the description of some events.
leonardo
  • 121
  • 1
  • 5
1
vote
1 answer

What the difference between iCal4j/biweekly and google-rfc-2445?

Right now I'm using google-rfc-2445 library to evaluate recurring events, and generate actual dates, for example to know when will occur event defined by following RRULE: RRULE:FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-1 I'm using biweekly library…
Anatoly
  • 5,056
  • 9
  • 62
  • 136
1
vote
1 answer

Error parsing Google icals using ical4j library

The system I am working on has been using the ical4j library to sync our user's google calendars with our built in calendar for a while now and was working fine until a couple weeks ago when their calendars stopped synching. A quick look into the…
alexolivas
  • 63
  • 1
  • 6
1
vote
1 answer

Java ical4j cannot get categories

Any ical4j experts out there who can help me? I need to get the categories for an .ics file using getCategories() but it isn't recognized because the jar files do not have that method yet, but all the code is there to retrieve it I just need to add…
Taylor Courtney
  • 813
  • 1
  • 6
  • 23
1
vote
0 answers

I am working on ical4j and there is a parsing error when building a calendar. There is no illegal character in the .ics file.How to overcome it?

This is the code i am using for building an .ics file using CalendarBuilder class of ical4j. Earlier i was using FileInputStream instead of buffer but there was a "PushBackBuffer Overflow" error.I used an alternative method to increase the size of…