Starting TIBCO BusinessEvents (BE) be-engine with an EAR gives java.lang.IllegalArgumentException: The 'no null' constraint is violated.
book
Article ID: KB0092525
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
-
Not Applicable
-
Description
Description: The full stack is: java.lang.IllegalArgumentException: The 'no null' constraint is violated at org.eclipse.emf.common.util.AbstractEList.validate(AbstractEList.java:97) at org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList.java:418) at org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUnique(NotifyingListImpl.java:325) at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:309) at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:303) at com.tibco.cep.studio.core.repo.emf.providers.CoreIndexResourceProvider.deserializeResource(SourceFile:192) at com.tibco.cep.studio.core.repo.emf.EMFProject.scanFile(SourceFile:237) at com.tibco.cep.repo.BEProject.scanDirectory(BEProject.java:237) at com.tibco.cep.repo.BEProject.scanDirectory(BEProject.java:235) at com.tibco.cep.repo.BEProject.scanDirectory(BEProject.java:235) at com.tibco.cep.repo.BEProject.scanDirectory(BEProject.java:235) at com.tibco.cep.repo.BEProject.scanDirectory(BEProject.java:235) at com.tibco.cep.repo.BEProject.scanDirectory(BEProject.java:235)
at
com.tibco.cep.repo.provider.impl.SharedArchiveResourceProviderImpl.deserializeResource(SharedArchiveResourceProviderImpl.java:85) at com.tibco.cep.studio.core.repo.emf.EMFProject.scanFile(SourceFile:237) at com.tibco.cep.repo.BEProject.scanDirectory(BEProject.java:237) at com.tibco.cep.studio.core.repo.emf.DeployedEMFProject.loadVFiles(SourceFile:249) at com.tibco.cep.repo.BEProject.load(BEProject.java:101) at com.tibco.cep.studio.core.repo.emf.EMFProject.load(SourceFile:225) at com.tibco.cep.studio.core.repo.emf.DeployedEMFProject.load(SourceFile:222) at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initProject(RuleServiceProviderImpl.java:1051) at com.tibco.cep.container.standalone.BEMain.jumpStart(SourceFile:157) at com.tibco.cep.container.standalone.BEMain.main(SourceFile:70) System exit requested by thread [main] with status: -1
Symptoms: Note, the project will pass validation in Studio and the EAR is built successfully, however studio-tools will fail to build the EAR and throw the same error.
Cause: There is a syntax error in the project either from missing a ';' or perhaps from a missing '}' in a rule function or rule syntax.
Issue/Introduction
Starting TIBCO BusinessEvents (BE) be-engine with an EAR gives java.lang.IllegalArgumentException: The 'no null' constraint is violated.
Resolution
Use studio-tools to try creating the EAR and if the build fails with the same error, then look for missing ';' in your project or validate the rule function or rule to check for the missing "}". Going through each Rule and Rule Function in Studio, those which cannot be displayed using 'Forms' will find most errors. Note that the error might not show in 'Forms' with a Rule Template.