book
Article ID: KB0091562
calendar_today
Updated On:
Description
Resolution:
Description:
============
Sometimes building ear would fail and get NullPointerException
Environment:
==========
TIBCO BusinessEvents (BE) 4.x, 5.x
All Operating Systems
Symptoms:
=========
1. When copying (refactoring) a project into same workspace or a new space and then rename it, if there is a statemachine exists for a concept, sometimes building ear would fail and throw NullPointerException:
++++++++++++++++++++++
Caused by: java.lang.NullPointerException
at com.tibco.cep.studio.parser.semantic.OntologyModelLookup.typeOfPropertyDef(Unknown Source)
at com.tibco.cep.studio.parser.semantic.OntologyModelLookup.getPropertyType(Unknown Source)
at com.tibco.cep.studio.parser.semantic.CompositeModelLookup.getPropertyType(Unknown Source)
at com.tibco.cep.studio.parser.semantic.NodeTypeVisitor.processExpressionName(Unknown Source)
at com.tibco.cep.studio.parser.semantic.NodeTypeVisitor.processUnaryRelation(Unknown Source)
+++++++++++++++++++++++
If copying a project without statemachine in it, the project could be built successfully.
2. After copy/paste a concept, the properties in new concept doesn't have correct "ownerPath" path. And will throw NullPointerException like below:
+++++++++++++++++++++++
java.lang.NullPointerException
at be.gen.Concepts.AggPODups.getContainedConceptProperty(AggPODups.java:63)
at com.tibco.cep.runtime.model.element.impl.ConceptImpl.modifyParent(ConceptImpl.java:1083)
at com.tibco.cep.runtime.model.element.impl.ConceptImpl.modifyConcept(ConceptImpl.java:681)
at com.tibco.cep.runtime.model.element.impl.ConceptImpl.modifyParent(ConceptImpl.java:1085)
at com.tibco.cep.runtime.model.element.impl.ConceptImpl.modifyConcept(ConceptImpl.java:681)
at com.tibco.cep.runtime.model.element.impl.ConceptImpl.modifyParent(ConceptImpl.java:1085)
at com.tibco.cep.runtime.model.element.impl.ConceptImpl.modifyConcept(ConceptImpl.java:681)
at com.tibco.cep.runtime.model.element.impl.ConceptImpl.modifyParent(ConceptImpl.java:1085)
at com.tibco.cep.runtime.model.element.impl.ConceptImpl.modifyConcept(ConceptImpl.java:681)
at com.tibco.cep.runtime.model.element.impl.ConceptImpl.modifyConcept(ConceptImpl.java:647)
at com.tibco.cep.runtime.model.element.impl.PropertyImpl.setConceptModified(PropertyImpl.java:37)
at com.tibco.cep.runtime.model.element.impl.simple.PropertyAtomDateTimeSimple.setCurrent(PropertyAtomDateTimeSimple.java:223)
at com.tibco.cep.runtime.model.element.impl.simple.PropertyAtomDateTimeSimple.setDateTime(PropertyAtomDateTimeSimple.java:230)
at be.gen.RuleFunctions.Common.nullpoAggCalculations$oversizeName.poAggCalculations(nullpoAggCalculations$oversizeName.java:29)
at be.gen.Rules.Batch.EAD.EADAggSkuStrAlloc_RYGStatus$EADAggSkuStrAlloc_RYGStatus_a.execute(EADAggSkuStrAlloc_RYGStatus.java:93)
at com.tibco.cep.kernel.core.rete.ReteWM.resolveConflict(ReteWM.java:311)
at com.tibco.cep.kernel.core.rete.ReteWM.executeRules(ReteWM.java:1366)
+++++++++++++++++++++++
3. Sometimes it would throw NullPointerException like below when building the ear:
+++++++++++++++++++++++
Enterprise Archive File has failed to build.
java.lang.NullPointerException
at com.tibco.cep.studio.core.util.packaging.impl.EMFEarPackager.<init>(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)
+++++++++++++++++++++++
Resolution:
=========
In scenario 1, copy the project with below steps:
1). Create a new project
2). Copy the resource in order: concept (with state machine removed), shared resource, channel, event, rulefunctions
3). The new project could be built without issue
In scenario 2, please modify the “ownerpath” of the property to the correct one. This issue happens in BE4.x and has a CR BE-11333 which is fixed in BE 5.x.
In scenario 3, please check the .beproject file to see if the project name attribute like below is the same as the project. If not, please close studio, correct the project name in this file, then restart studio and build ear.
<configuration:StudioProjectConfiguration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:configuration="http:///com/tibco/cep/studio/common/configuration/model/project_configuration.ecore" name="eeatsiqoqbk">
Issue/Introduction
Sometimes building ear fails with a NullPointerException.