While parsing an iCalendar event I received a ParseException for a multiline property with a list. Specifically I received the following exception using version 1.0.1:
net.fortuna.ical4j.data.ParserException: Error at line 27:Expected [-3], read 
The property value looks like:
If I move the ';' a the end of line 1 to the beginning of line 2 then there is no problem. So, before I go submitting a bug I wanted to see if this was legal format. According to the ABNF in the spec a line can end in a semicolon (0x3B)
VALUE-CHAR = WSP / %x21-7E / NON-US-ASCII
It appears that once a ';' is reached, the parser expects a valid token that is not EOL. Any thoughts?
I wrote a quick test and it seems to parse ok for me. Is it possible that the original file isn't using the correct line terminators (\r\n), as that error seems to be what you will see when only (\n) terminates a line. By editing the file perhaps you have inadvertently replaced the line terminator with (\r\n) resulting in the success.
Perhaps try enabling the relaxed unfolding Compatibility Hint to see if the original file passes. More details here:
First off, yes I'm using relaxed unfolding…should have included that. Secondly, I'm parsing input direct from the mail server and only edited a copy of the original input to see what the problem might be. On closer inspection, I looked at the hex dump and yes, the CR is missing from the input. So, the original input is not inline with the spec (funny since it's a Domino server).
I have several iCal events that I'm using as test cases and this is the only one that has issues and the only one that ends a property line with a semicolon. My guess is that there is a bug in the Domino server code that did not include the carriage return before the line feed. Not exactly your problem to fix but have any suggestions?
How to connect Domino server use with ical4j-connector?
Do you provide a simple example to me?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.