Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
Resolution:
Description:
===========
Unable to generate an EAR file containing Instance.Reflection.getProperty()
Object prop = Instance.Reflection.getProperty(inConcept, propName);
Environment:
==========
BusinessEvents 4.0.0
All Operating Systems
Symptoms:
=========
Exception thrown when try to build the ear:
java.lang.Exception: com.tibco.cep.studio.parser.codegen.CompilationFailedException: <path>ConceptcloneConceptConceptString$.java:17: cannot find symbol
symbol : method getInvalidPropertyAtomType()
location: interface com.tibco.cep.runtime.model.element.Property
java.lang.Object $3zprop = ((com.tibco.be.functions.instance.reflect.Reflection.getProperty(($3zinConcept), ($3zpropName)).getInvalidPropertyAtomType()));
^
1 error
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) at com.tibco.cep.studio.ui.actions.BuildEnterpriseArchiveAction.runBuildArchive(Unknown Source) at com.tibco.cep.studio.ui.actions.BuildEnterpriseArchiveAction.access$0(Unknown Source) at com.tibco.cep.studio.ui.actions.BuildEnterpriseArchiveAction$BuildArchiveJob.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Cause:
======
Syntax problem
Resolution:
========
Change the code in the rule:
From:
Object prop = Instance.Reflection.getProperty(inConcept, propName);
To:
Object prop = Instance.Reflection.toObject(Instance.Reflection.getProperty(inConcept, propName));
Instance.Reflection.setPropertyAtomValue(outConcept, propName,prop);