java.lang.NoClassDefFoundError occurs while exporting WebStudio Decision table to Microsoft Excel.

java.lang.NoClassDefFoundError occurs while exporting WebStudio Decision table to Microsoft Excel.

book

Article ID: KB0093892

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:
The following exception occurs when exporting a WebStudio Decision table to Excel.

====================================================================
2016 Jun 14 10:30:41:364 GMT +2 n07ast0017.nl.eu.abnamro.com Error [$default.be.mt$.Worker.6] - [WebStudio.Core.RuleFunctions.Utils.DT.WS_RF_ExportDecisionTableToExcel] [WS-Inference-class] Error exporting decision table [/Virtual_RF/Applicant_Simple] to excel
com.tibco.cep.runtime.model.exception.impl.BEExceptionImpl: java.lang.NoClassDefFoundError: com.tibco.cep.decision.table.provider.excel.ExcelExportProvider
    at com.tibco.be.ws.functions.WebstudioDecisionTableFunctions.exportDecisionTableToExcel(SourceFile:887)
    at be.gen.WebStudio.Core.RuleFunctions.Utils.DT.WS_RF_ExportDecisionTableToExcel$oversizeName.WS_RF_ExportDecisionTableToExcel(WS_RF_ExportDecisionTableToExcel$oversizeName.java:46)
    at be.gen.WebStudio.Core.RuleFunctions.Actions.WS_RF_ExportArtifact$oversizeName.WS_RF_ExportArtifact(WS_RF_ExportArtifact$oversizeName.java:109)
    at be.gen.WebStudio.Core.RuleFunctions.Controller.WS_RF_ActionFactory$oversizeName.WS_RF_ActionFactory(WS_RF_ActionFactory$oversizeName.java:223)
    at be.gen.WebStudio.Core.RuleFunctions.Controller.nullWS_RF_FrontControllerObject$.WS_RF_FrontController(nullWS_RF_FrontControllerObject$.java:64)
    at be.gen.WebStudio.Core.RuleFunctions.Controller.WS_RF_FrontController.invoke(WS_RF_FrontController.java:11)
    at com.tibco.cep.runtime.session.impl.RuleSessionImpl$1.doTxnWork(RuleSessionImpl.java:753)
    at com.tibco.cep.kernel.core.rete.BeTransaction.run(SourceFile:156)
    at com.tibco.cep.kernel.core.rete.BeTransaction.execute(SourceFile:101)
    at com.tibco.cep.runtime.session.impl.RuleSessionImpl.invokeFunction(RuleSessionImpl.java:743)
    at com.tibco.cep.runtime.session.impl.RuleSessionImpl.invokeFunction(RuleSessionImpl.java:728)
    at com.tibco.cep.runtime.session.impl.RuleSessionImpl.invokeFunction(RuleSessionImpl.java:724)
    at com.tibco.cep.driver.http.server.impl.servlet.PageFlowServlet$RuleFunctionExecTask.run(SourceFile:410)
    at com.tibco.cep.runtime.session.BEManagedThread.execute(BEManagedThread.java:457)
    at com.tibco.cep.runtime.session.BEManagedThread.run_from_queue(BEManagedThread.java:397)
    at com.tibco.cep.runtime.session.BEManagedThread.run(BEManagedThread.java:294)
Caused by: com.tibco.cep.runtime.model.exception.impl.BEExceptionImpl: java.lang.ClassNotFoundException: com.tibco.cep.decision.table.provider.excel.ExcelExportProvider
    at java.net.URLClassLoader.findClass(URLClassLoader.java:600)
    at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:777)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:750)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:326)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:731)
====================================================================

Issue/Introduction

java.lang.NoClassDefFoundError occurs while exporting WebStudio Decision table to Microsoft Excel.

Resolution

Cause

====

The exception "com.tibco.cep.runtime.model.exception.impl.BEExceptionImpl: java.lang.NoClassDefFoundError: com.tibco.cep.decision.table.provider.excel.ExcelExportProvider" is thrown because the RMS engine is unable to find one of the JAR (com.tibco.cep.decision.table.core_5.2.1) files from the $BE_HOME\studio\eclipse\plugins directory. The BE Studio plugin directory, %BE_HOME%/studio/eclipse/plugins%PSP% , was not set in the classpath of be-rms.tra. Note that this issue also occurs when trying to import the Decision table from Excel to WebStudio.

Resolution

=======

Include %BE_HOME%/studio/eclipse/plugins%PSP% in tibco.env.STD_EXT_CP of be-rms.tra .