Skip to content

Crash when importing ics file exported from calendar-import-export #94

@red-black-bonsai

Description

@red-black-bonsai

To migrate the local calendar from phone A to phone B, I created an export with CIE on phone A, copied the ics to phone B and tried importing. CIE, version 2.7, just closes/crashes.

Installing CIE version 2.6 from F-Droid store (after first uninstalling version 2.7) on phone B alleviates the problem. With it, I can import fine (even a file generated by 2.7 on phone A) :)

Potentially relevant log from import on phone B:

03-24 18:49:14.269 22905 22934 E AndroidRuntime: FATAL EXCEPTION: Thread-3
03-24 18:49:14.269 22905 22934 E AndroidRuntime: Process: org.sufficientlysecure.ical, PID: 22905
03-24 18:49:14.269 22905 22934 E AndroidRuntime: java.lang.ExceptionInInitializerError
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at net.fortuna.ical4j.util.Configurator.getProperty(Unknown Source:0)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at net.fortuna.ical4j.util.CompatibilityHints.<clinit>(Unknown Source:9)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at net.fortuna.ical4j.util.CompatibilityHints.setHintEnabled(Unknown Source:0)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at org.sufficientlysecure.ical.ui.MainActivity$LoadFile.setHint(Unknown Source:0)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at org.sufficientlysecure.ical.ui.MainActivity$LoadFile.run(Unknown Source:12)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at org.sufficientlysecure.ical.ui.dialogs.RunnableWithProgress$1.run(Unknown Source:2)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:923)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException: Didn't find class "org.apache.commons.logging.impl.LogFactoryImpl" on path: DexPathList[[zip file "/data/app/~~F1kOHNBP-ITQYlfyjUJwlQ==/org.sufficientlysecure.ical-voKQx_iG8O0BI950MvAZ8w==/base.apk"],nativeLibraryDirectories=[/data/app/~~F1kOHNBP-ITQYlfyjUJwlQ==/org.sufficientlysecure.ical-voKQx_iG8O0BI950MvAZ8w==/lib/arm64, /system/lib64, /system_ext/lib64]] (Caused by java.lang.ClassNotFoundException: Didn't find class "org.apache.commons.logging.impl.LogFactoryImpl" on path: DexPathList[[zip file "/data/app/~~F1kOHNBP-ITQYlfyjUJwlQ==/org.sufficientlysecure.ical-voKQx_iG8O0BI950MvAZ8w==/base.apk"],nativeLibraryDirectories=[/data/app/~~F1kOHNBP-ITQYlfyjUJwlQ==/org.sufficientlysecure.ical-voKQx_iG8O0BI950MvAZ8w==/lib/arm64, /system/lib64, /system_ext/lib64]])
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at org.apache.commons.logging.LogFactory.createFactory(Unknown Source:459)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at org.apache.commons.logging.LogFactory$2.run(Unknown Source:4)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at java.security.AccessController.doPrivileged(AccessController.java:43)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at org.apache.commons.logging.LogFactory.newFactory(Unknown Source:5)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at org.apache.commons.logging.LogFactory.getFactory(Unknown Source:487)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at org.apache.commons.logging.LogFactory.getLog(Unknown Source:0)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at net.fortuna.ical4j.util.Configurator.<clinit>(Unknown Source:20)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	... 7 more
03-24 18:49:14.269 22905 22934 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.commons.logging.impl.LogFactoryImpl" on path: DexPathList[[zip file "/data/app/~~F1kOHNBP-ITQYlfyjUJwlQ==/org.sufficientlysecure.ical-voKQx_iG8O0BI950MvAZ8w==/base.apk"],nativeLibraryDirectories=[/data/app/~~F1kOHNBP-ITQYlfyjUJwlQ==/org.sufficientlysecure.ical-voKQx_iG8O0BI950MvAZ8w==/lib/arm64, /system/lib64, /system_ext/lib64]]
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	at org.apache.commons.logging.LogFactory.createFactory(Unknown Source:5)
03-24 18:49:14.269 22905 22934 E AndroidRuntime: 	... 13 more
03-24 18:49:14.276  1391 10670 W ActivityTaskManager:   Force finishing activity org.sufficientlysecure.ical/.ui.MainActivity

If I disable permissive export on phone A, I also get this error in phone A's log:

03-24 18:39:33.328  8934 20369 I ICS_SaveCalendar: END:VEVENT
03-24 18:39:33.339  8934 20369 E ICS_RunnableWithProgress: An exception occurred
03-24 18:39:33.339  8934 20369 E ICS_RunnableWithProgress: net.fortuna.ical4j.model.ValidationException: Property [ORGANIZER] must be specified once
03-24 18:39:33.339  8934 20369 E ICS_RunnableWithProgress: 	at net.fortuna.ical4j.util.PropertyValidator.assertOne()
03-24 18:39:33.339  8934 20369 E ICS_RunnableWithProgress: 	at net.fortuna.ical4j.model.component.VEvent$PublishValidator.validate()
03-24 18:39:33.339  8934 20369 E ICS_RunnableWithProgress: 	at net.fortuna.ical4j.model.component.CalendarComponent.validate()
03-24 18:39:33.339  8934 20369 E ICS_RunnableWithProgress: 	at net.fortuna.ical4j.model.Calendar.validate()
03-24 18:39:33.339  8934 20369 E ICS_RunnableWithProgress: 	at net.fortuna.ical4j.model.Calendar.validate()
03-24 18:39:33.339  8934 20369 E ICS_RunnableWithProgress: 	at net.fortuna.ical4j.data.CalendarOutputter.output()
03-24 18:39:33.339  8934 20369 E ICS_RunnableWithProgress: 	at net.fortuna.ical4j.data.CalendarOutputter.output()
03-24 18:39:33.339  8934 20369 E ICS_RunnableWithProgress: 	at org.sufficientlysecure.ical.SaveCalendar.run()
03-24 18:39:33.339  8934 20369 E ICS_RunnableWithProgress: 	at org.sufficientlysecure.ical.ui.dialogs.RunnableWithProgress$1.run()
03-24 18:39:33.339  8934 20369 E ICS_RunnableWithProgress: 	at java.lang.Thread.run(Thread.java:761)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions