My Oracle Support Banner

NoSuchMethodError & NoClassDefFoundError When Using Classes from poi jar for Working on Workbooks (Doc ID 3062093.1)

Last updated on DECEMBER 09, 2024

Applies to:

Oracle Communications Unified Inventory Management - Version 7.5.1.0.0 and later
Information in this document applies to any platform.

Symptoms

A Custom Web Service packaged in a custom archive working on creating excel sheets / workbook using org.apache.poi classes fails with multiple errors like below:

Exception 1: java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.byteArray
Exception 2: java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setUseDefaultNamespace
Exception 3:
java.lang.NoClassDefFoundError: Could not initialize class org.apache.xmlbeans.impl.common.XBeanDebug



Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.