Installation Failure Due to Missing Database Objects

The installation process fails if the database objects required by the BPM runtime are not available. This could manifest in a failure to start the Event Collector component.

The following error is displayed on the console:

ERROR - Application Deploy with Start failed
ERROR - Start component 'implementation.ec' failed : java.lang.IllegalStateException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'updateService' defined in URL [bundleresource://448.fwk24417480/com/tibco/n2/ec/core/config/ECServiceConfig.xml]: Cannot resolve reference to bean 'updateServiceInnerBean' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ecLifecyle' defined in URL [bundleresource://448.fwk24417480/com/tibco/n2/ec/core/config/ECServiceConfig.xml]: Invocation of init method failed; nested exception is com.tibco.n2.ec.core.exceptions.ECModelFetchException: {No_SUCH_ENTITY} - No entity found for model type [com.tibco.n2.ec.core.persistence.model.N2LFAttributeModel] matching criteria [null]!
ERROR - java.lang.IllegalStateException:
...
com.tibco.n2.ec.core.exceptions.ECModelFetchException: {No_SUCH_ENTITY} - No entity found for model type [com.tibco.n2.ec.core.persistence.model.N2LFAttributeModel] matching criteria [null]!
                at com.tibco.amf.runtime.implementationtype.spring.ComponentApplicationContext.refresh(ComponentApplicationContext.java:264)
...
...
			at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
                at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254)

This error can be caused by a faulty database connection. It can also be a result of the database instance that was not created, or not configured properly.

When installing the BPM runtime, if the Create BPM Database Instance checkbox in the ActiveMatrix Database Administrator wizard is unchecked, the scripts to create the database instance are not run automatically. If you clicked the Generate Scripts button with the Create BPM Database Instance checkbox unchecked, the database scripts are created but not run. Consequently, the database objects required to install the BPM runtime are not created.

  • Check the database connection to ensure that there are no network or database connectivity issues.
  • Check the database to see if the scripts have been run and the database tables created. If the required database tables do not exist, then run the generated database scripts manually to configure the BPM database instance.

For a typical installation, these scripts are available in the configuration directory for TIBCO ActiveMatrix BPM. For example, on Windows platforms, C:\ProgramData\amx-bpm\tibco\data\amx.bpm.app\database. See TIBCO ActiveMatrix BPM Installation and Configuration Guide for more information.

Note: See Sanitizing After a Failed Installation for information on cleaning up your environment after a failed installation.