[Cosmo] Exception When PUTting Event,
Slowness when PUTing recurring event
Bobby Rullo
br at osafoundation.org
Tue Dec 20 19:38:57 PST 2005
Hi all,
I encountered a couple of funny things recently with a recent Cosmo
build (revision 1020 - trunk as of yesterday afternoon).
The first thing I tried was PUTting (with cadaver) a small (4k)
icalendar file I created with iCal into a collection that I created
with MKCALENDAR. It almost immediatly returned an out of memory
exception. I thought it was strange since it was only a 4k file, but
I decided to try again with a larger (512megs) heap. This time it
took a much longer time - like 5 minutes and from top it seemed that
it was using all of the heap.
BCM and I suspected that it could have something to do with with
expanding out recurring events, so I decided to test that by
separating out my events into separate files. This time however I got
an Exception:
> java.lang.StringIndexOutOfBoundsException: String index out of
> range: -1
> at java.lang.String.substring(String.java:1768)
> at
> org.osaf.cosmo.jackrabbit.query.TextCalendarTextFilter.doFilter
> (Unknown Source)
> at
> org.apache.jackrabbit.core.query.lucene.NodeIndexer.addBinaryValue
> (NodeIndexer.java:288)
I thought maybe it had something to do with garbage in my repo, so I
tried again with a fresh repo, and got the exact same thing.
The icalendar file that caused the problems follows. Maybe there is
something weird with my file, but the Exception is still probably not
what you want happening.
The resource does get PUT though, I'm just worried that all the
indexing that needs to happen is not happening because of this.
bobby
BEGIN:VCALENDAR
VERSION:2.0pen Source Applications Foundation//NONSGML Scooby Server//EN
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:America/New_York
LAST-MODIFIED:20051220T211408Z
BEGIN:STANDARD
DTSTART:20051030T060000
TZOFFSETTO:-0500
TZOFFSETFROM:+0000
TZNAME:EST
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20060402T010000
TZOFFSETTO:-0400
TZOFFSETFROM:-0500
TZNAME:EDT
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/New_York:20060101T170000
SUMMARY:Daily_NY_5pm
UID:DE916949-731D-4DAE-BA93-48A38B2B2030
SEQUENCE:4
DTSTAMP:20051220T211043Z
RRULE:FREQ=DAILY;INTERVAL=1
DURATION:PT1H
END:VEVENT
END:VCALENDAR
More information about the Cosmo
mailing list