"java.lang.ClassCastException" when adding an xlsx format spreadsheet decision table in Business Central/Decision Central

Solution Unverified - Updated -

Issue

  • When I try to import an existing .xlsx format spreadsheet via Add asset - Decision Table (Spreadsheet) buttons in project page in business-central/decision-central, the operation fails with below error in server.log:

    2020-07-31 20:50:55,792 ERROR [io.undertow.request] (default task-6017) UT005023: Exception handling request to /decision-central/org.kie.bc.KIEWebapp/dtablexls/file: org.guvnor.common.services.shared.exceptions.GenericPortableException: Fail to save: an error occurs while saving the package : class org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream cannot be cast to class java.util.zip.ZipFile$ZipFileInputStream (org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream is in unnamed module of loader 'deployment.decision-central.war' @16ddb796; java.util.zip.ZipFile$ZipFileInputStream is in module java.base of loader 'bootstrap')
    ...
    Caused by: org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail to save: an error occurs while saving the package : class org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream cannot be cast to class java.util.zip.ZipFile$ZipFileInputStream (org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream is in unnamed module of loader 'deployment.decision-central.war' @16ddb796; java.util.zip.ZipFile$ZipFileInputStream is in module java.base of loader 'bootstrap')
            at deployment.decision-central.war//org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:595)
    ...
    Caused by: java.lang.ClassCastException: class org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream cannot be cast to class java.util.zip.ZipFile$ZipFileInputStream (org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream is in unnamed module of loader 'deployment.decision-central.war' @16ddb796; java.util.zip.ZipFile$ZipFileInputStream is in module java.base of loader 'bootstrap')
            at java.base/java.util.zip.ZipFile$ZipFileInflaterInputStream.available(ZipFile.java:480)
    

Environment

  • Red Hat Process Automation Manager (RHPAM)
    • 7
  • Red Hat Decision Manager
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content