Tika parser is failing after applying AEM 6.2 SP1 CFP9 (Or later)

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)

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online