Atlassian JIRA | 3 years ago
| Xavier Sanchez [Atlassian]
java.lang.RuntimeException: ActiveObjects was called before initialization had complete.
Not waiting for an ActiveObjectsConfiguration to become available. To avoid this error and wait for initialization to be complete, call ActiveObjects.moduleMetaData().awaitInitialization() from outside of a transaction.
Do NOT call awaitInitialization from within the thread responsible for publishing OSGi services, this can block service publication and cause AO to time out whilst waiting for the configuration to be published.