Studio-tools fail to build EAR file and throw “java.lang.NoSuchMethodError” exception.

Studio-tools fail to build EAR file and throw “java.lang.NoSuchMethodError” exception.

book

Article ID: KB0087483

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
===========
Studio-tools fail to build EAR file and throw “java.lang.NoSuchMethodError” exception.

Environment:
===========
TIBCO BusinessEvents 5.x
All Operating Systems


Symptoms:
=========
java.lang.Exception: Errors occurred when building EAR file. - java.lang.NoSuchMethodError: com.tibco.cep.studio.dashboard.core.codegen.MetricDelegateClassGeneratorSmap.getSetMethodName(Lcom/tibco/cep/designtime/model/element/PropertyDefinition;)Ljava/lang/String;
                at com.tibco.cep.studio.cli.studiotools.BuildEarCLI.runOperation(Unknown Source)
                at com.tibco.cep.studio.cli.studiotools.StudioCommandLineInterpreter.executeCommandLine(Unknown Source)
                at com.tibco.cep.studio.cli.studiotools.StudioCommandLineInterpreter.main(Unknown Source)
                at com.tibco.cep.studio.cli.studiotools.StudioToolsApplication.start(Unknown Source)
                at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
                at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
                at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.Exception: java.lang.NoSuchMethodError: com.tibco.cep.studio.dashboard.core.codegen.MetricDelegateClassGeneratorSmap.getSetMethodName(Lcom/tibco/cep/designtime/model/element/PropertyDefinition;)Ljava/lang/String;
                at com.tibco.cep.studio.core.util.packaging.impl.DefaultRuntimeClassesPackager.close(Unknown Source)
                at com.tibco.cep.studio.core.util.packaging.impl.EMFBarPackager.close(Unknown Source)
                at com.tibco.cep.studio.core.util.packaging.impl.EMFEarPackager.close(Unknown Source)
                ... 17 more
Caused by: java.lang.NoSuchMethodError: com.tibco.cep.studio.dashboard.core.codegen.MetricDelegateClassGeneratorSmap.getSetMethodName(Lcom/tibco/cep/designtime/model/element/PropertyDefinition;)Ljava/lang/String;
                at com.tibco.cep.studio.dashboard.core.codegen.MetricDelegateClassGeneratorSmap.do(Unknown Source)
                at com.tibco.cep.studio.dashboard.core.codegen.MetricClassGeneratorSmap.addMetricMethod(Unknown Source)
                at com.tibco.cep.studio.dashboard.core.codegen.MetricClassGeneratorSmap.makeMetricFile(Unknown Source)
                at com.tibco.cep.studio.dashboard.core.codegen.MetricCodeGenerator.generateConceptStream(Unknown Source)
                at com.tibco.be.parser.codegen.FileStreamGenerator.if(Unknown Source)
                at com.tibco.be.parser.codegen.FileStreamGenerator.int(Unknown Source)
                at com.tibco.be.parser.codegen.FileStreamGenerator.generate(Unknown Source)
                ... 20 more

Usage: buildear [-h] [-x] [-lc] [-o &ltoutputArchiveFile>] -p &ltprojectDir> -cp&ltextended classpath>
where,
                -h (optional) prints this usage
                -x (optional) overwrites the specified output file if it exists.
                -lc (optional) use legacy compiler
                -o (optional) specifies the output file for the archive. If not specified, the output file is named as &ltprojectName>.ear.
                -p specifies project
   -cp (optional) extended classpath
An error has occurred. See the log file
/opt/tibco/be/5.1/studio/workspace/.metadata/.log.

Cause:
======
Upgrade BusinessEvents with a wrong installation sequence.

Resolution:
===========
Upgrade BusinessEvents in the right order, such as if you want to upgrade BueinsseEvent from 5.1.0 to 5.1.1, follow this order:

1). Install TIBCO Business Events 5.1.0 (all components such as Standard/View/Datamodeling/ESP/Decision Manager……)

2). Install TIBCO Business Events 5.1.1 (all components such as Standard/View/Datamodeling/ESP/Decision Manager……)
   Note: Install all BusinessEventsE5.1.0 components first and then install BusinessEvents5.1.1 components.

3). Install TIBCO Business Events 5.1.1 HotFix.

Issue/Introduction

Studio-tools fail to build EAR file and throw “java.lang.NoSuchMethodError” exception.