Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-10020

Backport OPENIDM-9219: Worflow service randomly not starting properly

    Details

      Description

      From time to time (I could not find any pattern...) the workflow service fails to start with this error in the log:

      WARNING: Configuration invalid, can not start Activiti ProcessEngine service.
      java.lang.IllegalStateException: Datasource "activiti" does not exist!
      	at org.forgerock.openidm.workflow.activiti.impl.ActivitiServiceImpl$DataSourceProxy.getDataSource(ActivitiServiceImpl.java:622)
      	at org.forgerock.openidm.workflow.activiti.impl.ActivitiServiceImpl$DataSourceProxy.getConnection(ActivitiServiceImpl.java:629)
      	at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initDatabaseType(ProcessEngineConfigurationImpl.java:617)
      	at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initDataSource(ProcessEngineConfigurationImpl.java:579)
      	at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.init(ProcessEngineConfigurationImpl.java:413)
      	at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:388)
      	at org.activiti.osgi.blueprint.ProcessEngineFactory.init(ProcessEngineFactory.java:46)
      	(.....)
      	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)
      		at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)
      		at java.lang.Thread.run(Thread.java:745)
      
      	Sep 11, 2017 8:18:16 PM org.forgerock.openidm.config.logging.LogServiceTracker logEntry
      	SEVERE: Bundle: org.forgerock.openidm.workflow-activiti [53] [org.forgerock.openidm.workflow(51)] The activate method has thrown an exception
      	java.lang.IllegalStateException: Datasource "activiti" does not exist!
      		at org.forgerock.openidm.workflow.activiti.impl.ActivitiServiceImpl$DataSourceProxy.getDataSource(ActivitiServiceImpl.java:622)
      		at org.forgerock.openidm.workflow.activiti.impl.ActivitiServiceImpl$DataSourceProxy.getConnection(ActivitiServiceImpl.java:629)
      		at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initDatabaseType(ProcessEngineConfigurationImpl.java:617)
      		at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initDataSource(ProcessEngineConfigurationImpl.java:579)
      		at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.init(ProcessEngineConfigurationImpl.java:413)
      		at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:388)
      	(...)
      

      I attach the full log.

      The only idea I can have is that it maybe started to fail when OPENIDM-8739 was commited in 6.0.0-SNAPSHOT
      (but as this is a random failure, it is impossible to track down of course...)
      Could someone analyse the logs and come with an idea to make workflow/activiti startup more robust?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                patrickdiligent patrick diligent
                Reporter:
                mark.offutt Mark Offutt
                QA Assignee:
                Jakub Janoska
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: