Issue
After applying AEM 6.2 SP1 CFP9 update (Or later), Full Text indexing on MS Office document will start with NoClassDefFoundError exceptions. The following classes have been reported as affected by this behavior:
- java.lang.NoClassDefFoundError: org/apache/poi/hslf/usermodel/HSLFSlideShow
- java.lang.NoClassDefFoundError: org/apache/poi/hslf/HSLFSlideShow
- java.lang.NoClassDefFoundError: org/apache/jempbox/xmp/XMPMetadata
Environment
AEM 6.2 SP1 CFP9 or later
Cause
AEM 6.2 SP1 CFP9 updates Granite POI from version 2.0.6 to 2.0.22. The issue occurs because the class path changed in the new version of the bundle.
Resolution
To resolve this issue, please upload the classloader from:
classloader = org.apache.poi.hslf.HSLFSlideShow.class.getClassLoader(); // com.adobe.granite::com.adobe.granite.poi::2.0.6
To:
classloader = org.apache.poi.hslf.usermodel.HSLFSlideShow.class.getClassLoader(); // com.adobe.granite::com.adobe.granite.poi::2.0.22
(Apply the same for Jempbox)