Web Studio - Exception java.lang.reflect.UndeclaredThrowableException is thrown when Build and Deploy is attempted

Web Studio - Exception java.lang.reflect.UndeclaredThrowableException is thrown when Build and Deploy is attempted

book

Article ID: KB0094830

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.2.x, 5.3.0

Description

The following exception is thrown when you attempt hot deployment by clicking on "BuildandDeploy" in Web Studio

Exception stackTrace from the RMS Log:

com.tibco.cep.runtime.model.exception.impl.BEExceptionImpl: java.lang.RuntimeException: java.lang.reflect.UndeclaredThrowableException

    at com.tibco.be.ws.functions.WebStudioJMXFunctions.loadAndDeployVRFSecurely(SourceFile:250)
    at be.gen.WebStudio.Core.RuleFunctions.Actions.Lifecycle.BuildAndDeploy.WS_RF_DeployAnArtifact$oversizeName.WS_RF_DeployAnArtifact(WS_RF_DeployAnArtifact$oversizeName.java:131)
    at be.gen.WebStudio.Core.RuleFunctions.Actions.Lifecycle.Review.nullWS_RF_PerformPostStatusChangeActivities$oversizeName.WS_RF_PerformPostStatusChangeActivities(nullWS_RF_PerformPostStatusChangeActivities$oversizeName.java:25)
    at be.gen.WebStudio.Core.RuleFunctions.Actions.Lifecycle.Review.nullWS_RF_PerformStatusChangeInWSForWS$oversizeName.WS_RF_PerformStatusChangeInWSForWS(nullWS_RF_P

Environment

All Supported Platforms

Resolution

Resolution:
java.lang.RuntimeException: java.lang.reflect.UndeclaredThrowableException" error is thrown if you attempt hot deployment on an in-memory TIBCO BusinessEvents engine from Web Studio. 
The discrepency is caused by the cluster name property "<property name="<project_name>.ws.jmx.clusterName" value="<cluster_name>"/>" in RMS.CDD file. There is no concept of cluster name for standalone in-memory engine.

You would need cache object management enabled in your project to be able to execute hot deployment from Web Studio. 

To resolve the issue switch to cache object management and attempt the hot deployment from Web Studio again after making sure the cluster name property is set to actual cluster name.

Note: The following JIRA exists to allow hot deployment on in-memory engines.

BE-23313 - Allow hot deployment on InMemory based projects from WebStudio as well.

Issue/Introduction

Web Studio - Exception java.lang.reflect.UndeclaredThrowableException is thrown when Build and Deploy is attempted