Exception "java.lang.ClassNotFoundException: com.tibco.datagrid.DataGridException" thrown in Studio Debugger when connecting to AS 4.x external datagrid

Exception "java.lang.ClassNotFoundException: com.tibco.datagrid.DataGridException" thrown in Studio Debugger when connecting to AS 4.x external datagrid

book

Article ID: KB0073644

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.6.x/6.x

Description

Exception thrown when start a TIBCO BusinessEvents (BE) InferenceAgent in Studio debugger and try to connect to an external datagrid (TIBCO ActiveSpaces 4.x).
It works when start the agent in a console.


com.tibco.cep.runtime.model.exception.impl.BEExceptionImpl: java.lang.NoClassDefFoundError
    com/tibco/datagrid/DataGridException

    at com.tibco.cep.store.factory.StoreConnectionFactory.createStoreConnection(StoreConnectionFactory.java:22)
    at com.tibco.cep.store.functions.StoreFunctions.connect(StoreFunctions.java:73)

Issue/Introduction

Exception "java.lang.ClassNotFoundException: com.tibco.datagrid.DataGridException" thrown in Studio Debugger (connect to AS 4.x external datagrid)

Environment

All Operating Systems

Resolution

The Studio debugger does not load the classpath settings from %BE_HOME%/bin/be-engine.tra.
The settings from %BE_HOME%/studio/eclipse/studio.tra file loaded.
It is required to add the FTL and AS4.x installation folder to the environment variables in %BE_HOME%/studio/eclipse/studio.tra file.


BE 5.6.x:
tibco.env.AS3x_HOME=<AS4.x_InstallationDirectory>
tibco.env.FTL_HOME=<FTL_InstallationDirectory>


BE 6.x:
tibco.env.FTL_HOME=<FTL_InstallationDirectory>
tibco.env.ACTIVESPACES_HOME=<AS4.x_InstallationDirectory>